|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.lib.reconciliation.ReconciliationHandler
ReconciliationHandler.java The Manager's handler for tree reconciliation. This can occur under two sets of circumstances: Firstly, automatic reconciliation, when the LocalHost triggers this class via the HostListener interface. It is the Manager's responsibility to register this class with the LocalHost. Secondly, online reconciliation, when the Manager must start the reconcilation manually.
Constructor Summary | |
ReconciliationHandler(Manager manager,
LocalHost localhost)
|
Method Summary | |
static ReconciliationHandler |
getInstance()
|
void |
hostInReach(Host host)
This method is called when a host comes in reach. |
void |
hostOutOfReach(Host host)
This method is called when a host goes out of reach. |
void |
startReconciliation(Host host)
Triggers the reconciliation protocol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReconciliationHandler(Manager manager, LocalHost localhost)
Method Detail |
public void hostInReach(Host host)
hostInReach
in interface HostListener
host
- The host coming in reach.public void hostOutOfReach(Host host)
hostOutOfReach
in interface HostListener
host
- The host going out of reach.public void startReconciliation(Host host)
host
- The host with whom to reconcile.public static ReconciliationHandler getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |