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 |
getHashIDFromTaskID(int taskid)
Get tasks unique hash id from the taskid |
static java.lang.String[] |
getTaskTable()
Return the task table |
static boolean |
isTaskRunningByHashID(int hashid)
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 |
equals,
hashCode,
toString |
Scheduler
public Scheduler()
getHashIDFromTaskID
public static int getHashIDFromTaskID(int taskid)
- Get tasks unique hash id from the taskid
- Parameters:
taskid - Task ID of tsak- Returns:
- Hash ID of task
- See Also:
isTaskRunningByHashID
public static boolean isTaskRunningByHashID(int hashid)
- Check to see if task with specified Hash ID is running
- Parameters:
hashid - Hash 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:
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: