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, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
destroy, getState, getStateAsString, init, start, stop
getPersist, isModified
protected 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 QBeanSupport
ConfigurationException
public void startService()
startService
in class QBeanSupport
public void stopService()
stopService
in class QBeanSupport
public void destroyService()
destroyService
in class QBeanSupport
public static MUX getMUX(java.lang.String name) throws NameRegistrar.NotFoundException
NameRegistrar.NotFoundException
NameRegistrar
public ISOMsg request(ISOMsg m, long timeout) throws ISOException
MUX
request
in interface MUX
m
- message to sendtimeout
- amount of time in millis to wait for a responseISOException
public void request(ISOMsg m, long timeout, ISOResponseListener rl, java.lang.Object handBack) throws ISOException
MUX
request
in interface MUX
m
- message to sendtimeout
- time to wait for the responserl
- reference to response listenerhandBack
- optional handback to be given to reponse listenerISOException
protected boolean isNotifyEligible(ISOMsg msg)
public void notify(java.lang.Object k, java.lang.Object value)
SpaceListener
Called by Space implementation whenever an object with the given key is being placed in the Space.
notify
in interface SpaceListener
k
- Object's keyvalue
- Object's valuepublic java.lang.String getKey(ISOMsg m) throws ISOException
ISOException
public Metrics getMetrics()
getMetrics
in interface MetricsProvider
public void setInQueue(java.lang.String in)
setInQueue
in interface QMUXMBean
public java.lang.String getInQueue()
getInQueue
in interface QMUXMBean
public void setOutQueue(java.lang.String out)
setOutQueue
in interface QMUXMBean
public java.lang.String getOutQueue()
getOutQueue
in interface QMUXMBean
public Space getSpace()
public void setUnhandledQueue(java.lang.String unhandled)
setUnhandledQueue
in interface QMUXMBean
public java.lang.String getUnhandledQueue()
getUnhandledQueue
in interface QMUXMBean
public java.lang.String[] getReadyIndicatorNames()
public void addISORequestListener(ISORequestListener l)
public boolean removeISORequestListener(ISORequestListener l)
public void resetCounters()
resetCounters
in interface QMUXMBean
public java.lang.String getCountersAsString()
getCountersAsString
in interface QMUXMBean
public int getTXCounter()
getTXCounter
in interface QMUXMBean
public int getRXCounter()
getRXCounter
in interface QMUXMBean
public int getTXExpired()
getTXExpired
in interface QMUXMBean
public int getTXPending()
getTXPending
in interface QMUXMBean
public int getRXExpired()
getRXExpired
in interface QMUXMBean
public int getRXPending()
getRXPending
in interface QMUXMBean
public int getRXUnhandled()
getRXUnhandled
in interface QMUXMBean
public int getRXForwarded()
getRXForwarded
in interface QMUXMBean
public long getLastTxnTimestampInMillis()
getLastTxnTimestampInMillis
in interface QMUXMBean
public long getIdleTimeInMillis()
getIdleTimeInMillis
in interface QMUXMBean
protected void processUnhandled(ISOMsg m)
public void send(ISOMsg m) throws java.io.IOException, ISOException
send
in interface ISOSource
m
- the Message to be sentjava.io.IOException
ISOException
org.jpos.iso.ISOFilter.VetoException;
public boolean isConnected()
isConnected
in interface ISOSource