Package com.yahoo.config.provision
Class ApplicationId
java.lang.Object
com.yahoo.config.provision.ApplicationId
- All Implemented Interfaces:
Comparable<ApplicationId>
A complete, immutable identification of an application instance.
- Author:
- Ulf Lilleengen, vegard, bratseth
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ApplicationId other) static ApplicationIdReturns an application id where all fields are "default"booleanstatic ApplicationIdfrom(com.yahoo.cloud.config.ApplicationIdConfig config) static ApplicationIdfrom(TenantName tenant, ApplicationName application, InstanceName instance) static ApplicationIdstatic ApplicationIdfromFullString(String idString) static ApplicationIdfromSerializedForm(String idString) static ApplicationIdglobal()Returns a very special application id, which is not equal to any other id.inthashCode()instance()Returns a serialized form of the content of this: tenant:application:instancetenant()Returns "dotted" string (tenant.application.instance) with instance name always includedstatic StringtoSerializedForm(TenantName tenant, ApplicationName application) Returns a serialized form of tenant:application to be used with e.g FlagsReturns "dotted" string (tenant.application.instance) with instance name omitted if it is "default"toString()
-
Method Details
-
from
-
from
public static ApplicationId from(TenantName tenant, ApplicationName application, InstanceName instance) -
from
-
fromSerializedForm
-
fromFullString
-
hashCode
public int hashCode() -
equals
-
serializedForm
Returns a serialized form of the content of this: tenant:application:instance -
toShortString
Returns "dotted" string (tenant.application.instance) with instance name omitted if it is "default" -
toFullString
Returns "dotted" string (tenant.application.instance) with instance name always included -
toSerializedFormWithoutInstance
-
toString
-
tenant
-
application
-
instance
-
compareTo
- Specified by:
compareToin interfaceComparable<ApplicationId>
-
defaultId
Returns an application id where all fields are "default" -
toSerializedForm
Returns a serialized form of tenant:application to be used with e.g Flags -
global
Returns a very special application id, which is not equal to any other id.
-