Class AgentIdStamp

  • All Implemented Interfaces:
    Serializable

    final class AgentIdStamp
    extends Object
    implements Serializable
    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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int local
      Stamp counter for local agent server.
      private int remote
      Stamp counter for remote agent server.
      private static long serialVersionUID
      Define serialVersionUID for interoperability.
      (package private) static AgentIdStamp stamp
      Static reference to local AgentIdStamp object.
    • Constructor Summary

      Constructors 
      Constructor Description
      AgentIdStamp()  
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Define serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • stamp

        static AgentIdStamp stamp
        Static reference to local AgentIdStamp object.
      • local

        private int local
        Stamp counter for local agent server.
      • remote

        private int remote
        Stamp counter for remote agent server.
    • Constructor Detail

      • AgentIdStamp

        AgentIdStamp()