Interface QMUXMBean
- All Superinterfaces:
QBean, QBeanSupportMBean, QPersist
- All Known Implementing Classes:
QMUX
MBean interface.
-
Field Summary
Fields inherited from interface QBean
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPINGModifier and TypeFieldDescriptionstatic final intQBean has been destroyed.static final intQBean has failed.static final intQBean is running.static final intQBean is in the process of starting.static final String[]Human-readable names for each QBean state, indexed by state constant.static final intQBean is stopped.static final intQBean is in the process of stopping. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current counters formatted as a single human-readable string.longReturns the time elapsed since the last successful transaction.Returns the inbound (response) queue name.longReturns the wall-clock timestamp of the last successful transaction.Returns the outbound (request) queue name.intReturns the number of messages received since the last reset.intReturns the number of received responses that arrived too late and were discarded.intReturns the number of unmatched messages successfully forwarded to listeners.intReturns the number of in-flight responses awaiting matching.intReturns the number of received messages that did not match any pending request.intReturns the number of messages transmitted since the last reset.intReturns the number of TX requests that expired without a matching response.intReturns the number of TX requests still awaiting a response.Returns the queue name where unmatched inbound messages are forwarded.voidResets all transaction counters and the last-transaction timestamp.voidsetInQueue(String in) Sets the inbound (response) queue name.voidsetOutQueue(String out) Sets the outbound (request) queue name.voidsetUnhandledQueue(String unhandled) Sets the queue name where unmatched inbound messages are forwarded.Methods inherited from interface QBean
destroy, getState, getStateAsString, init, start, stopMethods inherited from interface QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerModifier and TypeMethodDescriptiongetDump()Returns a human-readable dump of this bean's state.Returns the QClassLoader for this bean.URL[]Returns the URLs registered with the class loader.Returns the logger name.getName()Returns the bean name.getRealm()Returns the logging realm.Returns the Q2 server instance.voidSets the logger by name.voidSets the bean name.voidsetPersist(org.jdom2.Element e) Sets the persistent configuration element.voidSets the logging realm.voidSets the Q2 server instance for this QBean.Methods inherited from interface QPersist
getPersist, isModifiedModifier and TypeMethodDescriptionorg.jdom2.ElementReturns the persistent configuration element for this QBean.booleanReturnstrueif this QBean's configuration has been modified since last save.
-
Method Details
-
setInQueue
-
getInQueue
-
setOutQueue
-
getOutQueue
-
setUnhandledQueue
Sets the queue name where unmatched inbound messages are forwarded.- Parameters:
unhandled- queue name
-
getUnhandledQueue
Returns the queue name where unmatched inbound messages are forwarded.- Returns:
- queue name, or
nullif not configured
-
resetCounters
void resetCounters()Resets all transaction counters and the last-transaction timestamp. -
getCountersAsString
Returns the current counters formatted as a single human-readable string.- Returns:
- counter snapshot suitable for diagnostics
-
getTXCounter
int getTXCounter()Returns the number of messages transmitted since the last reset.- Returns:
- TX message count
-
getRXCounter
int getRXCounter()Returns the number of messages received since the last reset.- Returns:
- RX message count
-
getTXExpired
int getTXExpired()Returns the number of TX requests that expired without a matching response.- Returns:
- expired TX count
-
getTXPending
int getTXPending()Returns the number of TX requests still awaiting a response.- Returns:
- pending TX count
-
getRXExpired
int getRXExpired()Returns the number of received responses that arrived too late and were discarded.- Returns:
- expired RX count
-
getRXPending
int getRXPending()Returns the number of in-flight responses awaiting matching.- Returns:
- pending RX count
-
getRXUnhandled
int getRXUnhandled()Returns the number of received messages that did not match any pending request.- Returns:
- unhandled RX count
-
getRXForwarded
int getRXForwarded()Returns the number of unmatched messages successfully forwarded to listeners.- Returns:
- forwarded RX count
-
getLastTxnTimestampInMillis
long getLastTxnTimestampInMillis()Returns the wall-clock timestamp of the last successful transaction.- Returns:
- milliseconds since the epoch, or
0if no transaction has completed
-
getIdleTimeInMillis
long getIdleTimeInMillis()Returns the time elapsed since the last successful transaction.- Returns:
- idle time in milliseconds, or
-1if no transaction has completed
-