org.objectweb.carol.cmi
Class ObjectIdFactory

java.lang.Object
  extended by org.objectweb.carol.cmi.ObjectIdFactory

public class ObjectIdFactory
extends java.lang.Object

This is a monotonic counter that generate IDs for cluster remote objects.

Author:
Simon Nieuviarts

Constructor Summary
ObjectIdFactory(ClusterId serverId)
          Creates an ew factory from a server id
 
Method Summary
 ObjectId getId()
           
static void main(java.lang.String[] args)
          For test only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdFactory

public ObjectIdFactory(ClusterId serverId)
Creates an ew factory from a server id

Parameters:
serverId - server id
Method Detail

getId

public ObjectId getId()
Returns:
on object id.
Throws:
ClusterException

main

public static void main(java.lang.String[] args)
                 throws ServerConfigException
For test only.

Parameters:
args - program args
Throws:
ServerConfigException - if exception