org.jpos.q2.iso
Class QServer

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by 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$ $Date$
Author:
Alwyn Schoeman

Field Summary
protected  LocalSpace sp
           
 
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPING
 
Constructor Summary
QServer()
           
 
Method Summary
 void destroyService()
           
 String getChannel()
           
 String getCountersAsString()
           
 String getCountersAsString(String isoChannelName)
           
 String getISOChannelNames()
           
 int getMaxSessions()
           
 int getMinSessions()
           
 String getPackager()
           
 int getPort()
           
 String getSocketFactory()
           
 void initService()
           
 void notify(Object key, 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(String channel)
           
 void setMaxSessions(int maxSessions)
           
 void setMinSessions(int minSessions)
           
 void setPackager(String packager)
           
 void setPort(int port)
           
 void setSocketFactory(String sFactory)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, createElement, destroy, getAttrs, getAttrs, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, shutdownQ2, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
 
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init, start, stop
 
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
 

Field Detail

sp

protected LocalSpace sp
Constructor Detail

QServer

public QServer()
Method Detail

initService

public void initService()
                 throws ConfigurationException
Overrides:
initService in class QBeanSupport
Throws:
ConfigurationException

startService

public void startService()
Overrides:
startService in class QBeanSupport

stopService

public void stopService()
Overrides:
stopService in class QBeanSupport

destroyService

public void destroyService()
Overrides:
destroyService in class QBeanSupport

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(String packager)
Specified by:
setPackager in interface QServerMBean

getPackager

public String getPackager()
Specified by:
getPackager in interface QServerMBean

setChannel

public void setChannel(String channel)
Specified by:
setChannel in interface QServerMBean

getChannel

public 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(String sFactory)
Specified by:
setSocketFactory in interface QServerMBean

getSocketFactory

public String getSocketFactory()
Specified by:
getSocketFactory in interface QServerMBean

getISOChannelNames

public String getISOChannelNames()
Specified by:
getISOChannelNames in interface QServerMBean

getCountersAsString

public String getCountersAsString()
Specified by:
getCountersAsString in interface QServerMBean

getCountersAsString

public String getCountersAsString(String isoChannelName)
Specified by:
getCountersAsString in interface QServerMBean

notify

public void notify(Object key,
                   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 key
value - Object's value

process

public boolean process(ISOSource source,
                       ISOMsg m)
Specified by:
process in interface ISORequestListener
Parameters:
source - source where you optionally can reply
m - the unmatched request
Returns:
true if request was handled by this listener


Copyright © 1998-2012 jPOS.org. All Rights Reserved.