Package com.orchestranetworks.instance
Class RepositoryId
- java.lang.Object
-
- com.orchestranetworks.instance.RepositoryId
-
public final class RepositoryId extends Object
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:
Repository
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckValidity()static RepositoryIdcreateRandomly()booleanequals(Object x)StringformatToHexString()longgetLong()inthashCode()static RepositoryIdparseHexString(String aString)StringtoString()
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
Repository identifier length.- See Also:
- Constant Field Values
-
PATTERN
public static final String PATTERN
Repository identifier string pattern.- See Also:
- Constant Field Values
-
-
Method Detail
-
createRandomly
public static RepositoryId createRandomly()
-
parseHexString
public static RepositoryId parseHexString(String aString) throws NumberFormatException
- Throws:
NumberFormatException
-
formatToHexString
public String formatToHexString()
-
getLong
public long getLong()
-
checkValidity
public void checkValidity() throws RuntimeException- Throws:
RuntimeException
-
-