
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 |
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.
AgentId class.
Definition at line 40 of file AgentId.java.
| static void fr.dyade.aaa.agent.AgentIdStamp.init | ( | ) | throws IOException, ClassNotFoundException [static, package] |
Initializes AgentIdStamp class.
| 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.
| 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:

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().
1.5.0