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.
-
Field Summary
FieldsFields inherited from class QBeanSupport
cfg, log, scheduledThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCountersAsString(String isoChannelName) intintgetPort()voidvoidCalled by Space implementation whenever an object with the given key is being placed in the Space.booleanvoidsetChannel(String channel) voidsetMaxSessions(int maxSessions) voidsetPackager(String packager) voidsetPort(int port) voidsetSocketFactory(String sFactory) 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
-
-
Constructor Details
-
QServer
public QServer()
-
-
Method Details
-
initService
- Overrides:
initServicein classQBeanSupport- Throws:
ConfigurationException
-
startService
- Overrides:
startServicein classQBeanSupport
-
stopService
- Overrides:
stopServicein classQBeanSupport
-
destroyService
- Overrides:
destroyServicein classQBeanSupport
-
setPort
- Specified by:
setPortin interfaceQServerMBean
-
getPort
- Specified by:
getPortin interfaceQServerMBean
-
setPackager
- Specified by:
setPackagerin interfaceQServerMBean
-
getPackager
- Specified by:
getPackagerin interfaceQServerMBean
-
setChannel
- Specified by:
setChannelin interfaceQServerMBean
-
getChannel
- Specified by:
getChannelin interfaceQServerMBean
-
setMaxSessions
- Specified by:
setMaxSessionsin interfaceQServerMBean
-
getMaxSessions
- Specified by:
getMaxSessionsin interfaceQServerMBean
-
setSocketFactory
- Specified by:
setSocketFactoryin interfaceQServerMBean
-
getSocketFactory
- Specified by:
getSocketFactoryin interfaceQServerMBean
-
getISOChannelNames
- Specified by:
getISOChannelNamesin interfaceQServerMBean
-
getISOServer
-
getCountersAsString
- Specified by:
getCountersAsStringin interfaceQServerMBean
-
getCountersAsString
- Specified by:
getCountersAsStringin interfaceQServerMBean
-
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:
key- Object's keyvalue- Object's value
-
process
- Specified by:
processin interfaceISORequestListener- Parameters:
source- source where you optionally can replym- the unmatched request- Returns:
- true if request was handled by this listener
-