|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.runlevel.PluginHolder
public class PluginHolder
This class contains the information on how to configure a certain plugin and when a certain plugin is invoked by the run level manager
<plugin id='storage:CACHE' className='org.xmlBlaster.engine.msgstore.cache.PersistenceCachePlugin'> <attribute id='transientQueue'>storage:RAM</attribute> <attribute id='persistentQueue'>storage:JDBC</attribute> </plugin>
Field Summary | |
---|---|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.util.Hashtable |
pluginConfigsDefault
|
private java.util.Hashtable |
pluginConfigsNodes
This is a double Hashtable: an Hashtable containing one hashtable for every node found. |
Constructor Summary | |
---|---|
PluginHolder(Global glob)
Minimal constructor |
|
PluginHolder(Global glob,
java.util.Hashtable pluginConfigsDefault,
java.util.Hashtable pluginConfigsNodes)
This constructor takes all parameters needed |
Method Summary | |
---|---|
PluginConfig |
addDefaultPluginConfig(PluginConfig pluginConfig)
|
PluginConfig |
addPluginConfig(java.lang.String node,
PluginConfig pluginConfig)
Adds a pluginConfig object to the specified node. |
PluginConfig[] |
getAllPluginConfig(java.lang.String node)
returns all PluginConfig found for the specified node (and the default) |
PluginConfig |
getPluginConfig(java.lang.String node,
java.lang.String id)
returns the plugin specified with the given id and the given node. |
java.util.TreeSet |
getShutdownSequence(java.lang.String nodeId,
int lowRunlevel,
int highRunlevel)
Returns a hashset containing all plugins which have a shutdown level defined. |
java.util.TreeSet |
getStartupSequence(java.lang.String nodeId,
int lowRunlevel,
int highRunlevel)
Returns a hashset containing all plugins which have a startup level defined. |
PluginConfig |
removePluginConfig(java.lang.String node,
java.lang.String id)
Remove the given pluginConfig instance. |
java.lang.String |
toXml()
|
java.lang.String |
toXml(java.lang.String extraOffset)
returns an xml litteral string representing all entries found in the configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Global glob
private static java.util.logging.Logger log
private java.util.Hashtable pluginConfigsDefault
private java.util.Hashtable pluginConfigsNodes
Constructor Detail |
---|
public PluginHolder(Global glob, java.util.Hashtable pluginConfigsDefault, java.util.Hashtable pluginConfigsNodes)
public PluginHolder(Global glob)
Method Detail |
---|
public PluginConfig addDefaultPluginConfig(PluginConfig pluginConfig)
public PluginConfig addPluginConfig(java.lang.String node, PluginConfig pluginConfig)
If node is null it is put to default scope.
node
- the node to which to add the pluginConfig objectpluginConfig
- the object to add to the holder.
public PluginConfig getPluginConfig(java.lang.String node, java.lang.String id)
node
- the nodeId scope on which to do the request or nullid
- the unique string identifying the pluginpublic PluginConfig removePluginConfig(java.lang.String node, java.lang.String id)
node
- id
-
public PluginConfig[] getAllPluginConfig(java.lang.String node)
node
- the node for which to search.public java.lang.String toXml(java.lang.String extraOffset)
public java.lang.String toXml()
public java.util.TreeSet getStartupSequence(java.lang.String nodeId, int lowRunlevel, int highRunlevel)
nodeId
- the id of the node to retrievelowRunlevel
- the runlevel from which to start retreive (inclusive)highRunlevel
- the runlevel to which to retrieve (inclusive)public java.util.TreeSet getShutdownSequence(java.lang.String nodeId, int lowRunlevel, int highRunlevel)
nodeId
- the id of the node to retrievelowRunlevel
- the runlevel from which to start retreive (inclusive)highRunlevel
- the runlevel to which to retrieve (inclusive)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |