jPOS 1.6.1 API Documentation

org.jpos.q2
Class QBeanSupport

java.lang.Object
  extended by 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

Field Summary
static java.lang.String[] stateString
           
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
QBeanSupport()
           
 
Method Summary
 void destroy()
          destroy the service
 Configuration getConfiguration()
           
 QFactory getFactory()
           
 QClassLoader getLoader()
           
 java.net.URL[] getLoaderURLS()
           
 Log getLog()
           
 java.lang.String getLogger()
           
 java.lang.String getName()
           
 org.jdom.Element getPersist()
           
 Q2 getServer()
           
 int getState()
           
 java.lang.String getStateAsString()
           
 void init()
          init the service
 boolean isModified()
           
 boolean running()
           
 void setConfiguration(Configuration cfg)
           
 void setLogger(java.lang.String loggerName)
           
 void setModified(boolean modified)
           
 void setName(java.lang.String name)
           
 void setPersist(org.jdom.Element persist)
           
 void setServer(Q2 server)
           
 void setState(int state)
           
 void shutdownQ2()
           
 void start()
          start the service
 void stop()
          stop the service
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateString

public static final java.lang.String[] stateString
Constructor Detail

QBeanSupport

public QBeanSupport()
Method Detail

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()

jPOS.org