|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttigase.server.BasicComponent
tigase.server.AbstractComponentRegistrator<Configurable>
tigase.conf.ConfiguratorAbstract
tigase.conf.ConfiguratorOld
public class ConfiguratorOld
Class ConfiguratorOld Created: Tue Nov 22 07:07:11 2005
Field Summary |
---|
Fields inherited from class tigase.conf.ConfiguratorAbstract |
---|
CONFIG_REPO_CLASS_INIT_KEY, CONFIG_REPO_CLASS_PROP_KEY, logManagerConfiguration, PROPERTY_FILENAME_PROP_KEY |
Fields inherited from class tigase.server.AbstractComponentRegistrator |
---|
components |
Fields inherited from class tigase.server.BasicComponent |
---|
admins, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
Fields inherited from interface tigase.disco.XMPPService |
---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
Constructor Summary | |
---|---|
ConfiguratorOld()
|
Method Summary | |
---|---|
void |
componentAdded(Configurable component)
Method description |
Map<String,Object> |
getAllProperties(String key)
|
String[] |
getComponents()
|
Map<String,Object> |
getDefaults(Map<String,Object> params)
Returns defualt configuration settings in case if there is no config file. |
Map<String,Object> |
getDefConfigParams()
Method description |
List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Method description |
tigase.xml.Element |
getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
static Object |
getMXBean(String objName)
|
void |
init(String[] args)
Method description |
void |
initializationCompleted()
Method description |
static void |
main(String[] args)
Describe main method here. |
void |
parseArgs(String[] args)
Method description |
void |
processPacket(Packet packet,
Queue<Packet> results)
Method description |
static void |
putMXBean(String objName,
Object bean)
|
void |
setName(String name)
Method description |
void |
setProperties(Map<String,Object> props)
Sets all configuration properties for object. |
Object |
setPropertyValue(String key,
String val,
Packet result_pack,
boolean admin)
|
void |
setup(String name)
|
Object |
setValue(String node_key,
String value,
boolean add,
boolean feedback,
Map<String,Object> orig)
|
Methods inherited from class tigase.conf.ConfiguratorAbstract |
---|
componentRemoved, getMessageRouterClassName, getProperties, initBindings, isCorrectType, loadLogManagerConfig, putProperties, setup |
Methods inherited from class tigase.server.AbstractComponentRegistrator |
---|
addComponent, deleteComponent, getComponent, newPacketId, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface tigase.server.ServerComponent |
---|
getComponentId, getName |
Constructor Detail |
---|
public ConfiguratorOld()
Method Detail |
---|
public void setName(String name)
BasicComponent
setName
in interface ServerComponent
setName
in class BasicComponent
public void parseArgs(String[] args)
ConfiguratorAbstract
parseArgs
in class ConfiguratorAbstract
public void init(String[] args) throws ConfigurationException
ConfiguratorAbstract
init
in class ConfiguratorAbstract
ConfigurationException
public static void putMXBean(String objName, Object bean)
public static Object getMXBean(String objName)
public void initializationCompleted()
ConfiguratorAbstract
initializationCompleted
in interface ServerComponent
initializationCompleted
in class ConfiguratorAbstract
public void componentAdded(Configurable component)
ConfiguratorAbstract
componentAdded
in class ConfiguratorAbstract
component
- is a reference to the component just added to the collection.public void setup(String name)
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults
in interface Configurable
getDefaults
in class ConfiguratorAbstract
params
-
public void setProperties(Map<String,Object> props)
setProperties
in interface Configurable
setProperties
in class ConfiguratorAbstract
props
- public Map<String,Object> getDefConfigParams()
ConfiguratorAbstract
getDefConfigParams
in class ConfiguratorAbstract
public String[] getComponents()
public Map<String,Object> getAllProperties(String key) throws ConfigurationException
ConfigurationException
public Object setValue(String node_key, String value, boolean add, boolean feedback, Map<String,Object> orig) throws Exception
Exception
public static void main(String[] args) throws Exception
main
method here.
args
- a String[]
value
Exception
public void processPacket(Packet packet, Queue<Packet> results)
BasicComponent
processPacket
in interface ServerComponent
processPacket
in class BasicComponent
packet
- a Packet
valuepublic Object setPropertyValue(String key, String val, Packet result_pack, boolean admin)
public tigase.xml.Element getDiscoInfo(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
BasicComponent
getDiscoInfo
in interface XMPPService
getDiscoInfo
in class BasicComponent
node
- is service discovery node for which the request is made. Is
normally null for the component top level request.jid
- is the jid to which the request has been made.from
- is the request sender address. Some service discovery information
is only meant for administrators.
public List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
BasicComponent
getDiscoFeatures
in interface XMPPService
getDiscoFeatures
in class BasicComponent
from
- a request sender address. Some service disco elements are meant
to be available only to system administrarors. The component is responsible to
check whether the sender is the component administrator and return results
appropriate.
public List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
BasicComponent
getDiscoItems
in interface XMPPService
getDiscoItems
in class BasicComponent
node
- is a service discovery node for which the request has been made.jid
- is the jid to which the request has been made.from
- is the request sender address. Some service discovery information
is only meant for administrators.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |