static class StatusJob.Task extends Object implements GlassFishStatusTask
Modifier and Type | Field and Description |
---|---|
private ScheduledFuture |
future
Task execution handler.
|
private StatusJob.Listener |
listener
Server status task execution listener for asynchronous
command execution.
|
private TaskStateListener[] |
listeners
All task listeners.
|
(package private) StatusResult |
result
Last command task execution result.
|
(package private) Runnable |
task
Task thread currently being executed.
|
private GlassFishStatusCheck |
type
Server status check type.
|
Modifier | Constructor and Description |
---|---|
private |
StatusJob.Task(GlassFishStatusCheck type,
StatusJob.Listener listener)
Constructs an instance of individual job task.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearTaskFuture()
Clear task execution handler and thread currently being executed.
|
(package private) GlassFishStatusCheckResult |
evalResult()
Evaluate task execution result.
|
TaskEvent |
getEvent()
Get last command task execution status.
|
(package private) ScheduledFuture |
getFuture()
Get task execution handler.
|
(package private) StatusJob.Listener |
getListener()
Get server status task execution listener for asynchronous
command execution.
|
(package private) TaskStateListener[] |
getListeners()
Get all task listeners.
|
(package private) StatusResult |
getResult()
Get last command task execution result.
|
GlassFishStatusCheckResult |
getStatus()
Get last command task execution status.
|
(package private) Runnable |
getTask()
Get task thread currently being executed.
|
GlassFishStatusCheck |
getType()
Get server status check type.
|
(package private) void |
setFuture(ScheduledFuture future)
Set task execution handler.
|
(package private) void |
setListener(StatusJob.Listener listener)
Set server status task execution listener for asynchronous
command execution.
|
(package private) void |
setResult(StatusResult result)
Set last command task execution result.
|
(package private) void |
setTask(Runnable task)
Set task thread currently being executed.
|
(package private) void |
setTaskFuture(Runnable task,
ScheduledFuture future)
Set task execution handler and thread currently being executed.
|
private StatusJob.Listener listener
StatusResult result
Runnable task
private ScheduledFuture future
private TaskStateListener[] listeners
private final GlassFishStatusCheck type
private StatusJob.Task(GlassFishStatusCheck type, StatusJob.Listener listener)
type
- Server status check type.listener
- Server status task execution listener
for asynchronous command execution.StatusJob.Listener getListener()
void setListener(StatusJob.Listener listener)
listener
- Server status task execution listener
for asynchronous command execution.public GlassFishStatusCheck getType()
getType
in interface GlassFishStatusTask
StatusResult getResult()
void setResult(StatusResult result)
result
- Last command task execution result.public GlassFishStatusCheckResult getStatus()
getStatus
in interface GlassFishStatusTask
public TaskEvent getEvent()
getEvent
in interface GlassFishStatusTask
Runnable getTask()
void setTask(Runnable task)
task
- Task thread currently being executed.TaskStateListener[] getListeners()
ScheduledFuture getFuture()
void setFuture(ScheduledFuture future)
future
- Task execution handler.void setTaskFuture(Runnable task, ScheduledFuture future)
task
- Task thread currently being executed.future
- Task execution handler.void clearTaskFuture()
GlassFishStatusCheckResult evalResult()
task
value is not null) and stored task result
is FAILED
or does not exist.
Copyright © 2013. All Rights Reserved.