|
||||||||||
| 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.server.AbstractComponentRegistrator |
|---|
components |
| Fields inherited from class tigase.server.BasicComponent |
|---|
admins, ALL_PROP_KEY, COMMAND_PROP_NODE, scriptCommands, 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, itemAdded, itemRemoved, itemUpdated, 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 ServerComponentsetName in class BasicComponentpublic void parseArgs(String[] args)
ConfiguratorAbstract
parseArgs in class ConfiguratorAbstract
public void init(String[] args)
throws ConfigurationException
ConfiguratorAbstract
init in class ConfiguratorAbstractConfigurationException
public static void putMXBean(String objName,
Object bean)
public static Object getMXBean(String objName)
public void initializationCompleted()
ConfiguratorAbstract
initializationCompleted in interface ServerComponentinitializationCompleted in class ConfiguratorAbstractpublic void componentAdded(Configurable component)
ConfiguratorAbstract
componentAdded in class ConfiguratorAbstractcomponent - 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 ConfigurablegetDefaults in class ConfiguratorAbstractparams -
public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class ConfiguratorAbstractprops - public Map<String,Object> getDefConfigParams()
ConfiguratorAbstract
getDefConfigParams in class ConfiguratorAbstractpublic 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 ServerComponentprocessPacket in class BasicComponentpacket - a Packet value
public 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 XMPPServicegetDiscoInfo in class BasicComponentnode - 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 XMPPServicegetDiscoFeatures in class BasicComponentfrom - 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 XMPPServicegetDiscoItems in class BasicComponentnode - 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 | |||||||||