|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.xmlBlaster.engine.RequestBroker
public final class RequestBroker
This is the central message broker, all requests are routed through this singleton.
The interface I_ClientListener informs about Client login/logout
Most events are fired from the RequestBroker
See xmlBlaster.idl, the CORBA access interface on how clients can access xmlBlaster.
| Field Summary | |
|---|---|
private AccessPluginManager |
accessPluginManager
|
private static int |
ALIVE
|
private Authenticate |
authenticate
the authentication service |
private BigXmlKeyDOM |
bigXmlKeyDOM
This is a handle on the big DOM tree with all XmlKey keys (all message meta data) |
private ClientSubscriptions |
clientSubscriptions
Helper to handle the subscriptions |
private DispatchStatistic |
dispatchStatistic
Contains total count of published messages and get() invocations. |
private ServerScope |
glob
|
static java.lang.String |
internalLoginNamePrefix
|
private java.lang.String |
lastError
|
private java.lang.String |
lastWarning
|
private static java.util.logging.Logger |
log
|
private JmxMBeanHandle |
mbeanHandle
My JMX registration |
private java.lang.String |
ME
|
private SessionName |
myselfLoginName
|
private boolean |
publishLoginEvent
The messageUnit for a login event |
private boolean |
publishLogoutEvent
Initialize a messageUnit for a logout event |
private PublishPluginManager |
publishPluginManager
|
private PublishQos |
publishQosForEvents
|
private PublishQosServer |
publishQosLoginEvent
|
private PublishQosServer |
publishQosLogoutEvent
|
private boolean |
publishUserList
Initialize a messageUnit for a userList event |
private java.util.Set |
remotePropertiesListeners
|
private long |
startupTime
Incarnation time of this object instance in millis |
private int |
state
|
private boolean |
subscribeMultipleClusterForward
Added 2011-06-16 Marcel, default behavior has changed For testing only, probably removed again in future (performance impact needs to be discussed if activated) |
private java.util.Map |
subscriptionListenerMap
For listeners who want to be informed about subscribe/unsubscribe events. |
private I_Map |
topicStore
Store configuration of all topics in xmlBlaster for recovery |
private static int |
UNDEF
State during construction |
private SessionInfo |
unsecureSessionInfo
This client is only for internal use, it is un secure to pass it outside because there is no authentication. The login name "__RequestBroker_internal__" is reserved! TODO: security discussion |
private boolean |
useOldStylePersistence
Flag for performance reasons only |
private MsgKeyData |
xmlKeyLoginEvent
|
private MsgKeyData |
xmlKeyLogoutEvent
|
private MsgKeyData |
xmlKeyUserListEvent
|
| Constructor Summary | |
|---|---|
RequestBroker(Authenticate authenticate)
One instance of this represents one xmlBlaster server. |
|
| Method Summary | |
|---|---|
int |
addPersistentTopicHandler(TopicEntry topicEntry)
Make the topicHandler persistent for crash recovery and shutdown/startup cycle. |
boolean |
addRemotePropertiesListener(I_RemotePropertiesListener remotePropertiesListener)
Add listener if new remote properties arrive. |
void |
addSubscriptionListener(I_SubscriptionListener l)
Adds the specified subscription listener to receive subscribe/unSubscribe events. |
int |
changePersistentTopicHandler(TopicEntry topicEntry)
Remove the persistent TopicHandler entry. |
java.lang.String |
checkCallbackEntriesConsistency(boolean fixIt,
java.lang.String reportFileName)
Loop through all database entries of relating='callback' and check if there are entries from not existing sessions with pubSessionId=<0 |
java.lang.String |
checkConsistency(java.lang.String fixIt,
java.lang.String reportFileName)
Do consistency check. |
java.lang.String |
checkConsistencyOld_XB_ENTRIES(I_Map map,
boolean fixIt,
java.lang.String reportFileName)
|
(package private) void |
checkExistingSubscriptions(SessionInfo sessionInfo,
TopicHandler topicHandler,
PublishQosServer xmlQoS)
This helper method checks for a published message which didn't exist before if there are any XPath subscriptions pending which match. |
void |
clearLastError()
Clear the last exception text. |
void |
clearLastWarning()
Clear the last warning text. |
java.lang.String[] |
deadMessage(MsgQueueEntry[] entries,
I_Queue queue,
java.lang.String reason)
Publish dead letters, expired letters should be filtered away before. |
java.lang.String |
displayClassInfo(java.lang.String clazzName)
Check if the given java class is known and wherefrom it was loaded. |
java.lang.String |
dump()
Dump the complete internal state of xmlBlaster. |
java.lang.String |
dumpAllStacks()
|
java.lang.String |
dumpAllStacksToFile(java.lang.String file)
|
java.lang.String |
dumpToFile(java.lang.String reportFileName)
|
(package private) java.lang.String[] |
erase(SessionInfo sessionInfo,
QueryKeyData xmlKey,
EraseQosServer eraseQos)
Client wants to erase a message. |
private java.lang.String[] |
erase(SessionInfo sessionInfo,
QueryKeyData xmlKey,
EraseQosServer eraseQos,
boolean isClusterUpdate)
Client wants to erase a message. |
void |
exit()
Shutdown xmlBlaster, exit value is '0' |
(package private) void |
fireSubscribeEvent(SubscriptionInfo subscriptionInfo)
|
private void |
fireSubscriptionEvent(SubscriptionInfo subscriptionInfo,
boolean subscribe)
Is fired on subscribe(), unSubscribe() and several times on erase(). |
(package private) void |
fireUnSubscribeEvent(SubscriptionInfo subscriptionInfo)
|
PublishReturnQos |
forwardPtpPublish(SessionInfo sessionInfo,
MsgUnit msgUnit,
boolean isClusterUpdate,
Destination destination)
Rorward a message to another cluster node. |
MsgUnit[] |
get(SessionInfo sessionInfo,
QueryKeyData xmlKey,
GetQosServer getQos)
Invoked by a client, to access one/many MsgUnit. |
AccessPluginManager |
getAccessPluginManager()
|
java.lang.String[] |
getAliveCallbackClients()
Shows the clients which have a alive callback connection. |
(package private) Authenticate |
getAuthenticate()
|
Authenticate |
getAuthenticate(java.lang.String secretSessionId)
This method returns the unprotected Authenticate object. |
(package private) BigXmlKeyDOM |
getBigXmlKeyDOM()
|
java.lang.String |
getBuildJavaVendor()
The java vendor of the compiler. |
java.lang.String |
getBuildJavaVersion()
The compiler java version. |
java.lang.String |
getBuildTimestamp()
Returns the date when xmlBlaster was compiled. |
java.lang.String |
getClientList()
These are the login names returned, every client may be logged in multiple times which you can't see here |
java.lang.String[] |
getClients()
Get the client names. |
ClientSubscriptions |
getClientSubscriptions()
Holds all subscriptions. |
long |
getFreeMem()
Memory in bytes |
java.lang.String |
getFreeMemStr()
Nicer to read for humans. |
java.lang.String |
getGc()
|
java.lang.String |
getHostname()
Access the bootstrap host name. |
java.lang.String |
getInstanceId()
Unique id of the xmlBlaster server, changes on each restart. |
(package private) SessionInfo |
getInternalSessionInfo()
|
java.lang.String |
getLastError()
Access the last logged error |
java.lang.String |
getLastWarning()
Access the last logged error |
int |
getMaxClients()
Get the maximum allowed number of clients. |
long |
getMaxFreeMem()
Free memory in bytes |
java.lang.String |
getMaxFreeMemStr()
Nicer to read for humans. |
long |
getMaxMem()
Returns the total amount of memory including what the Java virtual machine could additionally allocate. |
java.lang.String |
getMaxMemStr()
Nicer to read for humans. |
java.lang.String |
getName()
A human readable name of the listener for logging. |
java.lang.String |
getNodeId()
Get my cluster node name. |
java.lang.String |
getNodeList()
Get the names of all known xmlBlaster cluster nodes. |
java.lang.String[] |
getNodes()
Get the names of all known xmlBlaster cluster nodes. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Declare available notification event types. |
int |
getNumClients()
The number of different users, the sessions may be higher |
long |
getNumGet()
|
int |
getNumNodes()
Get the number of known cluster nodes. |
long |
getNumPublish()
|
int |
getNumSubscriptions()
Get the number of subscriptions. |
int |
getNumSysprop()
Get the number of system properties. |
int |
getNumTopics()
Get the number of topics. |
long |
getNumUpdate()
The overall sent updates (callback to client) |
int |
getPort()
The bootstrap bootstrap port |
PublishPluginManager |
getPublishPluginManager()
|
I_RemotePropertiesListener[] |
getRemotePropertiesListenerArr()
Access a current snapshot of all listeners. |
java.lang.String |
getRevisionNumber()
Returns the xmlBlaster SVN version control revision number. |
java.lang.String |
getRunlevel()
Access the current run level of xmlBlaster. |
ServerScope |
getServerScope()
Access the ServerScope handle. |
java.lang.String |
getServerTimestamp()
Access the current server time as a java.sql.Timestamp string. |
long |
getServerTimestampMillis()
Returns the current server time in milliseconds. |
java.lang.String |
getStartupDate()
Get date when xmlBlaster was started. |
java.lang.String |
getSubscriptionList()
Get the subscriptions. |
I_SubscriptionListener |
getSubscriptionListener(java.lang.Integer prio)
Returns the listener with the specified prio or null if none with that prio has been found. |
java.lang.String[] |
getSubscriptions()
Get the subscriptions ids. |
java.lang.String |
getSyspropList()
Deprecated. Is not supported anymore |
java.lang.String |
getTopicList()
Get the topics. |
java.lang.String[] |
getTopics()
Get the topics. |
(package private) I_Map |
getTopicStore()
|
long |
getTotalMem()
Returns the current amount of memory in the Java virtual machine. |
java.lang.String |
getTotalMemStr()
Nicer to read for humans. |
long |
getUptime()
How long is the server running (in seconds) |
java.lang.String |
getUsageUrl()
JMX |
long |
getUsedMem()
|
java.lang.String |
getUsedMemStr()
Nicer to read for humans. |
java.lang.String |
getVersion()
Get the xmlBlaster version number. |
private void |
initHelperQos()
Put this code in a generic internal message producer class (future release) |
boolean |
isAcceptWrongSenderAddress()
Configure server with '-xmlBlaster/acceptWrongSenderAddress true' or "-xmlBlaster/acceptWrongSenderAddress/joe true". |
void |
log(java.util.logging.LogRecord record)
Redirect logging, configure in xmlBlaster.properties. |
java.lang.String |
pingTimerDumpToFile(java.lang.String fn)
|
java.lang.String |
pingTimerInfo()
|
java.lang.String |
publish(SessionInfo sessionInfo,
MsgUnit msgUnit)
Internal publishing helper. |
private java.lang.String |
publish(SessionInfo sessionInfo,
MsgUnit msgUnit,
boolean isClusterUpdate)
|
private java.lang.String |
publish(SessionInfo sessionInfo,
MsgUnit msgUnit,
PublishQosServer publishQos)
Write-Access method to publish a new message from a data source. |
java.lang.String |
publishDeadMessage(MsgUnit origMsgUnit,
java.lang.String text,
java.lang.String clientPropertyKey,
SessionName receiver)
|
java.lang.String |
publishDeadMessageRaw(SessionName sender,
MsgUnitRaw origMsgUnit,
java.lang.String text,
SessionName receiver)
|
private KeyData[] |
queryMatchingKeys(SessionInfo sessionInfo,
QueryKeyData queryKeyData,
QueryQosData qos)
This method does the query (queryType = "XPATH" | "EXACT"). |
private java.lang.String[] |
queryMatchingTopics(SessionInfo sessionInfo,
QueryKeyData queryKeyData,
QueryQosData qos)
This method does the query (queryType = "XPATH" | "EXACT"). |
int |
removePersistentTopicHandler(TopicEntry topicEntry)
Remove the persistent TopicHandler entry. |
boolean |
removeRemotePropertiesListener(I_RemotePropertiesListener remotePropertiesListener)
Remove the given listener |
void |
removeSubscriptionListener(I_SubscriptionListener l)
Removes the specified listener. |
java.lang.String |
reportMemoryOverview()
|
private java.lang.String |
reportMemoryOverview(java.lang.String reportFileName)
|
java.lang.String |
reportMemoryOverviewToFile(java.lang.String reportFileName)
|
void |
runlevelChange(int from,
int to,
boolean force)
Invoked on run level change, see RunlevelManager.RUNLEVEL_HALTED and RunlevelManager.RUNLEVEL_RUNNING Enforced by I_RunlevelListener |
void |
sessionAdded(ClientEvent e)
Event invoked on successful client login (interface I_ClientListener). |
void |
sessionPreRemoved(ClientEvent e)
Invoked before a client does a logout |
void |
sessionRemoved(ClientEvent e)
Event invoked when client does a logout (interface I_ClientListener). |
void |
sessionUpdated(ClientEvent e)
Invoked on successful client re-login (interface I_ClientListener) |
void |
setAcceptWrongSenderAddress(boolean acceptWrongSenderAddress)
|
void |
setDump(java.lang.String fn)
Dump the internal xmlBlaster state to the given file. |
void |
setExit(java.lang.String exitValue)
|
void |
setGc(java.lang.String dummy)
|
void |
setRunlevel(java.lang.String levelStr)
Change the run level of xmlBlaster. |
void |
setUsageUrl(java.lang.String url)
|
private void |
startupTopicStore()
This stores the topics configuration (the publish administrative message - the MsgUnit data struct) |
void |
subjectAdded(ClientEvent e)
Event invoked on new created SubjectInfo. |
void |
subjectRemoved(ClientEvent e)
Event invoked on deleted SubjectInfo. |
java.lang.String |
subscribe(SessionInfo sessionInfo,
QueryKeyData xmlKey,
SubscribeQosServer subscribeQos)
|
private void |
subscribeToOid(SubscriptionInfo subs,
boolean calleeIsXPathMatchCheck)
Low level subscribe, is called when the |
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
java.lang.String[] |
unSubscribe(SessionInfo sessionInfo,
QueryKeyData xmlKey,
UnSubscribeQosServer unSubscribeQos)
Incoming unsubscribe request from a client. |
java.lang.String |
update(SessionInfo sessionInfo,
UpdateKey updateKey,
byte[] content,
MsgQosData msgQosData)
Used for cluster internal updates. |
void |
updateInternalUserList()
|
java.lang.String |
usage()
JMX |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String ME
private final ServerScope glob
private static java.util.logging.Logger log
private DispatchStatistic dispatchStatistic
private java.lang.String lastWarning
private java.lang.String lastError
private Authenticate authenticate
private final java.util.Set remotePropertiesListeners
private I_Map topicStore
private final SessionInfo unsecureSessionInfo
private final SessionName myselfLoginName
public static final java.lang.String internalLoginNamePrefix
private final ClientSubscriptions clientSubscriptions
private final java.util.Map subscriptionListenerMap
private BigXmlKeyDOM bigXmlKeyDOM
private boolean useOldStylePersistence
private boolean publishLoginEvent
private MsgKeyData xmlKeyLoginEvent
private PublishQos publishQosForEvents
private PublishQosServer publishQosLoginEvent
private boolean publishUserList
private MsgKeyData xmlKeyUserListEvent
private boolean publishLogoutEvent
private MsgKeyData xmlKeyLogoutEvent
private PublishQosServer publishQosLogoutEvent
private AccessPluginManager accessPluginManager
private PublishPluginManager publishPluginManager
private long startupTime
private static final int UNDEF
private static final int ALIVE
private int state
private JmxMBeanHandle mbeanHandle
private boolean subscribeMultipleClusterForward
| Constructor Detail |
|---|
public RequestBroker(Authenticate authenticate)
throws XmlBlasterException
authenticate - The authentication service
XmlBlasterException| Method Detail |
|---|
Authenticate getAuthenticate()
private void initHelperQos()
throws XmlBlasterException
XmlBlasterExceptionpublic java.lang.String getName()
getName in interface I_RunlevelListenerBigXmlKeyDOM getBigXmlKeyDOM()
public ClientSubscriptions getClientSubscriptions()
public void runlevelChange(int from,
int to,
boolean force)
throws XmlBlasterException
runlevelChange in interface I_RunlevelListenerfrom - The current runlevelto - The runlevel we want to switch toforce - If true force the change even if messages are lost
XmlBlasterExceptionpublic final ServerScope getServerScope()
I_Map getTopicStore()
private void startupTopicStore()
throws XmlBlasterException
XmlBlasterExceptionpublic final AccessPluginManager getAccessPluginManager()
public final PublishPluginManager getPublishPluginManager()
final SessionInfo getInternalSessionInfo()
public java.lang.String[] deadMessage(MsgQueueEntry[] entries,
I_Queue queue,
java.lang.String reason)
<key oid='__sys__deadMessage'>
<oid>aMessage</oid>
<key>
The usual sources to send dead letters are:
entries - The message to send as dead lettersqueue - The belonging queue or nullreason - A human readable text describing the problem
public java.lang.String publishDeadMessage(MsgUnit origMsgUnit,
java.lang.String text,
java.lang.String clientPropertyKey,
SessionName receiver)
throws XmlBlasterException
XmlBlasterException
public java.lang.String publishDeadMessageRaw(SessionName sender,
MsgUnitRaw origMsgUnit,
java.lang.String text,
SessionName receiver)
throws XmlBlasterException
XmlBlasterException
public java.lang.String subscribe(SessionInfo sessionInfo,
QueryKeyData xmlKey,
SubscribeQosServer subscribeQos)
throws XmlBlasterException
XmlBlasterException
public MsgUnit[] get(SessionInfo sessionInfo,
QueryKeyData xmlKey,
GetQosServer getQos)
throws XmlBlasterException
xmlKey - Key allowing XPath or exact selectiongetQos - Quality of Service, flags to control subscriptionXmlBlasterException - on internal errorsGetQos,
The interface.get requirement
public void updateInternalUserList()
throws XmlBlasterException
XmlBlasterException
private KeyData[] queryMatchingKeys(SessionInfo sessionInfo,
QueryKeyData queryKeyData,
QueryQosData qos)
throws XmlBlasterException
clientName - is only needed for nicer logging output
XmlBlasterException
private java.lang.String[] queryMatchingTopics(SessionInfo sessionInfo,
QueryKeyData queryKeyData,
QueryQosData qos)
throws XmlBlasterException
clientName - is only needed for nicer logging output
XmlBlasterException
public final int addPersistentTopicHandler(TopicEntry topicEntry)
throws XmlBlasterException
XmlBlasterException
public final int removePersistentTopicHandler(TopicEntry topicEntry)
throws XmlBlasterException
XmlBlasterException
public final int changePersistentTopicHandler(TopicEntry topicEntry)
throws XmlBlasterException
XmlBlasterException
private void subscribeToOid(SubscriptionInfo subs,
boolean calleeIsXPathMatchCheck)
throws XmlBlasterException
If the message is yet unknown, an empty is created to hold the subscription.
subs - calleeIsXPathMatchCheck - true The calling thread is internally to check if a Query matches a new published topic
false The callee is a subscribe() thread from a client
XmlBlasterExceptionpublic Authenticate getAuthenticate(java.lang.String secretSessionId)
secretSessionId - the secret Session Id of the invoker.
TODO in future an authorization operation shall be performed here
public java.lang.String[] unSubscribe(SessionInfo sessionInfo,
QueryKeyData xmlKey,
UnSubscribeQosServer unSubscribeQos)
throws XmlBlasterException
sessionInfo - xmlKey - Key with the oid to unSubscribeqos - Quality of Service, flags to control unsubscription
<qos>
<notify>false <!-- The subscribers shall not be notified when this message is destroyed -->
</qos>
<qos>
<subscribe id='__subId:2'/>
<isUnSubscribe/>
</qos>
XmlBlasterException
public final java.lang.String update(SessionInfo sessionInfo,
UpdateKey updateKey,
byte[] content,
MsgQosData msgQosData)
throws XmlBlasterException
XmlBlasterException
public final java.lang.String publish(SessionInfo sessionInfo,
MsgUnit msgUnit)
throws XmlBlasterException
XmlBlasterException
private final java.lang.String publish(SessionInfo sessionInfo,
MsgUnit msgUnit,
boolean isClusterUpdate)
throws XmlBlasterException
XmlBlasterException
private final java.lang.String publish(SessionInfo sessionInfo,
MsgUnit msgUnit,
PublishQosServer publishQos)
throws XmlBlasterException
sessionInfo - The SessionInfo object, describing the publishing clientmsgUnit - The MsgUnit structisClusterUpdate - true if it is a update() callback message from another cluster node
XmlBlasterException
public PublishReturnQos forwardPtpPublish(SessionInfo sessionInfo,
MsgUnit msgUnit,
boolean isClusterUpdate,
Destination destination)
throws XmlBlasterException
XmlBlasterException
final void checkExistingSubscriptions(SessionInfo sessionInfo,
TopicHandler topicHandler,
PublishQosServer xmlQoS)
throws XmlBlasterException
XmlBlasterException
java.lang.String[] erase(SessionInfo sessionInfo,
QueryKeyData xmlKey,
EraseQosServer eraseQos)
throws XmlBlasterException
sessionInfo - The SessionInfo object, describing the invoking clientxmlKey - Key allowing XPath or exact selectioneraseQoS - Quality of Service, flags to control the erasing
XmlBlasterException
private java.lang.String[] erase(SessionInfo sessionInfo,
QueryKeyData xmlKey,
EraseQosServer eraseQos,
boolean isClusterUpdate)
throws XmlBlasterException
sessionInfo - The SessionInfo object, describing the invoking clientxmlKey - Key allowing XPath or exact selectioneraseQoS - Quality of Service, flags to control the erasingisClusterUpdate - true if it is a update() callback message from another cluster node
XmlBlasterException
public void sessionAdded(ClientEvent e)
throws XmlBlasterException
<key oid='__sys__Login'> <!-- Client name is delivered in the content -->
</key>
sessionAdded in interface I_ClientListenerXmlBlasterException
public void sessionUpdated(ClientEvent e)
throws XmlBlasterException
sessionUpdated in interface I_ClientListenerXmlBlasterException
public void sessionRemoved(ClientEvent e)
throws XmlBlasterException
<key oid='__sys__Logout'> <!-- Client name is delivered in the content -->
</key>
sessionRemoved in interface I_ClientListenerXmlBlasterException
public void sessionPreRemoved(ClientEvent e)
throws XmlBlasterException
I_ClientListener
sessionPreRemoved in interface I_ClientListenerXmlBlasterException
public void subjectAdded(ClientEvent e)
throws XmlBlasterException
subjectAdded in interface I_ClientListenerXmlBlasterException
public void subjectRemoved(ClientEvent e)
throws XmlBlasterException
subjectRemoved in interface I_ClientListenerXmlBlasterExceptionpublic boolean addRemotePropertiesListener(I_RemotePropertiesListener remotePropertiesListener)
RemotePropertiesListener -
public boolean removeRemotePropertiesListener(I_RemotePropertiesListener remotePropertiesListener)
RemotePropertiesListener -
public I_RemotePropertiesListener[] getRemotePropertiesListenerArr()
public void addSubscriptionListener(I_SubscriptionListener l)
public I_SubscriptionListener getSubscriptionListener(java.lang.Integer prio)
prio -
public void removeSubscriptionListener(I_SubscriptionListener l)
final void fireUnSubscribeEvent(SubscriptionInfo subscriptionInfo)
throws XmlBlasterException
XmlBlasterException
final void fireSubscribeEvent(SubscriptionInfo subscriptionInfo)
throws XmlBlasterException
XmlBlasterException
private final void fireSubscriptionEvent(SubscriptionInfo subscriptionInfo,
boolean subscribe)
throws XmlBlasterException
subscribe - true: on subscribe, false: on unSubscribe
XmlBlasterException
public final java.lang.String toXml()
throws XmlBlasterException
XmlBlasterException
public final java.lang.String toXml(java.lang.String extraOffset)
throws XmlBlasterException
extraOffset - indenting of tags for nice output
XmlBlasterExceptionpublic int getNumNodes()
I_AdminNode
getNumNodes in interface I_AdminNodepublic java.lang.String pingTimerInfo()
pingTimerInfo in interface RequestBrokerMBeanpublic java.lang.String pingTimerDumpToFile(java.lang.String fn)
pingTimerDumpToFile in interface RequestBrokerMBeanpublic java.lang.String getNodeList()
I_AdminNode
getNodeList in interface I_AdminNodepublic java.lang.String[] getNodes()
I_AdminNode
getNodes in interface I_AdminNodepublic java.lang.String getNodeId()
I_AdminNode
getNodeId in interface I_AdminNodepublic java.lang.String getInstanceId()
I_AdminNode
getInstanceId in interface I_AdminNodepublic java.lang.String getVersion()
I_AdminNode
getVersion in interface I_AdminNodepublic java.lang.String getRevisionNumber()
I_AdminNode
getRevisionNumber in interface I_AdminNodepublic long getServerTimestampMillis()
I_AdminNodeSystem.currentTimeMillis
getServerTimestampMillis in interface I_AdminNodepublic java.lang.String getServerTimestamp()
I_AdminNode
getServerTimestamp in interface I_AdminNodepublic java.lang.String getBuildTimestamp()
I_AdminNode
getBuildTimestamp in interface I_AdminNodepublic java.lang.String getBuildJavaVendor()
I_AdminNode
getBuildJavaVendor in interface I_AdminNodepublic java.lang.String getBuildJavaVersion()
I_AdminNode
getBuildJavaVersion in interface I_AdminNodepublic java.lang.String dumpToFile(java.lang.String reportFileName)
dumpToFile in interface I_AdminNodereportFileName - e.g. "/tmp/x.xml"
public java.lang.String dump()
throws XmlBlasterException
I_AdminNode
dump in interface I_AdminNodeXmlBlasterException
public void setDump(java.lang.String fn)
throws XmlBlasterException
I_AdminNode
deprecated, use #dumpToFile(String, String) which uses
OutputStream
setDump in interface I_AdminNodefn - The complete path and file name
XmlBlasterExceptionpublic java.lang.String getRunlevel()
I_AdminNode
getRunlevel in interface I_AdminNode
public void setRunlevel(java.lang.String levelStr)
throws XmlBlasterException
I_AdminNode
setRunlevel in interface I_AdminNodeXmlBlasterExceptionpublic java.lang.String getStartupDate()
getStartupDate in interface I_AdminNodepublic long getUptime()
getUptime in interface I_AdminNodepublic java.lang.String getLastWarning()
getLastWarning in interface I_AdminNodepublic void clearLastWarning()
I_AdminNode
clearLastWarning in interface I_AdminNodepublic java.lang.String getLastError()
getLastError in interface I_AdminNodepublic void clearLastError()
I_AdminNode
clearLastError in interface I_AdminNodepublic long getFreeMem()
getFreeMem in interface I_AdminNodepublic java.lang.String getFreeMemStr()
I_AdminNode
getFreeMemStr in interface I_AdminNodeI_AdminNode.getFreeMem()public long getMaxFreeMem()
getMaxFreeMem in interface I_AdminNodepublic java.lang.String getMaxFreeMemStr()
I_AdminNode
getMaxFreeMemStr in interface I_AdminNodeI_AdminNode.getMaxFreeMem()public long getTotalMem()
I_AdminNodeNote that the amount of memory required to hold an object of any given type may be implementation-dependent.
getTotalMem in interface I_AdminNodepublic java.lang.String getTotalMemStr()
I_AdminNode
getTotalMemStr in interface I_AdminNodeI_AdminNode.getTotalMem()public long getMaxMem()
I_AdminNodeIncrease with for example java -Xmx512M on startup.
getMaxMem in interface I_AdminNodepublic java.lang.String getMaxMemStr()
I_AdminNode
getMaxMemStr in interface I_AdminNodeI_AdminNode.getMaxMem()public long getUsedMem()
getUsedMem in interface I_AdminNodepublic java.lang.String getUsedMemStr()
I_AdminNode
getUsedMemStr in interface I_AdminNodeI_AdminNode.getUsedMem()public java.lang.String getGc()
getGc in interface I_AdminNodepublic void setGc(java.lang.String dummy)
setGc in interface I_AdminNode
public void exit()
throws XmlBlasterException
I_AdminNode
exit in interface I_AdminNodeXmlBlasterException
public void setExit(java.lang.String exitValue)
throws XmlBlasterException
setExit in interface I_AdminNodeXmlBlasterExceptionpublic java.lang.String getHostname()
I_AdminNode
getHostname in interface I_AdminNodepublic int getPort()
getPort in interface I_AdminNodepublic int getNumClients()
getNumClients in interface I_AdminNodepublic int getMaxClients()
I_AdminNode
getMaxClients in interface I_AdminNodepublic java.lang.String[] getAliveCallbackClients()
I_AdminNode
getAliveCallbackClients in interface I_AdminNodepublic java.lang.String getClientList()
getClientList in interface I_AdminNodepublic java.lang.String[] getClients()
I_AdminNode
getClients in interface I_AdminNodepublic int getNumSysprop()
I_AdminNode
getNumSysprop in interface I_AdminNodepublic java.lang.String getSyspropList()
I_AdminNode
getSyspropList in interface I_AdminNodepublic int getNumTopics()
I_AdminNode
getNumTopics in interface I_AdminNodepublic java.lang.String getTopicList()
I_AdminNode
getTopicList in interface I_AdminNodepublic java.lang.String[] getTopics()
I_AdminNode
getTopics in interface I_AdminNodepublic int getNumSubscriptions()
I_AdminNode
getNumSubscriptions in interface I_AdminNodepublic java.lang.String getSubscriptionList()
I_AdminNode
getSubscriptionList in interface I_AdminNodepublic java.lang.String[] getSubscriptions()
I_AdminNode
getSubscriptions in interface I_AdminNodepublic java.lang.String displayClassInfo(java.lang.String clazzName)
I_AdminNode
displayClassInfo in interface I_AdminNodepublic java.lang.String usage()
usage in interface I_AdminUsagepublic java.lang.String getUsageUrl()
getUsageUrl in interface I_AdminUsagepublic void setUsageUrl(java.lang.String url)
setUsageUrl in interface I_AdminUsagepublic void log(java.util.logging.LogRecord record)
log in interface I_LogListenerpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class javax.management.NotificationBroadcasterSupportpublic long getNumGet()
getNumGet in interface I_AdminNodepublic long getNumPublish()
getNumPublish in interface I_AdminNodepublic long getNumUpdate()
I_AdminNode
getNumUpdate in interface I_AdminNode
public java.lang.String checkConsistency(java.lang.String fixIt,
java.lang.String reportFileName)
I_AdminNode
checkConsistency in interface I_AdminNodefixIt - If "true" (ignoring case) there will be attempts to fix problems, defaults to "false"reportFileName - The file to dump the report
public java.lang.String checkCallbackEntriesConsistency(boolean fixIt,
java.lang.String reportFileName)
fixIt - default to false which is readonlyreportFileName -
public java.lang.String reportMemoryOverviewToFile(java.lang.String reportFileName)
reportMemoryOverviewToFile in interface I_AdminNodepublic java.lang.String reportMemoryOverview()
reportMemoryOverview in interface I_AdminNodeprivate java.lang.String reportMemoryOverview(java.lang.String reportFileName)
public java.lang.String checkConsistencyOld_XB_ENTRIES(I_Map map,
boolean fixIt,
java.lang.String reportFileName)
public java.lang.String dumpAllStacks()
dumpAllStacks in interface I_AdminNodepublic java.lang.String dumpAllStacksToFile(java.lang.String file)
dumpAllStacksToFile in interface I_AdminNodepublic boolean isAcceptWrongSenderAddress()
I_AdminNode
isAcceptWrongSenderAddress in interface I_AdminNodepublic void setAcceptWrongSenderAddress(boolean acceptWrongSenderAddress)
setAcceptWrongSenderAddress in interface I_AdminNodeacceptWrongSenderAddress - the acceptWrongSenderAddress to set
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||