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 theTaskId
from the provided string representation, as obtained fromasString()
.ApplicationId
(UUID applicationUuid) Creates a new uniqueTaskId
. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
asBytes()
Returns theinvalid reference
byte[]
TaskId
asString()
Returns the string representation of thisTaskId
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.boolean
static ApplicationId
forUniqueName
(String uniqueApplicationName) Creates a newApplicationId
from the given unique application name.Gets theUUID
associated with this ApplicationIddev.getelements.elements.sdk.cluster.id.V1CompoundId
getId()
int
hashCode()
static ApplicationId
Generates a randomly assignedApplicationId
toString()
static ApplicationId
The Java standard valueOf method.
-
Constructor Details
-
ApplicationId
Creates a new uniqueTaskId
. -
ApplicationId
Creates theTaskId
from 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 theUUID
associated with this ApplicationId- Returns:
- the
UUID
for the application
-
asBytes
public byte[] asBytes()Returns theinvalid 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 newApplicationId
from 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:
compareTo
in interfaceComparable<CompoundIdT extends Comparable<CompoundIdT>>
- Parameters:
o
- the instance- Returns:
-