springs.access
Class LocalAgentReferencesCollector

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--springs.access.LocalAgentReferencesCollector
All Implemented Interfaces:
java.lang.Runnable

public class LocalAgentReferencesCollector
extends java.lang.Thread

Thread in charge of collecting local agent references not used.

Author:
Sergio Ilarri Artigas

Field Summary
private  springs.access.LocalAgentReferences _localReferences
          A boolean indicating whether the thread must end its execution.
private  boolean _terminate
          A boolean indicating whether the thread must end its execution.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LocalAgentReferencesCollector(springs.access.LocalAgentReferences localReferences)
          Constructor.
 
Method Summary
 boolean getTerminate()
          Obtains if the thread must be terminated.
 void run()
          Main method.
 void terminate()
          Terminates the thread.
 
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

_terminate

private boolean _terminate
A boolean indicating whether the thread must end its execution.


_localReferences

private springs.access.LocalAgentReferences _localReferences
A boolean indicating whether the thread must end its execution.

See Also:
LocalAgentReferences
Constructor Detail

LocalAgentReferencesCollector

public LocalAgentReferencesCollector(springs.access.LocalAgentReferences localReferences)
Constructor.

Parameters:
localReferences - the local references to agents.
See Also:
LocalAgentReferences
Method Detail

run

public void run()
Main method. Collect the out-of-date agent local references periodically.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

terminate

public void terminate()
Terminates the thread.


getTerminate

public boolean getTerminate()
Obtains if the thread must be terminated.

Returns:
a boolean indicating that.