public class QExec extends QBeanSupport implements QExecMBean
Example xml: <exec class="org.jpos.q2.qbean.QExec"> <attr name="start">YOUR PATH TO PROGRAM</attr> <attr name="shutdown">YOUR PATH TO PROGRAM</attr> </exec>
cfg, log, scheduledThreadPoolExecutor
Constructor and Description |
---|
QExec() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getShutdownScript() |
java.lang.String |
getStartScript() |
void |
setShutdownScript(java.lang.String scriptPath) |
void |
setStartScript(java.lang.String scriptPath) |
protected void |
startService() |
protected void |
stopService() |
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, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
destroy, getState, getStateAsString, init, start, stop
getPersist, isModified
protected void startService() throws java.lang.Exception
startService
in class QBeanSupport
java.lang.Exception
protected void stopService() throws java.lang.Exception
stopService
in class QBeanSupport
java.lang.Exception
public void setStartScript(java.lang.String scriptPath)
setStartScript
in interface QExecMBean
public java.lang.String getStartScript()
getStartScript
in interface QExecMBean
public void setShutdownScript(java.lang.String scriptPath)
setShutdownScript
in interface QExecMBean
public java.lang.String getShutdownScript()
getShutdownScript
in interface QExecMBean