Service instances.
This serves to ensure conflicting definitions of services don't get created.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Service | Returns: A Service instance.The unique service name. serviceName, final String The endpoint prefix. serviceEndpointPrefix)
Deprecated
Use
serviceBuilder() instead
Create a new service definition. |
| private static synchronized Service | |
| public static Service | Returns: service instanceservice name should be UPPER CASE. serviceName)Get Service instance based on service name. |
| public static Services. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| REALM_SPECIFIC_ENDPOINT_TEMPLATE_MAP | back to summary |
|---|---|
| private static final Map<String, String> REALM_SPECIFIC_ENDPOINT_TEMPLATE_MAP | |
| SERVICE_CACHE | back to summary |
|---|---|
| private static final Map<String, Service> SERVICE_CACHE | |
| Services | back to summary |
|---|---|
| public Services() | |
| create | back to summary |
|---|---|
| public static Service create(final String serviceName, final String serviceEndpointPrefix)
Deprecated Use Create a new service definition. If the service has already been registered with different values, an IllegalArgumentException will be raised. If the service has already been registered, the existing definition will be returned.
| |
| create | back to summary |
|---|---|
| private static synchronized Service create(final String serviceName, final String serviceEndpointPrefix, final String serviceEndpointTemplate, final String endpointServiceName) | |
| getServiceByName | back to summary |
|---|---|
| public static Service getServiceByName(final String serviceName) Get Service instance based on service name. | |
| serviceBuilder | back to summary |
|---|---|
| public static Services. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | BasicService(String serviceName, String serviceEndpointPrefix, String serviceEndpointTemplate, String endpointServiceName)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addServiceEndpointTemplateForRealm(String
Key in the map realmId, String Value in the map endpoint)Implements com. This method adds service endpoint templates for the realm to a map |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getEndpointServiceName()
Implements com. The service endpoint name that will be used only for dotted regions if set by the service. |
| public String | getServiceEndpointPrefix()
Implements com. The service endpoint prefix that will be used, ex "iaas" for "https://iaas.us-phoenix-1.oraclecloud.com". |
| public String | getServiceEndpointTemplate()
Implements com. The service endpoint template that will be used, ex "{serviceEndpointPrefix}.{region}.service.oci.oraclecloud.com". |
| public Map | getServiceEndpointTemplateForRealmMap()
Implements com. The map of all realm-specific service endpoint templates with realmId as key and endpoint template for corresponding realmId as the value ex "oc1={serviceParameter}{serviceEndpointPrefix}.{region}.{serviceSecondLevelDomain}". |
| public String | getServiceName()
Implements com. The unique service name, ex "BLOCKSTORAGE". |
| public int | |
| public String |
| endpointServiceName | back to summary |
|---|---|
| private final String endpointServiceName | |
| serviceEndpointPrefix | back to summary |
|---|---|
| private final String serviceEndpointPrefix | |
| serviceEndpointTemplate | back to summary |
|---|---|
| private final String serviceEndpointTemplate | |
| serviceName | back to summary |
|---|---|
| private final String serviceName | |
| BasicService | back to summary |
|---|---|
public BasicService(String serviceName, String serviceEndpointPrefix, String serviceEndpointTemplate, String endpointServiceName)
| |
| addServiceEndpointTemplateForRealm | back to summary |
|---|---|
| public void addServiceEndpointTemplateForRealm(String realmId, String endpoint) Implements com. Doc from com. This method adds service endpoint templates for the realm to a map | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getEndpointServiceName | back to summary |
|---|---|
| public String getEndpointServiceName() Implements com. Doc from com. The service endpoint name that will be used only for dotted regions if set by the service. {service} in "https://{service}.{region}". The service endpoint template (if specified) will be ignored in this case. | |
| getServiceEndpointPrefix | back to summary |
|---|---|
| public String getServiceEndpointPrefix() Implements com. Doc from com. The service endpoint prefix that will be used, ex "iaas" for "https://iaas.us-phoenix-1.oraclecloud.com". | |
| getServiceEndpointTemplate | back to summary |
|---|---|
| public String getServiceEndpointTemplate() Implements com. Doc from com. The service endpoint template that will be used, ex "{serviceEndpointPrefix}.{region}.service.oci.oraclecloud.com". This overrides the template used in | |
| getServiceEndpointTemplateForRealmMap | back to summary |
|---|---|
| public Map Implements com. Doc from com. The map of all realm-specific service endpoint templates with realmId as key and endpoint template for corresponding realmId as the value ex "oc1={serviceParameter}{serviceEndpointPrefix}.{region}.{serviceSecondLevelDomain}". This overrides the template used in | |
| getServiceName | back to summary |
|---|---|
| public String getServiceName() Implements com. Doc from com. The unique service name, ex "BLOCKSTORAGE". Must not be null. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Services. | |
| public Service | |
| public Services. | |
| public Services. | |
| public Services. | |
| public Services. | |
| public String |
| endpointServiceName | back to summary |
|---|---|
| private String endpointServiceName | |
| serviceEndpointPrefix | back to summary |
|---|---|
| private String serviceEndpointPrefix | |
| serviceEndpointTemplate | back to summary |
|---|---|
| private String serviceEndpointTemplate | |
| serviceName | back to summary |
|---|---|
| private String serviceName | |
| ServiceBuilder | back to summary |
|---|---|
| pack-priv ServiceBuilder() | |
| addServiceEndpointTemplateForRealm | back to summary |
|---|---|
| public Services. | |
| build | back to summary |
|---|---|
| public Service build() | |
| endpointServiceName | back to summary |
|---|---|
| public Services. | |
| serviceEndpointPrefix | back to summary |
|---|---|
| public Services. | |
| serviceEndpointTemplate | back to summary |
|---|---|
| public Services. | |
| serviceName | back to summary |
|---|---|
| public Services. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |