|
Oracle Java Wireless Client | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaskInfo
Task descriptor interface.
Field Summary | |
static int |
DESTROYED
The task was destroyed and the descriptor is invalid. |
static int |
EXIT_FATAL_ERROR
The fatal error has occured during the task execution. |
static int |
EXIT_REGULAR
The task has finished its execution without errors. |
static int |
EXIT_TERMINATED
The task has been terminated. |
static int |
MAX_PRIORITY
The maximum priority that a task can have. |
static int |
MIN_PRIORITY
The minimum priority that a task can have. |
static int |
NORM_PRIORITY
The default priority that is assigned to a task. |
static int |
PAUSED
The task is paused. |
static int |
RUNNING
The task is running. |
static int |
STARTING
The task is starting up. |
Method Summary | |
java.lang.String |
getClassName()
Returns a name of the entry class. |
int |
getHeapUse()
Returns heap use of given task |
int |
getPriority()
Returns priority of given task |
int |
getStatus()
Returns task current status |
SuiteInfo |
getSuiteInfo()
Returns suite information this task executed from. |
boolean |
pauseTask()
Pauses given task. |
boolean |
resumeTask()
Resumes given task. |
boolean |
setForegroundTask()
Assigned foreground task. |
boolean |
setPriority(int priority)
Changes priority for given task |
boolean |
stopTask()
Stops given task. |
Field Detail |
static final int STARTING
static final int RUNNING
static final int PAUSED
static final int DESTROYED
static final int MIN_PRIORITY
static final int NORM_PRIORITY
static final int MAX_PRIORITY
static final int EXIT_REGULAR
static final int EXIT_FATAL_ERROR
static final int EXIT_TERMINATED
Method Detail |
boolean stopTask()
boolean pauseTask()
boolean resumeTask()
boolean setForegroundTask()
boolean setPriority(int priority) throws java.lang.IllegalArgumentException
priority
- new priority
java.lang.IllegalArgumentException
- - If the priority is not in the range
MIN_PRIORITY to MAX_PRIORITY.int getPriority()
int getHeapUse()
int getStatus()
STARTING
,
RUNNING
, PAUSED
, DESTROYED
java.lang.String getClassName()
SuiteInfo getSuiteInfo()
AppSuite
this task belongs to.
|
Oracle Java Wireless Client | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |