GestoreNomi
Class DemonLiveSlave

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

class DemonLiveSlave
extends java.lang.Thread

Il thread si devo occupare di dialogare con il suo pari precedente al fine di monitorare che non ci siano problemi. Se ci sono problemi ed il precedente è caduto, deve risolvere la cosa, diventando lui stesso il master(se il suo precedente era il master) o andando a sostituire lo slave caduto.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DemonLiveSlave(GestoreNomi g)
           
 
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

DemonLiveSlave

public DemonLiveSlave(GestoreNomi g)
Method Detail

run

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