public class QMUX extends QBeanSupport implements SpaceListener, MUX, QMUXMBean, Loggeable, MetricsProvider
| Modifier and Type | Class and Description |
|---|---|
class |
QMUX.AsyncRequest |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ignorerc |
protected java.lang.String |
in |
protected java.lang.String[] |
key |
protected java.lang.String[] |
mtiMapping |
protected java.lang.String |
out |
protected java.lang.String[] |
ready |
protected LocalSpace |
sp |
protected java.lang.String |
unhandled |
cfg, log, scheduledThreadPoolExecutor| Constructor and Description |
|---|
QMUX() |
| Modifier and Type | Method and Description |
|---|---|
void |
addISORequestListener(ISORequestListener l) |
void |
destroyService() |
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
java.lang.String |
getCountersAsString() |
long |
getIdleTimeInMillis() |
java.lang.String |
getInQueue() |
java.lang.String |
getKey(ISOMsg m) |
long |
getLastTxnTimestampInMillis() |
Metrics |
getMetrics() |
static MUX |
getMUX(java.lang.String name) |
java.lang.String |
getOutQueue() |
java.lang.String[] |
getReadyIndicatorNames() |
int |
getRXCounter() |
int |
getRXExpired() |
int |
getRXForwarded() |
int |
getRXPending() |
int |
getRXUnhandled() |
Space |
getSpace() |
int |
getTXCounter() |
int |
getTXExpired() |
int |
getTXPending() |
java.lang.String |
getUnhandledQueue() |
void |
initService() |
boolean |
isConnected() |
protected boolean |
isNotifyEligible(ISOMsg msg) |
void |
notify(java.lang.Object k,
java.lang.Object value)
Called by Space implementation whenever an object
with the given key is being placed in the Space.
|
protected void |
processUnhandled(ISOMsg m) |
boolean |
removeISORequestListener(ISORequestListener l) |
ISOMsg |
request(ISOMsg m,
long timeout)
Sends a message to remote host and wait for response
|
void |
request(ISOMsg m,
long timeout,
ISOResponseListener rl,
java.lang.Object handBack)
Sends a message to remote host in async way
|
void |
resetCounters() |
void |
send(ISOMsg m)
sends (or hands back) an ISOMsg
|
void |
setInQueue(java.lang.String in) |
void |
setOutQueue(java.lang.String out) |
void |
setUnhandledQueue(java.lang.String unhandled) |
void |
startService() |
void |
stopService() |
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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerdestroy, getState, getStateAsString, init, start, stopgetPersist, isModifiedprotected LocalSpace sp
protected java.lang.String in
protected java.lang.String out
protected java.lang.String unhandled
protected java.lang.String[] ready
protected java.lang.String[] key
protected java.lang.String ignorerc
protected java.lang.String[] mtiMapping
public void initService()
throws ConfigurationException
initService in class QBeanSupportConfigurationExceptionpublic void startService()
startService in class QBeanSupportpublic void stopService()
stopService in class QBeanSupportpublic void destroyService()
destroyService in class QBeanSupportpublic static MUX getMUX(java.lang.String name) throws NameRegistrar.NotFoundException
NameRegistrar.NotFoundExceptionNameRegistrarpublic ISOMsg request(ISOMsg m, long timeout) throws ISOException
MUXrequest in interface MUXm - message to sendtimeout - amount of time in millis to wait for a responseISOExceptionpublic void request(ISOMsg m, long timeout, ISOResponseListener rl, java.lang.Object handBack) throws ISOException
MUXrequest in interface MUXm - message to sendtimeout - time to wait for the responserl - reference to response listenerhandBack - optional handback to be given to reponse listenerISOExceptionprotected boolean isNotifyEligible(ISOMsg msg)
public void notify(java.lang.Object k,
java.lang.Object value)
SpaceListenerCalled by Space implementation whenever an object with the given key is being placed in the Space.
notify in interface SpaceListenerk - Object's keyvalue - Object's valuepublic java.lang.String getKey(ISOMsg m) throws ISOException
ISOExceptionpublic Metrics getMetrics()
getMetrics in interface MetricsProviderpublic void setInQueue(java.lang.String in)
setInQueue in interface QMUXMBeanpublic java.lang.String getInQueue()
getInQueue in interface QMUXMBeanpublic void setOutQueue(java.lang.String out)
setOutQueue in interface QMUXMBeanpublic java.lang.String getOutQueue()
getOutQueue in interface QMUXMBeanpublic Space getSpace()
public void setUnhandledQueue(java.lang.String unhandled)
setUnhandledQueue in interface QMUXMBeanpublic java.lang.String getUnhandledQueue()
getUnhandledQueue in interface QMUXMBeanpublic java.lang.String[] getReadyIndicatorNames()
public void addISORequestListener(ISORequestListener l)
public boolean removeISORequestListener(ISORequestListener l)
public void resetCounters()
resetCounters in interface QMUXMBeanpublic java.lang.String getCountersAsString()
getCountersAsString in interface QMUXMBeanpublic int getTXCounter()
getTXCounter in interface QMUXMBeanpublic int getRXCounter()
getRXCounter in interface QMUXMBeanpublic int getTXExpired()
getTXExpired in interface QMUXMBeanpublic int getTXPending()
getTXPending in interface QMUXMBeanpublic int getRXExpired()
getRXExpired in interface QMUXMBeanpublic int getRXPending()
getRXPending in interface QMUXMBeanpublic int getRXUnhandled()
getRXUnhandled in interface QMUXMBeanpublic int getRXForwarded()
getRXForwarded in interface QMUXMBeanpublic long getLastTxnTimestampInMillis()
getLastTxnTimestampInMillis in interface QMUXMBeanpublic long getIdleTimeInMillis()
getIdleTimeInMillis in interface QMUXMBeanprotected void processUnhandled(ISOMsg m)
public void send(ISOMsg m) throws java.io.IOException, ISOException
send in interface ISOSourcem - the Message to be sentjava.io.IOExceptionISOExceptionorg.jpos.iso.ISOFilter.VetoException;public boolean isConnected()
isConnected in interface ISOSource