org.glite.gpbox.polling
Class PolicyPolling

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.glite.gpbox.polling.PolicyPolling
All Implemented Interfaces:
java.lang.Runnable

public class PolicyPolling
extends java.lang.Thread

PolicyPolling. The polling loop: each PBox contacts its neighbors. This class is a single thread launched by the PBox main class.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PolicyPolling()
           
 
Method Summary
 void run()
          Main thread method.
 void setDaemonState(boolean val)
           
 void startPolling()
          This is a simply entry point to call this thread.
 void stopPolling()
           
 
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
 

Constructor Detail

PolicyPolling

public PolicyPolling()
Method Detail

setDaemonState

public void setDaemonState(boolean val)

run

public void run()
Main thread method. It asks its each neighbor to get new pieces if information regarding new policies and/or new status changes.


startPolling

public void startPolling()
This is a simply entry point to call this thread.


stopPolling

public void stopPolling()