com.sun.sgs.impl.service.nodemap
Interface NotifyClient

All Superinterfaces:
Remote

interface NotifyClient
extends Remote

Callback for clients of the server to update them with information about identity membership changes to their node.


Method Summary
 void added(Identity id, Node oldNode)
          An identity has been assigned to this node.
 void prepareRelocate(Identity id, long newNodeId)
          An identity has been selected for relocation from this node.
 void removed(Identity id, Node newNode)
          An identity has been removed from this node.
 

Method Detail

added

void added(Identity id,
           Node oldNode)
           throws IOException
An identity has been assigned to this node.

Parameters:
id - the identity
oldNode - the last node the identity was assigned to, or null if this is a new node assignment
Throws:
IOException - if there is a communication problem

removed

void removed(Identity id,
             Node newNode)
             throws IOException
An identity has been removed from this node.

Parameters:
id - the identity
newNode - the new node the identity is assigned to, or null if the identity is being removed from the map
Throws:
IOException - if there is a communication problem

prepareRelocate

void prepareRelocate(Identity id,
                     long newNodeId)
                     throws IOException
An identity has been selected for relocation from this node.

Parameters:
id - the identity
newNodeId - the ID of the new node the identity will be relocated to
Throws:
IOException - if there is a communication problem

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