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, origDescisDaemon, runnerconfig, 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, processOutcreate, isRunning, setSelected, setVersion, submitEventgetHash, isSelected, setConfig, supportsThisOS, toStringpublic void start()
start in class AbstractDaemonModulepublic void superStart()
public void superCreate()
public void stop()
stop in class AbstractDaemonModulepublic void run()
run in interface java.lang.Runnablerun in class NativeProcessIterativeDaemonModuleprotected void processLine(java.lang.String line)
protected void observe()
throws java.lang.InterruptedException
observe in class NativeProcessIterativeDaemonModulejava.lang.InterruptedExceptionprotected void startNativeMonitor(java.lang.String command,
java.lang.String options,
java.nio.file.Path path)
throws GeneralNativeCommandModule.NativeExecutionException
public void setModuleName()
AbstractModulesetModuleName in class NativeProcessIterativeDaemonModulepublic void onProcessComplete(int exitValue)
onProcessComplete in interface org.apache.commons.exec.ExecuteResultHandlerpublic void onProcessFailed(org.apache.commons.exec.ExecuteException e)
onProcessFailed in interface org.apache.commons.exec.ExecuteResultHandler