net.jini.discovery
Class LookupDiscovery.AnnouncementTimerThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.jini.discovery.LookupDiscovery.AnnouncementTimerThread
All Implemented Interfaces:
Runnable
Enclosing class:
LookupDiscovery

private class LookupDiscovery.AnnouncementTimerThread
extends Thread

This thread monitors the multicast announcements sent from the lookup service(s) that have already been discovered by this class, looking for indications that those announcements have terminated. The data structure used to map the discovered lookup services to the time of arrival of the most recent multicast announcement from each such lookup service is examined at regular intervals; dependent on the system property net.jini.discovery.announce. If the difference between the current time and the last time of arrival for any announcement exceeds a predetermined threshold, the corresponding lookup is polled for its current set of member groups. If that lookup service is unreachable, or if it is reachable but its member groups have been replaced, the lookup service is discarded.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private static long N_INTERVALS
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LookupDiscovery.AnnouncementTimerThread()
          Create a daemon thread
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

N_INTERVALS

private static final long N_INTERVALS
See Also:
Constant Field Values
Constructor Detail

LookupDiscovery.AnnouncementTimerThread

public LookupDiscovery.AnnouncementTimerThread()
Create a daemon thread

Method Detail

run

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


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.