public class ForkExecWorkerApplication extends AbstractWorkerApplication
It glues the subprocess to a shiva thread plus everything needed to monitor this app.
application, applicationFolder, clusterName, confDirFolder, ephemeral, executionTime, hasStarted, lastExecutionStart, numExecution, platformReporter, workerId| Constructor and Description |
|---|
ForkExecWorkerApplication(String workerId,
String clusterName,
Path dataFolder,
Path applicationFolder,
org.thales.punch.libraries.shiva.api.Application application) |
| Modifier and Type | Method and Description |
|---|---|
int |
exitValue() |
boolean |
isAlive() |
boolean |
start()
Start a worker task, i.e.
|
void |
stop()
Stop a worker task, i.e.
|
getApplication, getClusterName, getFolder, getName, getWorkerId, isEphemeral, isEverRunningTask, isStarted, launchChildApplication, started, taskShouldRunNow, toStringpublic ForkExecWorkerApplication(String workerId, String clusterName, Path dataFolder, Path applicationFolder, org.thales.punch.libraries.shiva.api.Application application)
workerId - this shiva daemon worker idclusterName - this cluster namedataFolder - the local data dir path where configurations are storedapplicationFolder - the local data folder pathapplication - the target taskpublic boolean start()
AbstractWorkerApplicationstart in class AbstractWorkerApplicationpublic boolean isAlive()
isAlive in class AbstractWorkerApplicationpublic void stop()
AbstractWorkerApplicationstop in class AbstractWorkerApplicationpublic int exitValue()
exitValue in class AbstractWorkerApplicationCopyright © 2022. All rights reserved.