|
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.util.plugin.PluginManagerBase org.xmlBlaster.engine.cluster.MapMsgToMasterPluginManager
public class MapMsgToMasterPluginManager
Loads the cluster plugin depending on message MIME type. Please register your plugins in xmlBlaster.properties, for example:
MapMsgToMasterPlugin[MyClusterMapper][1.0]=com.mycompany.MyClusterMapper
Field Summary | |
---|---|
private ClusterManager |
clusterManager
|
private static java.lang.String |
defaultPluginName
The default plugin "org.xmlBlaster.engine.cluster.simpledomain.DomainToMaster" is loaded if not otherwise specified. |
private ServerScope |
glob
|
private static java.util.logging.Logger |
log
|
private java.util.Map |
mapMsgToMasterIdMap
|
private static java.lang.String |
ME
|
static java.lang.String |
pluginPropertyName
Entry name for xmlBlaster.properties: "MapMsgToMasterPlugin" |
Fields inherited from class org.xmlBlaster.util.plugin.PluginManagerBase |
---|
NO_PLUGIN_TYPE |
Constructor Summary | |
---|---|
MapMsgToMasterPluginManager(ServerScope glob,
ClusterManager clusterManager)
|
Method Summary | |
---|---|
private I_MapMsgToMasterId |
addMapMsgToMasterIdPlugin(java.lang.String type,
java.lang.String version)
Invoked on new subscription or get() invocation, loads plugin. |
java.lang.String |
getDefaultPluginName(java.lang.String type,
java.lang.String version)
|
I_MapMsgToMasterId |
getMapMsgToMasterId(java.lang.String type,
java.lang.String version,
java.lang.String mime,
java.lang.String mimeExtended)
Access cluster domain mapping object from cache. |
private I_MapMsgToMasterId |
getPlugin(java.lang.String type,
java.lang.String version)
Return a specific MIME based message plugin from cache (initialize it on first request). |
protected java.lang.String |
getPluginPropertyName()
|
void |
postInstantiate(I_Plugin plugin,
PluginInfo pluginInfo)
Is called after a plugin in instantiated, allows the base class to do specific actions. |
void |
reset()
Is called when new configuration arrived, notify all plugins to empty their cache or do whatever they need to do. |
Methods inherited from class org.xmlBlaster.util.plugin.PluginManagerBase |
---|
createPluginPropertyKey, getDummyPlugin, getFromPluginCache, getGlobal, getName, getPluginObject, getPluginObject, getPluginObject, ignorePlugin, instantiatePlugin, instantiatePlugin, removeFromPluginCache, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ME
private static final java.lang.String defaultPluginName
public static final java.lang.String pluginPropertyName
private final ServerScope glob
private static java.util.logging.Logger log
private final ClusterManager clusterManager
private final java.util.Map mapMsgToMasterIdMap
Constructor Detail |
---|
public MapMsgToMasterPluginManager(ServerScope glob, ClusterManager clusterManager)
Method Detail |
---|
private final I_MapMsgToMasterId getPlugin(java.lang.String type, java.lang.String version) throws XmlBlasterException
String
- The type of the requested plugin.String
- The version of the requested plugin.
XmlBlasterException
public void postInstantiate(I_Plugin plugin, PluginInfo pluginInfo)
PluginManagerBase
postInstantiate
in class PluginManagerBase
protected final java.lang.String getPluginPropertyName()
getPluginPropertyName
in class PluginManagerBase
public final java.lang.String getDefaultPluginName(java.lang.String type, java.lang.String version)
getDefaultPluginName
in interface I_PluginManager
getDefaultPluginName
in class PluginManagerBase
type
- can be nullversion
- can be null
public final I_MapMsgToMasterId getMapMsgToMasterId(java.lang.String type, java.lang.String version, java.lang.String mime, java.lang.String mimeExtended)
private final I_MapMsgToMasterId addMapMsgToMasterIdPlugin(java.lang.String type, java.lang.String version)
public void reset()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |