public final class ScriptServiceAppImpl extends ServiceAppImpl implements ServiceThread.Target
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_ATTRIBUTE
Config attribute.
|
static int |
DEFAULT_INTERRUPT_DELAY
Default interrupt delay (millis).
|
static String |
ENGINE_NAME_PROPERTY
Engine name property.
|
static String |
ENGINE_VERSION_PROPERTY
Engine version property.
|
static String |
RUN_FILE_PROPERTY
Run file property.
|
static String |
RUN_TEXT_PROPERTY
Run text property.
|
static String |
SERVICE_PROPERTIES
Script service.
|
static String |
START_FILE_PROPERTY
Start file property.
|
static String |
START_TEXT_PROPERTY
Start text property.
|
static String |
STOP_TEXT_PROPERTY
Stop text property.
|
SERVICE_APP_PROPERTIES
Constructor and Description |
---|
ScriptServiceAppImpl() |
Modifier and Type | Method and Description |
---|---|
void |
run()
Runs.
|
boolean |
setUp(Service service)
Sets up the application.
|
void |
start()
Starts the application.
|
void |
stop()
Stops the application.
|
void |
tearDown()
Tears down the application.
|
createStats, fail, getConfig, getConfigProperties, getDataDir, getJoinTimeout, getProperties, getService, getSourceUUID, getThisLogger, getTimer, onAlert, onEvent, onServiceNotAvailableException, onServicesNotReady, onServicesReady, onSignal
public static final String CONFIG_ATTRIBUTE
public static final int DEFAULT_INTERRUPT_DELAY
public static final String ENGINE_NAME_PROPERTY
public static final String ENGINE_VERSION_PROPERTY
public static final String RUN_FILE_PROPERTY
public static final String RUN_TEXT_PROPERTY
public static final String SERVICE_PROPERTIES
public static final String START_FILE_PROPERTY
public static final String START_TEXT_PROPERTY
public static final String STOP_TEXT_PROPERTY
public void run()
Similar to same in Runnable but may throw exceptions.
run
in interface ServiceThread.Target
public boolean setUp(Service service)
Overidden as needed.
Called by the framework and by overriding classes at the beginning of the override.
setUp
in interface ServiceApp
setUp
in class ServiceAppImpl
service
- The service holding this application.public void start()
Overidden as needed by the application.
Called by the framework.
Should return only when the application is started.
start
in interface ServiceApp
start
in class ServiceAppImpl
public void stop()
Overidden as needed by the application.
Called by the framework.
stop
in interface ServiceApp
stop
in class ServiceAppImpl
public void tearDown()
Overidden as needed by the application.
Called by the framework and by overriding classes at the end of the override.
tearDown
in interface ServiceApp
tearDown
in class ServiceAppImpl
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.