public class ChannelAdaptor extends QBeanSupport implements ChannelAdaptorMBean, Channel, Loggeable, ExceptionHandlerConfigAware
Modifier and Type | Class and Description |
---|---|
class |
ChannelAdaptor.Receiver |
class |
ChannelAdaptor.Sender |
Modifier and Type | Field and Description |
---|---|
protected Space |
sp |
cfg, log, scheduledThreadPoolExecutor
Constructor and Description |
---|
ChannelAdaptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFilters(FilteredChannel channel,
org.jdom2.Element e,
QFactory fact) |
protected void |
append(java.lang.StringBuffer sb,
java.lang.String name,
int value) |
protected void |
checkConnection() |
void |
destroyService() |
protected void |
disconnect() |
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
int |
getConnectsCounter() |
java.lang.String |
getCountersAsString() |
java.lang.String |
getHost() |
long |
getIdleTimeInMillis() |
java.lang.String |
getInQueue() |
long |
getLastTxnTimestampInMillis() |
java.lang.String |
getOutQueue() |
int |
getPort() |
long |
getReconnectDelay() |
int |
getRXCounter() |
java.lang.String |
getSocketFactory() |
int |
getTXCounter() |
protected Space |
grabSpace(org.jdom2.Element e) |
protected ISOChannel |
initChannel() |
void |
initService() |
protected void |
initSpaceAndQueues() |
boolean |
isConnected() |
ISOChannel |
newChannel(org.jdom2.Element e,
QFactory f) |
ISOMsg |
receive()
Receive message
|
ISOMsg |
receive(long timeout)
Receive message
|
void |
resetCounters() |
void |
send(ISOMsg m)
Queue a message to be transmitted by this adaptor
|
void |
send(ISOMsg m,
long timeout)
Queue a message to be transmitted by this adaptor
|
void |
setHost(java.lang.String host) |
void |
setInQueue(java.lang.String in) |
void |
setOutQueue(java.lang.String out) |
void |
setPort(int port) |
void |
setReconnectDelay(long delay) |
void |
setSocketFactory(java.lang.String sFac) |
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
addExceptionHandlers
protected Space sp
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 void setReconnectDelay(long delay)
setReconnectDelay
in interface ChannelAdaptorMBean
public long getReconnectDelay()
getReconnectDelay
in interface ChannelAdaptorMBean
public void setInQueue(java.lang.String in)
setInQueue
in interface ChannelAdaptorMBean
public java.lang.String getInQueue()
getInQueue
in interface ChannelAdaptorMBean
public void setOutQueue(java.lang.String out)
setOutQueue
in interface ChannelAdaptorMBean
public void send(ISOMsg m)
public void send(ISOMsg m, long timeout)
m
- message to sendtimeout
- timeout in millispublic ISOMsg receive()
public ISOMsg receive(long timeout)
public boolean isConnected()
isConnected
in interface ChannelAdaptorMBean
public java.lang.String getOutQueue()
getOutQueue
in interface ChannelAdaptorMBean
public ISOChannel newChannel(org.jdom2.Element e, QFactory f) throws ConfigurationException
ConfigurationException
protected void addFilters(FilteredChannel channel, org.jdom2.Element e, QFactory fact) throws ConfigurationException
ConfigurationException
protected ISOChannel initChannel() throws ConfigurationException
ConfigurationException
protected void initSpaceAndQueues() throws ConfigurationException
ConfigurationException
protected void checkConnection()
protected void disconnect()
public void setHost(java.lang.String host)
setHost
in interface ChannelAdaptorMBean
public java.lang.String getHost()
getHost
in interface ChannelAdaptorMBean
public void setPort(int port)
setPort
in interface ChannelAdaptorMBean
public int getPort()
getPort
in interface ChannelAdaptorMBean
public void setSocketFactory(java.lang.String sFac)
setSocketFactory
in interface ChannelAdaptorMBean
public void resetCounters()
resetCounters
in interface ChannelAdaptorMBean
public java.lang.String getCountersAsString()
getCountersAsString
in interface ChannelAdaptorMBean
public int getTXCounter()
getTXCounter
in interface ChannelAdaptorMBean
public int getRXCounter()
getRXCounter
in interface ChannelAdaptorMBean
public int getConnectsCounter()
getConnectsCounter
in interface ChannelAdaptorMBean
public long getLastTxnTimestampInMillis()
getLastTxnTimestampInMillis
in interface ChannelAdaptorMBean
public long getIdleTimeInMillis()
getIdleTimeInMillis
in interface ChannelAdaptorMBean
public java.lang.String getSocketFactory()
getSocketFactory
in interface ChannelAdaptorMBean
public void dump(java.io.PrintStream p, java.lang.String indent)
protected Space grabSpace(org.jdom2.Element e)
protected void append(java.lang.StringBuffer sb, java.lang.String name, int value)