com.sun.sgs.service
Interface NodeListener


public interface NodeListener

A listener that can be registered with the WatchdogService to be notified of node status events. Invocations to the methods of a NodeListener are made outside of a transaction.

The implementations for the methods of this interface should be idempotent because they may be invoked multiple times.

See Also:
WatchdogService.addNodeListener(NodeListener)

Method Summary
 void nodeHealthUpdate(Node node)
          Notifies this listener that the specified node's health has been updated.
 

Method Detail

nodeHealthUpdate

void nodeHealthUpdate(Node node)
Notifies this listener that the specified node's health has been updated. The node's health can be obtained by calling getHealth on the node status information object. Note that the node's health may not have changed since the last update.

On node startup a health update will be made to indicate the initial health of the node.

Once a node has failed, i.e. node.isAlive() returns false, the node's health will not change.

Parameters:
node - node status information

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