org.jpos.q2.iso
Class QServer
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.iso.QServer
- All Implemented Interfaces:
- Configurable, ISORequestListener, QServerMBean, QBean, QBeanSupportMBean, QPersist, SpaceListener
public class QServer
- extends QBeanSupport
- implements QServerMBean, SpaceListener, ISORequestListener
ISO Server wrapper.
- Version:
- $Revision: 2895 $ $Date: 2010-04-21 10:52:33 -0700 (Wed, 21 Apr 2010) $
- Author:
- Alwyn Schoeman
| Methods inherited from class org.jpos.q2.QBeanSupport |
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getRealm, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setRealm, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jpos.q2.QBeanSupportMBean |
getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer, shutdownQ2 |
QServer
public QServer()
initService
public void initService()
throws ConfigurationException
- Throws:
ConfigurationException
startService
public void startService()
stopService
public void stopService()
setPort
public void setPort(int port)
- Specified by:
setPort in interface QServerMBean
getPort
public int getPort()
- Specified by:
getPort in interface QServerMBean
setPackager
public void setPackager(java.lang.String packager)
- Specified by:
setPackager in interface QServerMBean
getPackager
public java.lang.String getPackager()
- Specified by:
getPackager in interface QServerMBean
setChannel
public void setChannel(java.lang.String channel)
- Specified by:
setChannel in interface QServerMBean
getChannel
public java.lang.String getChannel()
- Specified by:
getChannel in interface QServerMBean
setMaxSessions
public void setMaxSessions(int maxSessions)
- Specified by:
setMaxSessions in interface QServerMBean
getMaxSessions
public int getMaxSessions()
- Specified by:
getMaxSessions in interface QServerMBean
setMinSessions
public void setMinSessions(int minSessions)
- Specified by:
setMinSessions in interface QServerMBean
getMinSessions
public int getMinSessions()
- Specified by:
getMinSessions in interface QServerMBean
setSocketFactory
public void setSocketFactory(java.lang.String sFactory)
- Specified by:
setSocketFactory in interface QServerMBean
getSocketFactory
public java.lang.String getSocketFactory()
- Specified by:
getSocketFactory in interface QServerMBean
getISOChannelNames
public java.lang.String getISOChannelNames()
- Specified by:
getISOChannelNames in interface QServerMBean
getCountersAsString
public java.lang.String getCountersAsString()
- Specified by:
getCountersAsString in interface QServerMBean
getCountersAsString
public java.lang.String getCountersAsString(java.lang.String isoChannelName)
- Specified by:
getCountersAsString in interface QServerMBean
notify
public void notify(java.lang.Object key,
java.lang.Object value)
- Description copied from interface:
SpaceListener
Called by Space implementation whenever an object
with the given key is being placed in the Space.
- Specified by:
notify in interface SpaceListener
- Parameters:
key - Object's keyvalue - Object's value
process
public boolean process(ISOSource source,
ISOMsg m)
- Specified by:
process in interface ISORequestListener
- Parameters:
source - source where you optionally can replym - the unmatched request
- Returns:
- true if request was handled by this listener