org.jpos.q2.qbean
Class QExec
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.qbean.QExec
- All Implemented Interfaces:
- Configurable, QBean, QExecMBean, QBeanSupportMBean, QPersist
public class QExec
- extends QBeanSupport
- implements QExecMBean
QBean for starting and stopping scripts or programs.
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>
- Version:
- $Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
- Author:
- Alwyn Schoeman
|
Constructor Summary |
QExec()
|
| Methods inherited from class org.jpos.q2.QBeanSupport |
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QExec
public QExec()
initService
public void initService()
throws java.lang.Exception
- Throws:
java.lang.Exception
startService
public void startService()
throws java.lang.Exception
- Throws:
java.lang.Exception
stopService
public void stopService()
throws java.lang.Exception
- Throws:
java.lang.Exception
setStartScript
public void setStartScript(java.lang.String scriptPath)
- Specified by:
setStartScript in interface QExecMBean
getStartScript
public java.lang.String getStartScript()
- Specified by:
getStartScript in interface QExecMBean
setShutdownScript
public void setShutdownScript(java.lang.String scriptPath)
- Specified by:
setShutdownScript in interface QExecMBean
getShutdownScript
public java.lang.String getShutdownScript()
- Specified by:
getShutdownScript in interface QExecMBean