|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WatchdogClient
A remote interface for callbacks from the Watchdog server.
| Method Summary | |
|---|---|
void |
nodeStatusChanges(long[] ids,
String[] hosts,
Node.Health[] health,
long[] backups)
Notifies this client that the nodes specified by corresponding information in the ids, hosts,
health, and backups arrays have a health change
and may need to
recover (if the backup ID is equal to the local node ID). |
void |
reportFailure(String className)
Mechanism to report a failure to the Watchdog service. |
| Method Detail |
|---|
void nodeStatusChanges(long[] ids,
String[] hosts,
Node.Health[] health,
long[] backups)
throws IOException
ids, hosts,
health, and backups arrays have a health change
and may need to
recover (if the backup ID is equal to the local node ID). The
backups array is only only consulted if the corresponding
element in health returns false from
Health.isAlive(). If no node has been
assigned as a backup, it is indicated by
-1L.
ids - an array of node IDshosts - an array of host nameshealth - an array of node healthbackups - an array of backup node IDs
IllegalArgumentException - if array lengths don't match
IOException - if a communication problem occurs while
invoking this method
void reportFailure(String className)
throws IOException
className - the class which reported the failure
IOException - if a communication problem occurs while invoking
this method
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||