Package com.orchestranetworks.instance
Class RepositoryId
java.lang.Object
com.orchestranetworks.instance.RepositoryId
Identifies a repository in a persistent manner.
This identifier is independent of the repository's physical location and format.
The repository id conforms to the format of a UUID node, as specified by RFC 4122. it is 48 bits (6 bytes) and is usually represented as 12 hexadecimal digits.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
static RepositoryId
boolean
long
getLong()
int
hashCode()
static RepositoryId
parseHexString
(String aString) toString()
-
Field Details
-
LENGTH
public static final int LENGTHRepository identifier length.- See Also:
-
PATTERN
Repository identifier string pattern.- See Also:
-
-
Method Details
-
createRandomly
-
parseHexString
- Throws:
NumberFormatException
-
equals
-
formatToHexString
-
hashCode
public int hashCode() -
toString
-
getLong
public long getLong() -
checkValidity
- Throws:
RuntimeException
-