Class QMUX
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.iso.QMUX
- All Implemented Interfaces:
Configurable, ISOSource, MUX, QMUXMBean, QBean, QBeanSupportMBean, QPersist, SpaceListener, Loggeable, MetricsProvider
public class QMUX
extends QBeanSupport
implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected String[]protected String[]protected Stringprotected String[]protected LocalSpaceprotected StringFields inherited from class QBeanSupport
cfg, log, scheduledThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddump(PrintStream p, String indent) longlongstatic MUXString[]intintintintintgetSpace()intintintvoidbooleanprotected booleanisNotifyEligible(ISOMsg msg) voidCalled by Space implementation whenever an object with the given key is being placed in the Space.protected voidbooleanSends a message to remote host and wait for responsevoidrequest(ISOMsg m, long timeout, ISOResponseListener rl, Object handBack) Sends a message to remote host in async wayvoidvoidsends (or hands back) an ISOMsgvoidsetInQueue(String in) voidsetOutQueue(String out) voidsetUnhandledQueue(String unhandled) voidvoidMethods inherited from class QBeanSupport
addAttr, close, createElement, destroy, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerMethods inherited from interface QPersist
getPersist, isModified
-
Field Details
-
sp
-
in
-
out
-
unhandled
-
ready
-
key
-
ignorerc
-
mtiMapping
-
-
Constructor Details
-
QMUX
public QMUX()
-
-
Method Details
-
initService
- Overrides:
initServicein classQBeanSupport- Throws:
ConfigurationException
-
startService
- Overrides:
startServicein classQBeanSupport
-
stopService
- Overrides:
stopServicein classQBeanSupport
-
destroyService
- Overrides:
destroyServicein classQBeanSupport
-
getMUX
- Returns:
- MUX with name using NameRegistrar
- Throws:
NameRegistrar.NotFoundException- See Also:
-
request
Description copied from interface:MUXSends a message to remote host and wait for response- Specified by:
requestin interfaceMUX- Parameters:
m- message to sendtimeout- amount of time in millis to wait for a response- Returns:
- response or null
- Throws:
ISOException
-
request
public void request(ISOMsg m, long timeout, ISOResponseListener rl, Object handBack) throws ISOException Description copied from interface:MUXSends a message to remote host in async way- Specified by:
requestin interfaceMUX- Parameters:
m- message to sendtimeout- time to wait for the responserl- reference to response listenerhandBack- optional handback to be given to reponse listener- Throws:
ISOException
-
isNotifyEligible
-
notify
Description copied from interface:SpaceListenerCalled by Space implementation whenever an object with the given key is being placed in the Space.
- Specified by:
notifyin interfaceSpaceListener- Parameters:
k- Object's keyvalue- Object's value
-
getKey
- Throws:
ISOException
-
getMetrics
- Specified by:
getMetricsin interfaceMetricsProvider
-
setInQueue
- Specified by:
setInQueuein interfaceQMUXMBean
-
getInQueue
- Specified by:
getInQueuein interfaceQMUXMBean
-
setOutQueue
- Specified by:
setOutQueuein interfaceQMUXMBean
-
getOutQueue
- Specified by:
getOutQueuein interfaceQMUXMBean
-
getSpace
-
setUnhandledQueue
- Specified by:
setUnhandledQueuein interfaceQMUXMBean
-
getUnhandledQueue
- Specified by:
getUnhandledQueuein interfaceQMUXMBean
-
getReadyIndicatorNames
-
addISORequestListener
-
removeISORequestListener
-
resetCounters
- Specified by:
resetCountersin interfaceQMUXMBean
-
getCountersAsString
- Specified by:
getCountersAsStringin interfaceQMUXMBean
-
getTXCounter
- Specified by:
getTXCounterin interfaceQMUXMBean
-
getRXCounter
- Specified by:
getRXCounterin interfaceQMUXMBean
-
getTXExpired
- Specified by:
getTXExpiredin interfaceQMUXMBean
-
getTXPending
- Specified by:
getTXPendingin interfaceQMUXMBean
-
getRXExpired
- Specified by:
getRXExpiredin interfaceQMUXMBean
-
getRXPending
- Specified by:
getRXPendingin interfaceQMUXMBean
-
getRXUnhandled
- Specified by:
getRXUnhandledin interfaceQMUXMBean
-
getRXForwarded
- Specified by:
getRXForwardedin interfaceQMUXMBean
-
getLastTxnTimestampInMillis
- Specified by:
getLastTxnTimestampInMillisin interfaceQMUXMBean
-
getIdleTimeInMillis
- Specified by:
getIdleTimeInMillisin interfaceQMUXMBean
-
processUnhandled
-
send
sends (or hands back) an ISOMsg- Specified by:
sendin interfaceISOSource- Parameters:
m- the Message to be sent- Throws:
IOExceptionISOException
-
isConnected
- Specified by:
isConnectedin interfaceISOSource- Returns:
- true if source is connected and usable
-
dump
-