|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaskMonitor
This TaskMonitor takes charge of managing all task/report's monitoring contents.
| Method Summary | |
|---|---|
java.util.Vector |
getAllFailedTasks()
Gets all failed tasks. |
java.util.Vector |
getAllFinishedTasks()
Gets all finished tasks currently saved in the Monitor Server. |
java.util.Vector |
getAllFinishedTasks(int timeLimit)
Gets all tasks finished during the last N minutes, here N is an integer number. |
java.util.Vector |
getAllRunningTasks()
Gets all running tasks at current time. |
java.util.Vector |
getAllTaskStatistics()
Gets all task statistics at current time. |
java.util.Vector |
getAllWaitingTasks()
Gets all waiting tasks at current time. |
java.util.Vector |
getFailedTasksByUser(java.lang.String userName)
Gets all failed tasks submitted by the specified user. |
java.util.Vector |
getFinishedTasksByUser(java.lang.String userName)
Gets all finished tasks submitted by the given user and currently saved in the Monitor Server. |
java.util.Vector |
getFinishedTasksByUser(java.lang.String userName,
int timeLimit)
Gets all tasks finished during the last N minutes submitted by the given user. |
java.util.Vector |
getRunningTasksByUser(java.lang.String userName)
Gets all running tasks at current time submitted by the specified user. |
TaskInfo |
getTask(java.lang.String taskID)
Gets a TaskInfo reference according to its task ID. |
TaskStatistic |
getTaskStatistic(java.lang.String reportName)
Gets TaskStatistic by a specified report. |
java.util.Vector |
getWaitingTasksByUser(java.lang.String userName)
Gets all currently waiting tasks submitted by the specified user. |
void |
killTask(TaskInfo taskInfo)
Kills an unfinished task and related threads. |
void |
stopTask(TaskInfo taskInfo)
Stops an unfinished task from continuing to run. |
| Methods inherited from interface jet.server.monitor.api.Monitor |
|---|
getDuration, getInterval, isStarted, restart, setDuration, setInterval, start, stop, update |
| Method Detail |
|---|
java.util.Vector getAllRunningTasks()
TaskInfo instance.java.util.Vector getRunningTasksByUser(java.lang.String userName)
userName, - The specified user name.
TaskInfo instance.java.util.Vector getAllWaitingTasks()
TaskInfo instance.java.util.Vector getWaitingTasksByUser(java.lang.String userName)
userName, - The specified user name.
TaskInfo instance.java.util.Vector getAllFinishedTasks()
java.util.Vector getFinishedTasksByUser(java.lang.String userName)
java.util.Vector getAllFinishedTasks(int timeLimit)
timeLimit, - Since a period of time in minutes to now.
TaskInfo instance.
java.util.Vector getFinishedTasksByUser(java.lang.String userName,
int timeLimit)
userName, - The specified user name.timeLimit, - Since a period of time in minutes to now.
TaskInfo instance.java.util.Vector getAllFailedTasks()
java.util.Vector getFailedTasksByUser(java.lang.String userName)
userName, - The specified user name.
TaskInfo getTask(java.lang.String taskID)
TaskInfo reference according to its task ID.
taskID, - The given task ID.
TaskInfo reference according to its task ID.void stopTask(TaskInfo taskInfo)
taskInfo, - The specified TaskInfo object.void killTask(TaskInfo taskInfo)
taskInfo, - The specified TaskInfo object.
Notice, this method may result in JReport Server in an inconsistent state,
so it is not recommended to call it in normal situations.java.util.Vector getAllTaskStatistics()
TaskStatistic instance.TaskStatistic getTaskStatistic(java.lang.String reportName)
TaskStatistic by a specified report.
reportName - the report name used to get TaskStatistic.
- Returns:
TaskStatistic object for the specified report,
or null if the TaskStatistic does not exist.- Since:
- version 9
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||