Class ServicesSchema

java.lang.Object
co.yellowdog.platform.model.ServicesSchema

public class ServicesSchema extends Object
Defines a set of URLs and request retry settings to be used to connect to YellowDog Platform Services.
  • Method Details

    • defaultSchema

      public static ServicesSchema defaultSchema(@NonNull @NonNull String defaultUrl)
      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

      public Optional<String> getOrDefaultUrl(Function<ServicesSchema,String> getUrl)
    • builder

      public static ServicesSchema.Builder builder()
    • toBuilder

      public ServicesSchema.Builder toBuilder()
    • getRetry

      public RetryProperties getRetry()
    • getDefaultUrl

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public String 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

      public void setRetry(RetryProperties retry)
    • setDefaultUrl

      public void setDefaultUrl(String defaultUrl)
      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

      public void setAccountServiceUrl(String accountServiceUrl)
      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

      public void setComputeServiceUrl(String computeServiceUrl)
      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

      public void setLogServiceUrl(String logServiceUrl)
      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

      public void setImagesServiceUrl(String imagesServiceUrl)
      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

      public void setObjectStoreServiceUrl(String objectStoreServiceUrl)
      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

      public void setSchedulerServiceUrl(String schedulerServiceUrl)
      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

      public void setUsageServiceUrl(String usageServiceUrl)
      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

      public void setCloudInfoServiceUrl(String cloudInfoServiceUrl)
      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

      public void setMetricsServiceUrl(String metricsServiceUrl)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object