uk.org.ogsadai.client.monitor
Class MonitorThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--uk.org.ogsadai.client.monitor.MonitorThread
All Implemented Interfaces:
java.lang.Runnable

public class MonitorThread
extends java.lang.Thread

A thread to regularly poll a data service to check its availability.

Author:
The OGSA-DAI Project Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  java.lang.Long mInterval
           
private  java.util.List mServices
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MonitorThread(java.util.List services)
           
 
Method Summary
 java.lang.Long getInterval()
           
 void run()
           
 void setInterval(java.lang.Long i)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

mServices

private java.util.List mServices

mInterval

private java.lang.Long mInterval
Constructor Detail

MonitorThread

public MonitorThread(java.util.List services)
Method Detail

setInterval

public void setInterval(java.lang.Long i)

getInterval

public java.lang.Long getInterval()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread