com.sun.sgs.service
Interface Node

All Known Implementing Classes:
NodeImpl

public interface Node

An abstraction for node information, used in conjunction with the WatchdogService and NodeListeners.


Nested Class Summary
static class Node.Health
          Health of a node.
 
Method Summary
 Node.Health getHealth()
          Returns the health of the node.
 String getHostName()
          Returns this node's host name.
 long getId()
          Returns the node ID, which is always non-negative.
 boolean isAlive()
          Returns true if the node is known to be alive, and false if the node is thought to have failed or is unknown.
 

Method Detail

getId

long getId()
Returns the node ID, which is always non-negative.

Returns:
the node ID

getHostName

String getHostName()
Returns this node's host name.

Returns:
this node's host name

isAlive

boolean isAlive()
Returns true if the node is known to be alive, and false if the node is thought to have failed or is unknown.

Returns:
true if the node is alive, and false otherwise

getHealth

Node.Health getHealth()
Returns the health of the node.

Returns:
the node's health

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved