org.apache.commons.id.uuid
Interface NodeManager

All Known Implementing Classes:
NodeManagerImpl

public interface NodeManager

Class is responsible for managing the Nodes identified for this system (JVM instance), as well as the state management for the Nodes.

Version:
$Revision: 480488 $ $Date: 2006-11-29 08:57:26 +0000 (Wed, 29 Nov 2006) $
Author:
Commons-Id team

Method Summary
 Node currentNode()
          Returns the current node in use for uuid generation.
 void lockNode(Node node)
          Locks a node for use by a generator.
 Node nextAvailableNode()
          Returns the next available Node for uuid generation.
 void releaseNode(Node node)
          Releases a node locked by a generator.
 

Method Detail

currentNode

Node currentNode()

Returns the current node in use for uuid generation. Calls to this method also signal the NodeManagerImpl when to store uuid state information.

Returns:
the current node in use for uuid generation.

nextAvailableNode

Node nextAvailableNode()

Returns the next available Node for uuid generation.

Returns:
the next available Node for uuid generation.

lockNode

void lockNode(Node node)

Locks a node for use by a generator.

Parameters:
node - the Node to lock.

releaseNode

void releaseNode(Node node)

Releases a node locked by a generator.

Parameters:
node - the Node to release.


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.