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 classA builder that can be used to build a new ServicesSchema that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServicesSchema.Builderbuilder()protected booleanstatic ServicesSchemadefaultSchema(@NonNull String defaultUrl) Builds and returns a ServicesSchema instance with the specified default URL leaving other connection details as their defaults.booleanThe 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.inthashCode()voidsetAccountServiceUrl(String accountServiceUrl) The base URL where the Account service is located.voidsetCloudInfoServiceUrl(String cloudInfoServiceUrl) The base URL where the Cloud Info service is located.voidsetComputeServiceUrl(String computeServiceUrl) The base URL where the Compute service is located.voidsetDefaultUrl(String defaultUrl) The default base URL where services are located.voidsetImagesServiceUrl(String imagesServiceUrl) The base URL where the Images service is located.voidsetLogServiceUrl(String logServiceUrl) The base URL where the Log service is located.voidsetMetricsServiceUrl(String metricsServiceUrl) The base URL where the Metrics service is located.voidsetObjectStoreServiceUrl(String objectStoreServiceUrl) The base URL where the Object Store service is located.voidsetRetry(RetryProperties retry) voidsetSchedulerServiceUrl(String schedulerServiceUrl) The base URL where the Scheduler service is located.voidsetUsageServiceUrl(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
-