org.jpos.q2
Class QBeanSupport
java.lang.Object
org.jpos.q2.QBeanSupport
- All Implemented Interfaces:
- Configurable, QBean, QBeanSupportMBean, QPersist
- Direct Known Subclasses:
- BSH, ChannelAdaptor, ConnectionPoolAdaptor, DailyTaskAdaptor, DirPollAdaptor, KeyStoreAdaptor, LoggerAdaptor, MUXPool, OneShotChannelAdaptor, QExec, QMUX, QServer, Shutdown, SMAdaptor, SpaceAdaptor, SpaceLet, SpaceProxyAdaptor, SystemMonitor, TaskAdaptor, TransactionManager, UI
public class QBeanSupport
- extends java.lang.Object
- implements QBean, QPersist, QBeanSupportMBean, Configurable
- Version:
- $Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
- Author:
- Alireza Taherkordi, Alejandro P. Revilla
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stateString
public static final java.lang.String[] stateString
QBeanSupport
public QBeanSupport()
setServer
public void setServer(Q2 server)
- Specified by:
setServer in interface QBeanSupportMBean
getServer
public Q2 getServer()
- Specified by:
getServer in interface QBeanSupportMBean
getFactory
public QFactory getFactory()
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface QBeanSupportMBean
setLogger
public void setLogger(java.lang.String loggerName)
- Specified by:
setLogger in interface QBeanSupportMBean
getLogger
public java.lang.String getLogger()
- Specified by:
getLogger in interface QBeanSupportMBean
getLog
public Log getLog()
getName
public java.lang.String getName()
- Specified by:
getName in interface QBeanSupportMBean
init
public void init()
- Description copied from interface:
QBean
- init the service
- Specified by:
init in interface QBean
start
public void start()
- Description copied from interface:
QBean
- start the service
- Specified by:
start in interface QBean
stop
public void stop()
- Description copied from interface:
QBean
- stop the service
- Specified by:
stop in interface QBean
destroy
public void destroy()
- Description copied from interface:
QBean
- destroy the service
- Specified by:
destroy in interface QBean
shutdownQ2
public void shutdownQ2()
- Specified by:
shutdownQ2 in interface QBeanSupportMBean
getState
public int getState()
- Specified by:
getState in interface QBean
- Returns:
- state (STARTING, STARTED, FAILED, DESTROYED ...)
getLoaderURLS
public java.net.URL[] getLoaderURLS()
- Specified by:
getLoaderURLS in interface QBeanSupportMBean
getLoader
public QClassLoader getLoader()
- Specified by:
getLoader in interface QBeanSupportMBean
getStateAsString
public java.lang.String getStateAsString()
- Specified by:
getStateAsString in interface QBean
- Returns:
- state (STARTING, STARTED, FAILED, DESTROYED ...)
setState
public void setState(int state)
setPersist
public void setPersist(org.jdom.Element persist)
- Specified by:
setPersist in interface QBeanSupportMBean
getPersist
public org.jdom.Element getPersist()
- Specified by:
getPersist in interface QPersist
setModified
public void setModified(boolean modified)
isModified
public boolean isModified()
- Specified by:
isModified in interface QPersist
running
public boolean running()
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg - Configuration object
- Throws:
ConfigurationException
getConfiguration
public Configuration getConfiguration()