Oracle Java Wireless Client

com.sun.ams
Interface TaskManagerListener


public interface TaskManagerListener

A listener interface for processing task status updates.


Method Summary
 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
 

Method Detail

notifyStatusUpdate

void notifyStatusUpdate(TaskInfo task,
                        int newStatus)
Notifies a listener about a tasks new status

Parameters:
task - updated task
newStatus - one of the follwoing constans: TaskInfo.STARTING, TaskInfo.RUNNING, TaskInfo.PAUSED, TaskInfo.DESTROYED

notifyTaskStopped

void notifyTaskStopped(TaskInfo task,
                       int exitCode)
Notifies a listener when a task finishes its execution

Parameters:
task - finished task
exitCode - task exit code, one of the follwoing constans: TaskInfo.EXIT_REGULAR, TaskInfo.EXIT_FATAL_ERROR, TaskInfo.EXIT_TERMINATED

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.