Interface ChannelAdaptorMBean
- All Superinterfaces:
QBean, QBeanSupportMBean, QPersist
- All Known Subinterfaces:
MultiSessionChannelAdaptorMBean
- All Known Implementing Classes:
ChannelAdaptor, MultiSessionChannelAdaptor
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 TypeMethodDescriptionintReturns the number of successful connections since last reset.Returns all counters as a human-readable string.getHost()Returns the remote host name or address.longReturns the idle time since the last transaction.Returns the incoming space queue name.longReturns the timestamp of the last transaction.Returns the outgoing space queue name.intgetPort()Returns the remote port number.longReturns the reconnect delay.intReturns the received message count.Returns the socket factory class name.intReturns the transmitted message count.booleanReturns true if the channel is currently connected.voidResets all message counters to zero.voidSets the remote host name or address.voidsetInQueue(String in) Sets the incoming space queue name.voidsetOutQueue(String out) Sets the outgoing space queue name.voidsetPort(int port) Sets the remote port number.voidsetReconnectDelay(long delay) Sets the reconnect delay.voidsetSocketFactory(String sFac) Sets the socket factory class name.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
-
setReconnectDelay
Sets the reconnect delay.- Parameters:
delay- reconnect delay in milliseconds
-
getReconnectDelay
-
setInQueue
Sets the incoming space queue name.- Parameters:
in- name of the incoming space queue
-
getInQueue
Returns the incoming space queue name.- Returns:
- name of the incoming space queue
-
setOutQueue
Sets the outgoing space queue name.- Parameters:
out- name of the outgoing space queue
-
getOutQueue
Returns the outgoing space queue name.- Returns:
- name of the outgoing space queue
-
setHost
-
getHost
-
setPort
-
getPort
-
setSocketFactory
Sets the socket factory class name.- Parameters:
sFac- socket factory class name
-
getSocketFactory
-
isConnected
boolean isConnected()Returns true if the channel is currently connected.- Returns:
- true if connected
-
resetCounters
void resetCounters()Resets all message counters to zero. -
getCountersAsString
Returns all counters as a human-readable string.- Returns:
- counters string
-
getTXCounter
-
getRXCounter
-
getConnectsCounter
int getConnectsCounter()Returns the number of successful connections since last reset.- Returns:
- connect count
-
getLastTxnTimestampInMillis
long getLastTxnTimestampInMillis()Returns the timestamp of the last transaction.- Returns:
- timestamp in milliseconds
-
getIdleTimeInMillis
long getIdleTimeInMillis()Returns the idle time since the last transaction.- Returns:
- idle time in milliseconds
-