Package org.jpos.q2.qbean
Class QConfig
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.qbean.QConfig
-
- All Implemented Interfaces:
Configurable
,QBean
,QBeanSupportMBean
,QPersist
public class QConfig extends QBeanSupport
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PREFIX
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description QConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
destroyService()
static Configuration
getConfiguration(java.lang.String name)
static Configuration
getConfiguration(java.lang.String name, long timeout)
protected void
initService()
-
Methods inherited from class org.jpos.q2.QBeanSupport
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, startService, stop, stopService
-
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QConfig
public QConfig()
-
-
Method Detail
-
initService
protected void initService()
- Overrides:
initService
in classQBeanSupport
-
destroyService
protected void destroyService()
- Overrides:
destroyService
in classQBeanSupport
-
getConfiguration
public static Configuration getConfiguration(java.lang.String name) throws NameRegistrar.NotFoundException
- Throws:
NameRegistrar.NotFoundException
-
getConfiguration
public static Configuration getConfiguration(java.lang.String name, long timeout)
- Parameters:
name
- configuration nametimeout
- in millis- Returns:
- Configuration object or null
-
-