public abstract class NativeProcessMonitoringDaemonModule extends NativeProcessIterativeDaemonModule implements org.apache.commons.exec.ExecuteResultHandler
Modifier and Type | Class and Description |
---|---|
class |
NativeProcessMonitoringDaemonModule.MyExecuteStreamHandler |
Modifier and Type | Field and Description |
---|---|
(package private) NativeProcessMonitoringDaemonModule.MyExecuteStreamHandler |
esh |
(package private) org.apache.commons.exec.DefaultExecutor |
executor |
description, origDesc
isDaemon, runner
config, moduleName, version
Constructor and Description |
---|
NativeProcessMonitoringDaemonModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
observe() |
void |
onProcessComplete(int exitValue) |
void |
onProcessFailed(org.apache.commons.exec.ExecuteException e) |
protected void |
processLine(java.lang.String line) |
void |
run() |
void |
setModuleName()
By implementing this abstract method the name of the module is specified.
|
void |
start() |
protected void |
startNativeMonitor(java.lang.String command,
java.lang.String options,
java.nio.file.Path path) |
void |
stop() |
void |
superCreate() |
void |
superStart() |
canRunNativeCommand, extractNative, getConfig, getCurrentOsCommand, getModuleDescription, processOut
create, isRunning, setSelected, setVersion, submitEvent
getHash, isSelected, setConfig, supportsThisOS, toString
public void start()
start
in class AbstractDaemonModule
public void superStart()
public void superCreate()
public void stop()
stop
in class AbstractDaemonModule
public void run()
run
in interface java.lang.Runnable
run
in class NativeProcessIterativeDaemonModule
protected void processLine(java.lang.String line)
protected void observe() throws java.lang.InterruptedException
observe
in class NativeProcessIterativeDaemonModule
java.lang.InterruptedException
protected void startNativeMonitor(java.lang.String command, java.lang.String options, java.nio.file.Path path) throws GeneralNativeCommandModule.NativeExecutionException
public void setModuleName()
AbstractModule
setModuleName
in class NativeProcessIterativeDaemonModule
public void onProcessComplete(int exitValue)
onProcessComplete
in interface org.apache.commons.exec.ExecuteResultHandler
public void onProcessFailed(org.apache.commons.exec.ExecuteException e)
onProcessFailed
in interface org.apache.commons.exec.ExecuteResultHandler