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
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ApplicationId other) static ApplicationId
Returns an application id where all fields are "default"boolean
static ApplicationId
from
(com.yahoo.cloud.config.ApplicationIdConfig config) static ApplicationId
from
(TenantName tenant, ApplicationName application, InstanceName instance) static ApplicationId
static ApplicationId
fromFullString
(String idString) static ApplicationId
fromSerializedForm
(String idString) static ApplicationId
global()
Returns a very special application id, which is not equal to any other id.int
hashCode()
instance()
Returns a serialized form of the content of this: tenant:application:instancetenant()
Returns "dotted" string (tenant.application.instance) with instance name always includedstatic String
toSerializedForm
(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:
compareTo
in 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.
-