Class ClustersClient

java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.ClustersClient

public class ClustersClient extends AbstractApiClient
Client to work with clusters.
Author:
Cedrick LUNVEN (@clunven)
  • Constructor Details

    • ClustersClient

      public ClustersClient(String token)
      As immutable object use builder to initiate the object.
      Parameters:
      token - authenticated token
    • ClustersClient

      public ClustersClient(String token, ApiLocator.AstraEnvironment env)
      As immutable object use builder to initiate the object.
      Parameters:
      env - define target environment to be used
      token - authenticated token
  • Method Details

    • findAll

      public Stream<Cluster> findAll()
      Operations on clusters.
      Returns:
      list clusters.
    • find

      public Optional<Cluster> find(String clusterName)
      Find a tenant from ids name.
      Parameters:
      clusterName - name fo the cluster
      Returns:
      tenant
    • exist

      public boolean exist(String clusterName)
      Check if a role is present
      Parameters:
      clusterName - name fo the cluster
      Returns:
      if the tenant exist
    • getApiDevopsEndpointClusters

      public String getApiDevopsEndpointClusters()
      Endpoint to access schema for namespace.
      Returns:
      endpoint