@UESComponent public class MonitorContext extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CANCELED
Name of canceled parameter.
|
static java.lang.String |
DONE_MSG
Name of done message parameter.
|
static java.lang.String |
EXIT_STATE
Name of exit state parameter.
|
static java.lang.String |
INITIALIZED
Name of initialized flag.
|
static java.lang.String |
MONITOR_DISABLED
Name of parameter used for disabling of process monitoring.
|
private UESProcessManager |
prMng
Instance of process manager.
|
static java.lang.String |
TUNITS
Name of total units parameter.
|
static java.lang.String |
UNITS
Name of units parameter.
|
Constructor and Description |
---|
MonitorContext() |
Modifier and Type | Method and Description |
---|---|
Message |
getDoneMessage()
Gets done message of process.
|
UESExitState |
getExitState()
Gets exit state of process.
|
java.lang.Integer |
getTotalUnits()
Gets total units (amount of work) to be done.
|
java.lang.Integer |
getUnits()
Gets units (amount of work) done so far.
|
boolean |
isCanceled()
Checks if process is canceled.
|
boolean |
isDisabled()
Checks if process monitoring is disabled.
|
boolean |
isInitialized()
Checks if process monitor is initialized and ready for monitoring.
|
void |
removeContext()
Removes all context parameters from process environment.
|
void |
setCanceled()
Sets process as canceled.
|
void |
setDisabled()
Disable process monitoring.
|
void |
setDoneMessage(Message aValue)
Sets done message of process.
|
void |
setExitState(UESExitState aValue)
Sets exit state of process.
|
void |
setInitialized()
Marks process monitor as initialized and ready for monitoring.
|
void |
setTotalUnits(java.lang.Integer aValue)
Sets total units (amount of work) to be done.
|
void |
setUnits(java.lang.Integer aValue)
Sets units (amount of work) done so far.
|
aValue
- Total unitsaValue
- Units done so faraValue
- Exit stateaValue
- Message