Class ServicesSchema
java.lang.Object
co.yellowdog.platform.model.ServicesSchema
Defines a set of URLs and request retry settings to be used to connect to YellowDog Platform Services.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new ServicesSchema that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServicesSchema.Builder
builder()
protected boolean
static ServicesSchema
defaultSchema
(@NonNull String defaultUrl) Builds and returns a ServicesSchema instance with the specified default URL leaving other connection details as their defaults.boolean
The base URL where the Account service is located.The base URL where the Cloud Info service is located.The base URL where the Compute service is located.The default base URL where services are located.The base URL where the Images service is located.The base URL where the Log service is located.The base URL where the Metrics service is located.The base URL where the Object Store service is located.getOrDefaultUrl
(Function<ServicesSchema, String> getUrl) getRetry()
The base URL where the Scheduler service is located.The base URL where the Usage service is located.int
hashCode()
void
setAccountServiceUrl
(String accountServiceUrl) The base URL where the Account service is located.void
setCloudInfoServiceUrl
(String cloudInfoServiceUrl) The base URL where the Cloud Info service is located.void
setComputeServiceUrl
(String computeServiceUrl) The base URL where the Compute service is located.void
setDefaultUrl
(String defaultUrl) The default base URL where services are located.void
setImagesServiceUrl
(String imagesServiceUrl) The base URL where the Images service is located.void
setLogServiceUrl
(String logServiceUrl) The base URL where the Log service is located.void
setMetricsServiceUrl
(String metricsServiceUrl) The base URL where the Metrics service is located.void
setObjectStoreServiceUrl
(String objectStoreServiceUrl) The base URL where the Object Store service is located.void
setRetry
(RetryProperties retry) void
setSchedulerServiceUrl
(String schedulerServiceUrl) The base URL where the Scheduler service is located.void
setUsageServiceUrl
(String usageServiceUrl) The base URL where the Usage service is located.toString()
-
Method Details
-
defaultSchema
Builds and returns a ServicesSchema instance with the specified default URL leaving other connection details as their defaults.- Parameters:
defaultUrl
- the default base URL- Returns:
- a new ServicesSchema instance
-
getOrDefaultUrl
-
builder
-
toBuilder
-
getRetry
-
getDefaultUrl
The default base URL where services are located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where services are located
-
getAccountServiceUrl
The base URL where the Account service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Account service is located
-
getComputeServiceUrl
The base URL where the Compute service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Compute service is located
-
getLogServiceUrl
The base URL where the Log service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Log service is located
-
getImagesServiceUrl
The base URL where the Images service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Images service is located
-
getObjectStoreServiceUrl
The base URL where the Object Store service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Object Store service is located
-
getSchedulerServiceUrl
The base URL where the Scheduler service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Scheduler service is located
-
getUsageServiceUrl
The base URL where the Usage service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Usage service is located
-
getCloudInfoServiceUrl
The base URL where the Cloud Info service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Cloud Info service is located
-
getMetricsServiceUrl
The base URL where the Metrics service is located. This is the YellowDog Cell URL rather than a service specific path.- Returns:
- the base URL where the Metrics service is located
-
setRetry
-
setDefaultUrl
The default base URL where services are located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
defaultUrl
- the base URL where services are located
-
setAccountServiceUrl
The base URL where the Account service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
accountServiceUrl
- the base URL where the Account service is located
-
setComputeServiceUrl
The base URL where the Compute service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
computeServiceUrl
- the base URL where the Compute service is located
-
setLogServiceUrl
The base URL where the Log service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
logServiceUrl
- the base URL where the Log service is located
-
setImagesServiceUrl
The base URL where the Images service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
imagesServiceUrl
- the base URL where the Images service is located
-
setObjectStoreServiceUrl
The base URL where the Object Store service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
objectStoreServiceUrl
- the base URL where the Object Store service is located
-
setSchedulerServiceUrl
The base URL where the Scheduler service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
schedulerServiceUrl
- the base URL where the Scheduler service is located
-
setUsageServiceUrl
The base URL where the Usage service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
usageServiceUrl
- the base URL where the Usage service is located
-
setCloudInfoServiceUrl
The base URL where the Cloud Info service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
cloudInfoServiceUrl
- the base URL where the Cloud Info service is located
-
setMetricsServiceUrl
The base URL where the Metrics service is located. This is the YellowDog Cell URL rather than a service specific path.- Parameters:
metricsServiceUrl
- the base URL where the Metrics service is located
-
equals
-
canEqual
-
hashCode
-
toString
-