public interface TaskManagerListener
Modifier and Type | Method and Description |
---|---|
void |
notifyStatusUpdate(TaskInfo task,
int newStatus)
Notifies a listener about a tasks new status
|
void |
notifyTaskStopped(TaskInfo task,
int exitCode)
Notifies a listener when a task finishes its execution
|
void notifyStatusUpdate(TaskInfo task, int newStatus)
task
- updated tasknewStatus
- one of the follwoing constans:
TaskInfo.STARTING
, TaskInfo.RUNNING
,
TaskInfo.PAUSED
, TaskInfo.DESTROYED
void notifyTaskStopped(TaskInfo task, int exitCode)
task
- finished taskexitCode
- task exit code, one of the follwoing constans:
TaskInfo.EXIT_REGULAR
, TaskInfo.EXIT_FATAL_ERROR
,
TaskInfo.EXIT_TERMINATED
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.