|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.contrib.GlobalInfo
org.xmlBlaster.contrib.replication.impl.ReplManagerPlugin
ReplManagerPlugin is a plugin wrapper if you want to run DbWatcher inside xmlBlaster.
DbWatcher checks a database for changes and publishes these to the MoM This plugin needs to be registered in xmlBlasterPlugins.xml to be available on xmlBlaster server startup.This plugin uses java.util.logging and redirects the logging to xmlBlasters default logging framework. You can switch this off by setting the attribute xmlBlaster/jdk14loggingCapture to false.
| Field Summary | |
static java.lang.String |
SESSION_ID
|
| Fields inherited from class org.xmlBlaster.contrib.GlobalInfo |
global, LOWER_CASE, ORIGINAL_ENGINE_GLOBAL, pluginInfo, UNTOUCHED, UPPER_CASE |
| Fields inherited from interface org.xmlBlaster.engine.I_SubscriptionListener |
PRIO_01, PRIO_05, PRIO_10 |
| Fields inherited from interface org.xmlBlaster.contrib.ContribConstants |
FILE_DATE, FILENAME_ATTR, FILENAME_ATTR_OLD_FASHION, SUBDIR_ATTR, TIMESTAMP_ATTR, TOPIC_NAME |
| Fields inherited from interface org.xmlBlaster.contrib.I_Info |
ID, JMX_PREFIX |
| Constructor Summary | |
ReplManagerPlugin()
Default constructor, you need to call init() thereafter. |
|
| Method Summary | |
java.lang.String |
activateSlaveDispatchers(java.lang.String replPrefix)
|
void |
addDispatchManager(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
This method is invoked always so see sessionAdded javadoc. |
void |
broadcastSql(java.lang.String repl,
java.lang.String sql)
Executes either a query or an update. |
static java.io.File |
checkExistance(java.lang.String pathName)
|
void |
clearVersionCache()
|
java.lang.String |
collectInitialUpdates(java.lang.String replicationPrefix)
Sends a message to the initial updates to collect all requests of initial updates for this replPrefix. |
boolean |
doActivate(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
If there are new messages available in the queue, you get invoked here and are asked if you want to start a worker thread (from the thread pool) to start taking messages from the queue and send them over the remote connection. |
void |
doExecuteSchedulerJob(boolean open,
java.lang.String prefix,
java.lang.String dest)
|
protected void |
doInit(org.xmlBlaster.util.Global global,
org.xmlBlaster.util.plugin.PluginInfo pluginInfo)
|
static byte[] |
getContent(java.io.InputStream is)
|
long[] |
getCurrentTransactionCount(java.lang.String replPrefix)
|
java.lang.String |
getInitialFilesLocation()
Returns the (default) initialFileLocation which is the directory where the initial data is stored in case you want to transfer it per file. |
java.lang.String |
getInstanceName()
|
org.xmlBlaster.engine.admin.I_AdminSession |
getMasterSession(java.lang.String replicationPrefix)
|
int |
getMaxNumOfEntries()
|
java.lang.String[] |
getMimeExtended()
Get the content MIME version number for which this plugin applies. |
java.lang.String[] |
getMimeTypes()
Get the content MIME types for which this plugin applies, "*" is for all mime types |
java.lang.String |
getName()
Get a human readable name of this filter implementation |
long |
getNumOfRefreshes()
Returns the number of refreshes occured (to get the status of the slaves). |
I_Info |
getPersistentInfo()
|
static java.lang.String |
getPluginName()
|
java.lang.Integer |
getPriority()
The priority by which it will be invoked. |
I_Info |
getReplicationInfo(java.lang.String replicationPrefix)
Gets the properties associated to this replication. |
java.lang.String |
getReplications()
Never returns null. |
org.xmlBlaster.engine.admin.I_AdminSession |
getSession(java.lang.String sessionId)
|
I_ReplSlave |
getSlave(java.lang.String name)
|
java.lang.String |
getSlaves()
Never returns null. |
long |
getStatusPollerInterval()
This method returns the polling interval for retrieval of the status data of the slaves which has to be retrieved asynchronously in order not to block the monitor. |
long |
getStatusProcessingTime()
Returns the time in milliseconds it took to retrieve all the status information for all the slaves. |
java.lang.String |
getType()
The plugin name as configured im xmlBlasterPlugins.xml |
java.lang.String |
getVersion()
The plugin version as configured in xmlBlasterPlugins.xml |
java.util.ArrayList |
handleNextMessages(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
java.util.ArrayList pushEntries)
If you returned true from doActivate() the worker thread will ask us to retrieve the next messages from the queue (dispatchManager.getQueue()). |
void |
initialize(org.xmlBlaster.util.Global glob,
java.lang.String typeVersion)
Is called once only after the instance is created. |
void |
initialize(org.xmlBlaster.engine.ServerScope glob)
This is called after instantiation of the plugin |
java.lang.String |
initiateReplication(java.lang.String slaveSessionName,
java.lang.String prefixWithVersion,
java.lang.String cascadeSlaveSessionName,
java.lang.String cascadeReplicationPrefix,
java.lang.String realInitialFilesLocation)
Intiates the replication for the given slave. |
java.lang.String |
initiateReplicationNonMBean(java.lang.String slaveSessionName,
java.lang.String prefixWithVersion,
java.lang.String cascadeSlaveSessionName,
java.lang.String cascadeReplicationPrefix,
java.lang.String realInitialFilesLocation)
Intiates the replication for the given slave. |
java.lang.String |
intercept(org.xmlBlaster.authentication.SubjectInfo publisher,
org.xmlBlaster.util.MsgUnit msgUnit)
Is only invoked when it is configured as a MimePlugin (to count messages containing several transactions). |
boolean |
isShutdown()
|
static void |
main(java.lang.String[] args)
|
void |
onDispatchWorkerException(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
java.lang.Throwable ex)
Invoked when the dispatching failed due to an exception. |
void |
postHandleNextMessages(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.MsgUnit[] processedEntries)
Does cleanup, particularly it sets the status and counters. |
static long[] |
readOldReplData(I_Info persistentInfo,
java.lang.String propName)
|
java.lang.String |
recreateTriggers(java.lang.String replPrefix)
Recreates the triggers for the given replication source. |
void |
register(java.lang.String senderSession,
java.lang.String replicationPrefix,
I_Info info)
Used to register a dbWatcher. |
java.lang.String |
reInitiate(java.lang.String replPrefix)
This will start an initial update for all slaves replicating from the specified replPrefix. |
void |
removeSqlStatement(java.lang.String statementId)
|
void |
sessionAdded(org.xmlBlaster.authentication.ClientEvent e)
The part of this code inherent to the slave could be moved to the addDispatchManager since that method would always invoked too. |
void |
sessionPreRemoved(org.xmlBlaster.authentication.ClientEvent e)
Invoked before a client does a logout |
void |
sessionRemoved(org.xmlBlaster.authentication.ClientEvent e)
Invoked when client does a logout |
void |
sessionUpdated(org.xmlBlaster.authentication.ClientEvent e)
Invoked on successful client re-login (interface I_ClientListener) |
void |
setMaxNumOfEntries(int maxNumOfEntries)
|
void |
setStatusPollerInterval(long statusPollerInterval)
This method sets the polling interval for retrieval of the status data of the slaves which has to be retrieved asynchronously in order not to block the monitor. |
void |
shutdown()
Shutdown the implementation, sync with data store |
void |
shutdown(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
Deregister the given dispatchManager |
java.lang.String |
startBatchUpdate(java.lang.String replicationPrefix)
Sends a message to the initial updater for the replPrefix that it can start the initial update for all collected (registered) slaves. |
java.lang.String |
stopSlaveDispatchers(java.lang.String replPrefix)
|
static void |
storeReplData(I_Info persistentInfo,
java.lang.String propName,
long[] values)
|
void |
subjectAdded(org.xmlBlaster.authentication.ClientEvent e)
Invoked on first successful client login, when SubjectInfo is created |
void |
subjectRemoved(org.xmlBlaster.authentication.ClientEvent e)
Invoked when client does its last logout |
void |
subscriptionAdd(org.xmlBlaster.engine.SubscriptionEvent e)
To make it simpler one could think to put this method together with sessionAdded. |
void |
subscriptionRemove(org.xmlBlaster.engine.SubscriptionEvent e)
Invoked when subscription does a logout |
void |
timeout(java.lang.Object userData)
You will be notified about the timeout through this method. |
void |
toAlive(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState)
|
void |
toDead(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState,
java.lang.String errorText)
|
void |
toPolling(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState)
|
java.lang.String |
toXml(java.lang.String extraOffset)
|
byte[] |
transformVersion(java.lang.String replPrefix,
java.lang.String destVersion,
java.lang.String destination,
byte[] content)
|
java.lang.String |
transformVersion(java.lang.String replPrefix,
java.lang.String destVersion,
java.lang.String destination,
java.lang.String is)
Performs a version transformation from one version to the other. |
byte[] |
transformVersion(java.lang.String replPrefix,
java.lang.String srcVersion,
java.lang.String destVersion,
java.lang.String destination,
byte[] srcData)
|
void |
unregister(java.lang.String senderSession,
java.lang.String replicationPrefix)
|
java.lang.String |
update(java.lang.String cbSessionId,
org.xmlBlaster.client.key.UpdateKey updateKey,
byte[] content,
org.xmlBlaster.client.qos.UpdateQos updateQos)
It receives events from all ReplicationConverter instances which want to register themselves for administration of initial updates. |
java.lang.String |
usage()
|
| Methods inherited from class org.xmlBlaster.contrib.GlobalInfo |
dump, get, getBoolean, getGlobal, getInt, getKeys, getLong, getObject, getObjectKeys, getRaw, getStrippedString, init, loadPlugin, put, putObject, putRaw, setStrippedHostname |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xmlBlaster.util.plugin.I_Plugin |
init |
| Field Detail |
public static final java.lang.String SESSION_ID
| Constructor Detail |
public ReplManagerPlugin()
| Method Detail |
public byte[] transformVersion(java.lang.String replPrefix,
java.lang.String srcVersion,
java.lang.String destVersion,
java.lang.String destination,
byte[] srcData)
throws java.lang.Exception
java.lang.Exception
public byte[] transformVersion(java.lang.String replPrefix,
java.lang.String destVersion,
java.lang.String destination,
byte[] content)
throws java.lang.Exception
java.lang.Exception
public java.lang.String transformVersion(java.lang.String replPrefix,
java.lang.String destVersion,
java.lang.String destination,
java.lang.String is)
throws java.lang.Exception
ReplManagerPluginMBean
transformVersion in interface ReplManagerPluginMBeanreplPrefix - The replication prefix of the source to be used.destVersion - The desidered version on the destinationdestination - The session name of the destination.is - The content of the data to be transformed
java.lang.Exceptionpublic void clearVersionCache()
clearVersionCache in interface ReplManagerPluginMBeanpublic I_ReplSlave getSlave(java.lang.String name)
name - the slave associated with this name or null if none found.
public java.lang.String reInitiate(java.lang.String replPrefix)
ReplManagerPluginMBean
reInitiate in interface ReplManagerPluginMBeanreplPrefix -
public java.lang.String getSlaves()
getSlaves in interface ReplManagerPluginMBeanpublic java.lang.String getReplications()
getReplications in interface ReplManagerPluginMBeanpublic static java.lang.String getPluginName()
public java.lang.String getType()
GlobalInfo
getType in interface org.xmlBlaster.util.plugin.I_PlugingetType in class GlobalInfoI_Plugin.getType()public java.lang.String getVersion()
GlobalInfo
getVersion in interface org.xmlBlaster.util.plugin.I_PlugingetVersion in class GlobalInfoI_Plugin.getVersion()
public java.lang.String initiateReplication(java.lang.String slaveSessionName,
java.lang.String prefixWithVersion,
java.lang.String cascadeSlaveSessionName,
java.lang.String cascadeReplicationPrefix,
java.lang.String realInitialFilesLocation)
initiateReplication in interface ReplManagerPluginMBeanslaveSessionName - cascadeSlaveSessionName - The Name of the session of the dbWriter to be used for the cascaded replication. Can be null.realInitialFilesLocation - the file location where the initial dump is stored. If null or an empty String, then it
is assumed to be transfered the "normal" way, that is over the choosen communication protocol.
public java.lang.String initiateReplicationNonMBean(java.lang.String slaveSessionName,
java.lang.String prefixWithVersion,
java.lang.String cascadeSlaveSessionName,
java.lang.String cascadeReplicationPrefix,
java.lang.String realInitialFilesLocation)
throws java.lang.Exception
slaveSessionName - cascadeSlaveSessionName - The Name of the session of the dbWriter to be used for the cascaded replication. Can be null.realInitialFilesLocation - the file location where the initial dump is stored. If null or an empty String, then it
is assumed to be transfered the "normal" way, that is over the choosen communication protocol.
java.lang.Exception
protected void doInit(org.xmlBlaster.util.Global global,
org.xmlBlaster.util.plugin.PluginInfo pluginInfo)
throws org.xmlBlaster.util.XmlBlasterException
doInit in class GlobalInfoglobal - The global passed by the RunLevelManager, this is not the object owned by the plugin. It is the original global.pluginInfo -
org.xmlBlaster.util.XmlBlasterExceptionI_Plugin.init(org.xmlBlaster.util.Global, org.xmlBlaster.util.plugin.PluginInfo)public void shutdown()
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptor
shutdown in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorshutdown in class GlobalInfoI_Plugin.shutdown()public I_Info getReplicationInfo(java.lang.String replicationPrefix)
replicationPrefix -
public void register(java.lang.String senderSession,
java.lang.String replicationPrefix,
I_Info info)
senderSession - The session requesting this registration. This is needed
to reply to the right requestor.info - These are the Configuration of the DbWatcher, for example Table Names and so forth.
public void unregister(java.lang.String senderSession,
java.lang.String replicationPrefix)
public static byte[] getContent(java.io.InputStream is)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String update(java.lang.String cbSessionId,
org.xmlBlaster.client.key.UpdateKey updateKey,
byte[] content,
org.xmlBlaster.client.qos.UpdateQos updateQos)
throws org.xmlBlaster.util.XmlBlasterException
update in interface org.xmlBlaster.client.I_CallbackcbSessionId - The session ID specified by the client which registered the callback.
You can specify a cbSessionId during connection (with ConnectQos)
and this is bounced back here so you can authenticate the message.updateKey - The arrived key containing the topic namecontent - The arrived message content. This is your payload.
org.xmlBlaster.util.XmlBlasterExceptionI_Callback.update(java.lang.String, org.xmlBlaster.client.key.UpdateKey, byte[], org.xmlBlaster.client.qos.UpdateQos)public void addDispatchManager(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
addDispatchManager in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorI_MsgDispatchInterceptor.addDispatchManager(org.xmlBlaster.util.dispatch.DispatchManager)public java.lang.String getInstanceName()
public boolean doActivate(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptor
if (dispatchManager.getDispatchConnectionsHandler().isPolling()) {
return false;
}
doActivate in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorI_MsgDispatchInterceptor.doActivate(org.xmlBlaster.util.dispatch.DispatchManager)
public java.util.ArrayList handleNextMessages(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
java.util.ArrayList pushEntries)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorThis is where this plugin comes in action. The plugin may filter the queue entries and for example only return high priority messages
Usually you take the message out of the queue and then invoke prepareMsgsFromQueue() to filter expired messages away and do a shallow copy of the messages to avoid that changes in the messages have impact on the original messages. See the following example:
// take messages from queue (none blocking) // we take all messages with same priority as a bulk ... ArrayList entryList = dispatchManager.getQueue().peekSamePriority(-1); // filter expired entries etc. ... // you should always call this method after taking messages from queue entryList = dispatchManager.prepareMsgsFromQueue(entryList); // ... do plugin specific work ... return entryList;
handleNextMessages in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorpushEntries - null: Take messages yourself from queue (async mode) org.xmlBlaster.util.XmlBlasterExceptionI_MsgDispatchInterceptor.handleNextMessages(org.xmlBlaster.util.dispatch.DispatchManager, java.util.ArrayList)
public void initialize(org.xmlBlaster.util.Global glob,
java.lang.String typeVersion)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptor
initialize in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptororg.xmlBlaster.util.XmlBlasterExceptionI_MsgDispatchInterceptor.initialize(org.xmlBlaster.util.Global, java.lang.String)public boolean isShutdown()
isShutdown in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorI_MsgDispatchInterceptor.isShutdown()
public void shutdown(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptor
shutdown in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptororg.xmlBlaster.util.XmlBlasterExceptionI_MsgDispatchInterceptor.shutdown(org.xmlBlaster.util.dispatch.DispatchManager)public java.lang.String toXml(java.lang.String extraOffset)
toXml in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorextraOffset - Indent the dump with given ASCII blanks
I_MsgDispatchInterceptor.toXml(java.lang.String)public java.lang.String usage()
usage in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptorI_MsgDispatchInterceptor.usage()
public void toAlive(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState)
toAlive in interface org.xmlBlaster.util.dispatch.I_ConnectionStatusListenerI_ConnectionStatusListener.toAlive(org.xmlBlaster.util.dispatch.DispatchManager, org.xmlBlaster.util.dispatch.ConnectionStateEnum)
public void toDead(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState,
java.lang.String errorText)
toDead in interface org.xmlBlaster.util.dispatch.I_ConnectionStatusListenerI_ConnectionStatusListener.toDead(org.xmlBlaster.util.dispatch.DispatchManager, org.xmlBlaster.util.dispatch.ConnectionStateEnum, java.lang.String)
public void toPolling(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.dispatch.ConnectionStateEnum oldState)
toPolling in interface org.xmlBlaster.util.dispatch.I_ConnectionStatusListenerI_ConnectionStatusListener.toPolling(org.xmlBlaster.util.dispatch.DispatchManager, org.xmlBlaster.util.dispatch.ConnectionStateEnum)public void removeSqlStatement(java.lang.String statementId)
removeSqlStatement in interface ReplManagerPluginMBean
public void broadcastSql(java.lang.String repl,
java.lang.String sql)
throws java.lang.Exception
ReplManagerPluginMBean
broadcastSql in interface ReplManagerPluginMBeanrepl - The replication to which to send the request.sql - The sql statement to perform (can either be a query or an update).
java.lang.Exception - if either the repl or sql was null.ReplManagerPluginMBean.broadcastSql(java.lang.String, java.lang.String)
public void sessionAdded(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
sessionAdded in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterExceptionI_ClientListener.sessionAdded(org.xmlBlaster.authentication.ClientEvent)
public void sessionUpdated(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
sessionUpdated in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterException
public void sessionPreRemoved(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.authentication.I_ClientListener
sessionPreRemoved in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterExceptionI_ClientListener.sessionPreRemoved(org.xmlBlaster.authentication.ClientEvent)
public void sessionRemoved(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.authentication.I_ClientListener
sessionRemoved in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterExceptionI_ClientListener.sessionRemoved(org.xmlBlaster.authentication.ClientEvent)
public void subjectAdded(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.authentication.I_ClientListener
subjectAdded in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterExceptionI_ClientListener.subjectAdded(org.xmlBlaster.authentication.ClientEvent)
public void subjectRemoved(org.xmlBlaster.authentication.ClientEvent e)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.authentication.I_ClientListener
subjectRemoved in interface org.xmlBlaster.authentication.I_ClientListenerorg.xmlBlaster.util.XmlBlasterExceptionI_ClientListener.subjectRemoved(org.xmlBlaster.authentication.ClientEvent)public java.lang.Integer getPriority()
org.xmlBlaster.engine.I_SubscriptionListener
getPriority in interface org.xmlBlaster.engine.I_SubscriptionListenerI_SubscriptionListener.getPriority()
public void subscriptionAdd(org.xmlBlaster.engine.SubscriptionEvent e)
throws org.xmlBlaster.util.XmlBlasterException
subscriptionAdd in interface org.xmlBlaster.engine.I_SubscriptionListenerorg.xmlBlaster.util.XmlBlasterExceptionI_SubscriptionListener.subscriptionAdd(org.xmlBlaster.engine.SubscriptionEvent)
public void subscriptionRemove(org.xmlBlaster.engine.SubscriptionEvent e)
throws org.xmlBlaster.util.XmlBlasterException
org.xmlBlaster.engine.I_SubscriptionListener
subscriptionRemove in interface org.xmlBlaster.engine.I_SubscriptionListenerorg.xmlBlaster.util.XmlBlasterExceptionI_SubscriptionListener.subscriptionRemove(org.xmlBlaster.engine.SubscriptionEvent)
public final java.lang.String recreateTriggers(java.lang.String replPrefix)
throws java.lang.Exception
ReplManagerPluginMBean
recreateTriggers in interface ReplManagerPluginMBeanreplPrefix - this is the same as specified in the configuration as 'replication.prefix' and it
identifies a replication source.
java.lang.Exceptionpublic java.lang.String getInitialFilesLocation()
ReplManagerPluginMBean
getInitialFilesLocation in interface ReplManagerPluginMBean
public static java.io.File checkExistance(java.lang.String pathName)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
public void timeout(java.lang.Object userData)
org.xmlBlaster.util.I_Timeout
timeout in interface org.xmlBlaster.util.I_TimeoutuserData - You get bounced back your userData which you passed
with Timeout.addTimeoutListener()public long getStatusPollerInterval()
ReplManagerPluginMBean
getStatusPollerInterval in interface ReplManagerPluginMBeanpublic long getNumOfRefreshes()
ReplManagerPluginMBean
getNumOfRefreshes in interface ReplManagerPluginMBeanpublic void setStatusPollerInterval(long statusPollerInterval)
ReplManagerPluginMBean
setStatusPollerInterval in interface ReplManagerPluginMBeanstatusPollerInterval - public long getStatusProcessingTime()
ReplManagerPluginMBean
getStatusProcessingTime in interface ReplManagerPluginMBean
public void postHandleNextMessages(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
org.xmlBlaster.util.MsgUnit[] processedEntries)
throws org.xmlBlaster.util.XmlBlasterException
postHandleNextMessages in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptordispatchManager - The used dispatch manager.processedEntries - The entries which have been previously processed.
org.xmlBlaster.util.XmlBlasterException
public void onDispatchWorkerException(org.xmlBlaster.util.dispatch.DispatchManager dispatchManager,
java.lang.Throwable ex)
org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptor
onDispatchWorkerException in interface org.xmlBlaster.util.dispatch.plugins.I_MsgDispatchInterceptordispatchManager - ex - public java.lang.String startBatchUpdate(java.lang.String replicationPrefix)
ReplManagerPluginMBean
startBatchUpdate in interface ReplManagerPluginMBeanreplicationPrefix -
public java.lang.String collectInitialUpdates(java.lang.String replicationPrefix)
ReplManagerPluginMBean
collectInitialUpdates in interface ReplManagerPluginMBeanreplicationPrefix -
public java.lang.String activateSlaveDispatchers(java.lang.String replPrefix)
activateSlaveDispatchers in interface ReplManagerPluginMBeanpublic java.lang.String stopSlaveDispatchers(java.lang.String replPrefix)
stopSlaveDispatchers in interface ReplManagerPluginMBeanpublic I_Info getPersistentInfo()
public java.lang.String[] getMimeExtended()
org.xmlBlaster.engine.mime.I_PublishFilter
getMimeExtended in interface org.xmlBlaster.engine.mime.I_PublishFilterpublic java.lang.String[] getMimeTypes()
org.xmlBlaster.engine.mime.I_PublishFilter
getMimeTypes in interface org.xmlBlaster.engine.mime.I_PublishFilterpublic java.lang.String getName()
org.xmlBlaster.engine.mime.I_PublishFilter
getName in interface org.xmlBlaster.engine.mime.I_PublishFilterpublic void initialize(org.xmlBlaster.engine.ServerScope glob)
org.xmlBlaster.engine.mime.I_PublishFilter
initialize in interface org.xmlBlaster.engine.mime.I_PublishFilterglob - The Global handle of this xmlBlaster server instance.
public java.lang.String intercept(org.xmlBlaster.authentication.SubjectInfo publisher,
org.xmlBlaster.util.MsgUnit msgUnit)
throws org.xmlBlaster.util.XmlBlasterException
intercept in interface org.xmlBlaster.engine.mime.I_PublishFilterpublisher - The subject object describing the publishermsgUnit - The message to check
org.xmlBlaster.util.XmlBlasterException - Is thrown on problems, for example if the MIME type
does not fit to message content.public long[] getCurrentTransactionCount(java.lang.String replPrefix)
public static long[] readOldReplData(I_Info persistentInfo,
java.lang.String propName)
public static void storeReplData(I_Info persistentInfo,
java.lang.String propName,
long[] values)
public void setMaxNumOfEntries(int maxNumOfEntries)
setMaxNumOfEntries in interface ReplManagerPluginMBeanpublic int getMaxNumOfEntries()
getMaxNumOfEntries in interface ReplManagerPluginMBean
public org.xmlBlaster.engine.admin.I_AdminSession getSession(java.lang.String sessionId)
throws java.lang.Exception
java.lang.Exception
public org.xmlBlaster.engine.admin.I_AdminSession getMasterSession(java.lang.String replicationPrefix)
throws java.lang.Exception
java.lang.Exception
public void doExecuteSchedulerJob(boolean open,
java.lang.String prefix,
java.lang.String dest)
|
xmlBlaster 1.6.2 contributions API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||