public class QServer extends QBeanSupport implements QServerMBean, SpaceListener, ISORequestListener
Modifier and Type | Field and Description |
---|---|
protected LocalSpace |
sp |
cfg, log, scheduledThreadPoolExecutor
Constructor and Description |
---|
QServer() |
Modifier and Type | Method and Description |
---|---|
void |
destroyService() |
java.lang.String |
getChannel() |
java.lang.String |
getCountersAsString() |
java.lang.String |
getCountersAsString(java.lang.String isoChannelName) |
java.lang.String |
getISOChannelNames() |
ISOServer |
getISOServer() |
int |
getMaxSessions() |
int |
getMinSessions() |
java.lang.String |
getPackager() |
int |
getPort() |
java.lang.String |
getSocketFactory() |
void |
initService() |
void |
notify(java.lang.Object key,
java.lang.Object value)
Called by Space implementation whenever an object
with the given key is being placed in the Space.
|
boolean |
process(ISOSource source,
ISOMsg m) |
void |
setChannel(java.lang.String channel) |
void |
setMaxSessions(int maxSessions) |
void |
setMinSessions(int minSessions) |
void |
setPackager(java.lang.String packager) |
void |
setPort(int port) |
void |
setSocketFactory(java.lang.String sFactory) |
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
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 setPort(int port)
setPort
in interface QServerMBean
public int getPort()
getPort
in interface QServerMBean
public void setPackager(java.lang.String packager)
setPackager
in interface QServerMBean
public java.lang.String getPackager()
getPackager
in interface QServerMBean
public void setChannel(java.lang.String channel)
setChannel
in interface QServerMBean
public java.lang.String getChannel()
getChannel
in interface QServerMBean
public void setMaxSessions(int maxSessions)
setMaxSessions
in interface QServerMBean
public int getMaxSessions()
getMaxSessions
in interface QServerMBean
public void setMinSessions(int minSessions)
setMinSessions
in interface QServerMBean
public int getMinSessions()
getMinSessions
in interface QServerMBean
public void setSocketFactory(java.lang.String sFactory)
setSocketFactory
in interface QServerMBean
public java.lang.String getSocketFactory()
getSocketFactory
in interface QServerMBean
public java.lang.String getISOChannelNames()
getISOChannelNames
in interface QServerMBean
public ISOServer getISOServer()
public java.lang.String getCountersAsString()
getCountersAsString
in interface QServerMBean
public java.lang.String getCountersAsString(java.lang.String isoChannelName)
getCountersAsString
in interface QServerMBean
public void notify(java.lang.Object key, 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
key
- Object's keyvalue
- Object's valuepublic boolean process(ISOSource source, ISOMsg m)
process
in interface ISORequestListener
source
- source where you optionally can replym
- the unmatched request