com.dalsemi.system
Class Scheduler
java.lang.Object
|
+--com.dalsemi.system.Scheduler
- public class Scheduler
- extends java.lang.Object
The Scheduler class contains static methods to read
the state of the running tasks.
|
Method Summary |
static int |
getOwnerIDByTaskID(int taskid)
Get tasks unique hash id from the taskid |
static int |
getTaskID()
Get tasks unique hash id from the taskid |
static java.lang.String[] |
getTaskTable()
Return the task table |
static int[] |
getTaskTableIDs()
Return the task table |
static boolean |
isTaskRunning(int taskid)
Check to see if task with specified Hash ID is running |
static int |
killTask(int taskID)
Stop and remove task from system. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Scheduler
public Scheduler()
getTaskID
public static int getTaskID()
- Get tasks unique hash id from the taskid
- Returns:
- my Task ID
- See Also:
getOwnerIDByTaskID
public static int getOwnerIDByTaskID(int taskid)
- Get tasks unique hash id from the taskid
- Returns:
- my Task ID
- See Also:
isTaskRunning
public static boolean isTaskRunning(int taskid)
- Check to see if task with specified Hash ID is running
- Parameters:
taskid - ID of task- Returns:
- true if task is running
- See Also:
getTaskTable
public static java.lang.String[] getTaskTable()
- Return the task table
- Returns:
- String array with size equal to number of tasks.
- See Also:
getTaskTableIDs
public static int[] getTaskTableIDs()
- Return the task table
- Returns:
- int array with size equal to number of tasks.
- See Also:
killTask
public static int killTask(int taskID)
- Stop and remove task from system.
- Parameters:
taskID - Task ID of task to kill.- Returns:
- Task ID killed.
- See Also: