Class ApplicationId
java.lang.Object
dev.getelements.elements.sdk.cluster.id.ApplicationId
- All Implemented Interfaces:
Serializable,Comparable<dev.getelements.elements.sdk.cluster.id.HasCompoundId<dev.getelements.elements.sdk.cluster.id.V1CompoundId>>
Uniquely identifies an application.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationId(byte[] byteRepresentation) ApplicationId(String stringRepresentation) Creates theTaskIdfrom the provided string representation, as obtained fromasString().ApplicationId(UUID applicationUuid) Creates a new uniqueTaskId. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]asBytes()Returns therepresentation of thisinvalid reference
byte[]TaskIdasString()Returns the string representation of thisTaskIddefault intcompareTo(dev.getelements.elements.sdk.cluster.id.HasCompoundId<dev.getelements.elements.sdk.cluster.id.V1CompoundId> o) Compares this instance with the other instance.booleanstatic ApplicationIdforUniqueName(String uniqueApplicationName) Creates a newApplicationIdfrom the given unique application name.Gets theUUIDassociated with this ApplicationIddev.getelements.elements.sdk.cluster.id.V1CompoundIdgetId()inthashCode()static ApplicationIdGenerates a randomly assignedApplicationIdtoString()static ApplicationIdThe Java standard valueOf method.
-
Constructor Details
-
ApplicationId
Creates a new uniqueTaskId. -
ApplicationId
Creates theTaskIdfrom the provided string representation, as obtained fromasString().- Parameters:
stringRepresentation- the string representation
-
ApplicationId
public ApplicationId(byte[] byteRepresentation) - Parameters:
byteRepresentation- the string representation
-
-
Method Details
-
getId
public dev.getelements.elements.sdk.cluster.id.V1CompoundId getId() -
getApplicationUUID
Gets theUUIDassociated with this ApplicationId- Returns:
- the
UUIDfor the application
-
asBytes
public byte[] asBytes()Returns therepresentation of thisinvalid reference
byte[]TaskId- Returns:
- the value as bytes
-
asString
Returns the string representation of thisTaskId- Returns:
- the string representation
-
equals
-
hashCode
public int hashCode() -
toString
-
valueOf
The Java standard valueOf method.- Parameters:
value- the value- Returns:
- the
ApplicationId
-
randomApplicationId
Generates a randomly assignedApplicationId- Returns:
- a randomly assigned globally unique
ApplicationId
-
forUniqueName
Creates a newApplicationIdfrom the given unique application name. The unique application name may be any string uniquely representing the application (such as database primary key) or similar.- Parameters:
uniqueApplicationName- the unique application name- Returns:
- the newly created
ApplicationId
-
compareTo
default int compareTo(dev.getelements.elements.sdk.cluster.id.HasCompoundId<dev.getelements.elements.sdk.cluster.id.V1CompoundId> o) Compares this instance with the other instance.- Specified by:
compareToin interfaceComparable<CompoundIdT extends Comparable<CompoundIdT>>- Parameters:
o- the instance- Returns:
-