|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
interface NodeMappingServer
Defines the service interface for the global portion of the
NodeMappingService.
| Method Summary | |
|---|---|
boolean |
assertValid(Identity identity)
Check the validity of the data store for a particular identity. |
long |
assignNode(Class service,
Identity id,
long requestingNode)
Assigns the identity to a node and indicates that the service class believes this identity is active. |
void |
canMove(Identity id)
All IdentityRelocationListeners have completed their work,
so it's safe to move the identity. |
void |
canRemove(Identity id)
The identity's reference count has gone to zero, so it can be removed. |
void |
registerNodeListener(NotifyClient client,
long nodeId)
Register a NotifyClient object to be called when changes
occur on a particular node. |
void |
unregisterNodeListener(long nodeId)
Unregister the NotifyClient object for a node if one
is registered. |
| Method Detail |
|---|
long assignNode(Class service,
Identity id,
long requestingNode)
throws IOException
service - the class of the calling serviceid - the identity to assign
should this be a set? requestingNode - the id of the node requesting assignment
IOException - if a communication problem occurs while
invoking this method
void canRemove(Identity id)
throws IOException
id - the identity which can be removed from the map
IOException - if a communication problem occurs while
invoking this method
void canMove(Identity id)
throws IOException
IdentityRelocationListeners have completed their work,
so it's safe to move the identity.
id - the identity which can now be moved
IOException - if a communication problem occurs while
invoking this method
void registerNodeListener(NotifyClient client,
long nodeId)
throws IOException
NotifyClient object to be called when changes
occur on a particular node. Only one listener object can be
registered per nodeId, and registering a listener
will clear any previously registered listener for that nodeId.Registration must only be made during service startup.
client - the callback clientnodeId - the node which client is interested in changes to
IOException - if a communication problem occurs while
invoking this method
void unregisterNodeListener(long nodeId)
throws IOException
NotifyClient object for a node if one
is registered.
nodeId - the node
IOException - if a communication problem occurs while
invoking this method
boolean assertValid(Identity identity)
throws Exception
identity - the identity
true if all is well, false if there is a problem
Exception - if any error occurs
|
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 | |||||||||