|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.farming.common.JobMonitor
public final class JobMonitor
| Field Summary | |
|---|---|
static long |
MONITOR_DEFAULT_POLLTIME
Default poll time = 5000 milliseconds |
| Constructor Summary | |
|---|---|
JobMonitor(ComputeServer server)
|
|
| Method Summary | |
|---|---|
void |
addListener(JobListener jl)
This class is also the source of the events. |
java.util.Collection |
getJobs()
|
boolean |
isRunning()
Returns true if the monitor is still running |
void |
removeAllListeners()
|
void |
removeListener(JobListener jl)
|
void |
run()
|
void |
setPollTime(long pollTimeMillis)
|
void |
startMonitoring(Job j)
Adds this job to the list of jobs to be monitored |
void |
stop()
This method will signal the jobmonitor thread to stop |
void |
stopMonitoring(Job j)
Removes this job to the list of jobs to be monitored |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MONITOR_DEFAULT_POLLTIME
| Constructor Detail |
|---|
public JobMonitor(ComputeServer server)
server - config - | Method Detail |
|---|
public void setPollTime(long pollTimeMillis)
pollTimeMillis - public final void stop()
public final boolean isRunning()
public final void run()
run in interface java.lang.RunnableRunnable.run()public final void startMonitoring(Job j)
j - public final void stopMonitoring(Job j)
j - public void addListener(JobListener jl)
jl - public void removeListener(JobListener jl)
jl - public void removeAllListeners()
public java.util.Collection getJobs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||