private abstract static class ServerStatus.Task extends Object implements TaskStateListener
Modifier and Type | Field and Description |
---|---|
(package private) String |
exceptionMeasage
Exception message filled by last state change.
|
(package private) TaskEvent |
failureEvent
Task failure event filled by last state change.
|
(package private) GlassFishServer |
server
GlassFish server to be tested.
|
(package private) String |
serverName
Server name filled by last state change.
|
(package private) long |
tmStart
Task start time.
|
Constructor and Description |
---|
ServerStatus.Task(GlassFishServer server)
Creates an instance of common individual server status check.
|
Modifier and Type | Method and Description |
---|---|
void |
operationStateChanged(TaskState newState,
TaskEvent event,
String[] args)
Store event that caused task failure.
|
(package private) long |
timeout(boolean startup)
Compute task result waiting timeout based on task start time, actual
time and minimal timeout limit.
|
(package private) static String |
tm(long tm)
Format time value in miliseconds to be printed as value in seconds
and miliseconds
s.ms |
final GlassFishServer server
long tmStart
-1
means that start time was not set.TaskEvent failureEvent
String serverName
String exceptionMeasage
ServerStatus.Task(GlassFishServer server)
server
- GlassFish server to be checked.static String tm(long tm)
s.ms.
tm
- Time value in milisecondss.ms.
long timeout(boolean startup)
startup
- Startup mode to select longer timeout.public void operationStateChanged(TaskState newState, TaskEvent event, String[] args)
operationStateChanged
in interface TaskStateListener
newState
- Current task state.event
- Event that caused task change.args
- Unused interface parameter.Copyright © 2013. All Rights Reserved.