Class IgniteUuid

java.lang.Object
org.gridgain.internal.dr.common.IgniteUuid
All Implemented Interfaces:
Externalizable, Serializable

public final class IgniteUuid extends Object implements Externalizable
IgniteUUID implementation compatible with GG-8.

NB: This is GG-8 compatible copy, do NOT try to use GG-9 version instead.

See Also:
  • Constructor Details

    • IgniteUuid

      public IgniteUuid(UUID gid, long locId)
      Constructs GridUuid from a global and local identifiers.
      Parameters:
      gid - UUID.
      locId - Counter.
  • Method Details

    • create

      public static IgniteUuid create(long most, long least, long locId)
      Factory method.
    • create

      @TestOnly public static IgniteUuid create(UUID globalId, long localId)
    • random

      @TestOnly public static IgniteUuid random()
    • shortString

      public String shortString()
      Gets a short string version of this ID. Use it only for UI where full version is available to the application.
      Returns:
      Short string version of this ID.
    • globalId

      public UUID globalId()
      Gets global ID portion of this GridUuid.
      Returns:
      Global ID portion of this GridUuid.
    • localId

      public long localId()
      Gets local ID portion of this GridUuid.
      Returns:
      Local ID portion of this GridUuid.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object