Package org.apache.accumulo.core.data
Class InstanceId
- java.lang.Object
-
- org.apache.accumulo.core.data.AbstractId<InstanceId>
-
- org.apache.accumulo.core.data.InstanceId
-
- All Implemented Interfaces:
Serializable
,Comparable<InstanceId>
public class InstanceId extends AbstractId<InstanceId>
A strongly typed representation of an Accumulo instance ID. The constructor for this class will throw an error if the canonical parameter is null.- Since:
- 2.1.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InstanceId
of(String canonical)
Get a InstanceId object for the provided canonical string.static InstanceId
of(UUID uuid)
Get a InstanceId object for the provided uuid.
-
-
-
Method Detail
-
of
public static InstanceId of(String canonical)
Get a InstanceId object for the provided canonical string. This is guaranteed to be non-null- Parameters:
canonical
- Instance ID string- Returns:
- InstanceId object
-
of
public static InstanceId of(UUID uuid)
Get a InstanceId object for the provided uuid. This is guaranteed to be non-null- Parameters:
uuid
- UUID object- Returns:
- InstanceId object
-
-