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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerdestroy, getState, getStateAsString, init, start, stopgetPersist, isModifiedprotected void startService()
throws java.lang.Exception
startService in class QBeanSupportjava.lang.Exceptionprotected void stopService()
throws java.lang.Exception
stopService in class QBeanSupportjava.lang.Exceptionpublic void setStartScript(java.lang.String scriptPath)
setStartScript in interface QExecMBeanpublic java.lang.String getStartScript()
getStartScript in interface QExecMBeanpublic void setShutdownScript(java.lang.String scriptPath)
setShutdownScript in interface QExecMBeanpublic java.lang.String getShutdownScript()
getShutdownScript in interface QExecMBean