GestoreNomi
Class DemonLive

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--GestoreNomi.DemonLive
All Implemented Interfaces:
java.lang.Runnable

class DemonLive
extends java.lang.Thread

Questo Thread deve comunicare con il successore, monitorando che non ci siano problemi. Se si verifica un problema ci sono due casi: 1) il successivo è caduto, ma un altro slave successivo ha già sistemato la situazione prendendo il suo posto 2) il successivo è caduto ed era l'ultimo della catena: occorre segnalare l'accaduto al Gestore nomi che far partire l'attesa di un nuovo slave.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DemonLive(GestoreNomi g, java.net.DatagramSocket d)
           
 
Method Summary
 void run()
           
 
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

DemonLive

public DemonLive(GestoreNomi g,
                 java.net.DatagramSocket d)
Method Detail

run

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