Class FixedUidGenerator

  • All Implemented Interfaces:
    UidGenerator

    public class FixedUidGenerator
    extends Object
    implements UidGenerator
    $Id$ Created on 11/03/2007 Generates Uid properties in a similar fashion to that recommended in section 4.8.4.7 of the specification.
    • Constructor Detail

      • FixedUidGenerator

        public FixedUidGenerator​(String pid)
                          throws SocketException
        Parameters:
        pid - a unique process identifier for the host machine
        Throws:
        SocketException - where host information cannot be retrieved
      • FixedUidGenerator

        public FixedUidGenerator​(HostInfo hostInfo,
                                 String pid)
        Parameters:
        hostInfo - custom host information
        pid - a unique process identifier for the host machine
    • Method Detail

      • generateUid

        public Uid generateUid()
        Specified by:
        generateUid in interface UidGenerator
        Returns:
        a unique component identifier