Package org.gridgain.internal.dr.common
Class IgniteUuid
java.lang.Object
org.gridgain.internal.dr.common.IgniteUuid
- All Implemented Interfaces:
Externalizable,Serializable
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 Summary
ConstructorsConstructorDescriptionIgniteUuid(UUID gid, long locId) ConstructsGridUuidfrom a global and local identifiers. -
Method Summary
Modifier and TypeMethodDescriptionstatic IgniteUuidcreate(long most, long least, long locId) Factory method.static IgniteUuidbooleanglobalId()Gets global ID portion of thisGridUuid.inthashCode()longlocalId()Gets local ID portion of thisGridUuid.static IgniteUuidrandom()voidGets a short string version of this ID.toString()void
-
Constructor Details
-
IgniteUuid
ConstructsGridUuidfrom a global and local identifiers.- Parameters:
gid- UUID.locId- Counter.
-
-
Method Details
-
create
Factory method. -
create
-
random
-
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
Gets global ID portion of thisGridUuid.- Returns:
- Global ID portion of this
GridUuid.
-
localId
public long localId()Gets local ID portion of thisGridUuid.- Returns:
- Local ID portion of this
GridUuid.
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
toString
-