fr.dyade.aaa.agent.AgentIdStamp Class Reference

Collaboration diagram for fr.dyade.aaa.agent.AgentIdStamp:

Collaboration graph
[legend]
List of all members.

Package Functions

 AgentIdStamp ()
void save () throws IOException
synchronized int newStamp (short to) throws IOException

Static Package Functions

static void init () throws IOException, ClassNotFoundException
static AgentIdStamp load () throws IOException, ClassNotFoundException

Static Package Attributes

static AgentIdStamp stamp = null

Detailed Description

AgentIdStamp class defines static members, variable and functions, to manage the allocation of new identifiers. It locally maintains a pair of counters, one for local agent server, one for remote agent server, keeping track of the last allocated stamp for the given target domain. Stamps are allocated in growing order and are never reused once allocated, even after agents are deleted.


Some initial stamps are reserved for statically identifying system and well known services as factory. They are defined in AgentId class.

Definition at line 40 of file AgentId.java.


Member Function Documentation

static void fr.dyade.aaa.agent.AgentIdStamp.init (  )  throws IOException, ClassNotFoundException [static, package]

Initializes AgentIdStamp class.

Exceptions:
IOException IO problem during loading.
ClassNotFoundException should never happened

Definition at line 60 of file AgentId.java.

References fr.dyade.aaa.agent.AgentIdStamp.AgentIdStamp(), fr.dyade.aaa.agent.AgentIdStamp.load(), fr.dyade.aaa.agent.AgentIdStamp.save(), and fr.dyade.aaa.agent.AgentIdStamp.stamp.

Here is the call graph for this function:

void fr.dyade.aaa.agent.AgentIdStamp.save (  )  throws IOException [package]

Saves the object state on persistent storage.

Definition at line 77 of file AgentId.java.

Referenced by fr.dyade.aaa.agent.AgentIdStamp.init(), and fr.dyade.aaa.agent.AgentIdStamp.newStamp().

static AgentIdStamp fr.dyade.aaa.agent.AgentIdStamp.load (  )  throws IOException, ClassNotFoundException [static, package]

Restores the object state from the persistent storage.

Definition at line 85 of file AgentId.java.

References fr.dyade.aaa.agent.AgentIdStamp.load().

Referenced by fr.dyade.aaa.agent.AgentIdStamp.init(), and fr.dyade.aaa.agent.AgentIdStamp.load().

Here is the call graph for this function:

synchronized int fr.dyade.aaa.agent.AgentIdStamp.newStamp ( short  to  )  throws IOException [package]

Allocates a new stamp for the target agent server.

Parameters:
to The target agent server

Definition at line 119 of file AgentId.java.

References fr.dyade.aaa.agent.AgentIdStamp.save().

Here is the call graph for this function:


Member Data Documentation

AgentIdStamp fr.dyade.aaa.agent.AgentIdStamp.stamp = null [static, package]

Static reference to local AgentIdStamp object.

Definition at line 47 of file AgentId.java.

Referenced by fr.dyade.aaa.agent.AgentIdStamp.init().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:15 2008 for joram by  doxygen 1.5.0