Package org.jpos.q2
Class QBeanAsyncSupport
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.QBeanAsyncSupport
-
- All Implemented Interfaces:
Configurable
,QBean
,QBeanSupportMBean
,QPersist
public abstract class QBeanAsyncSupport extends QBeanSupport
-
-
Field Summary
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description QBeanAsyncSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doStart()
protected abstract void
doStop()
void
setConfiguration(Configuration cfg)
protected void
startService()
protected void
stopService()
-
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, close, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, initService, isModified, running, setAttr, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
-
-
-
-
Constructor Detail
-
QBeanAsyncSupport
public QBeanAsyncSupport()
-
-
Method Detail
-
startService
protected final void startService() throws java.lang.Exception
- Overrides:
startService
in classQBeanSupport
- Throws:
java.lang.Exception
-
doStart
protected abstract void doStart() throws java.lang.Exception
- Throws:
java.lang.Exception
-
stopService
protected final void stopService() throws java.lang.Exception
- Overrides:
stopService
in classQBeanSupport
- Throws:
java.lang.Exception
-
doStop
protected abstract void doStop() throws java.lang.Exception
- Throws:
java.lang.Exception
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Overrides:
setConfiguration
in classQBeanSupport
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
-