Exception PartialListClustersException (2.31.0)

public class PartialListClustersException extends RuntimeException

Exception thrown when some zones are unavailable and listClusters is unable to return a full cluster list. This exception can be inspected to get a partial list.

Constructors

PartialListClustersException(List<String> unavailableZones, List<Cluster> clusters)

public PartialListClustersException(List<String> unavailableZones, List<Cluster> clusters)

This method is considered an internal implementation detail and not meant to be used by applications.

Parameters
NameDescription
unavailableZonesList<String>
clustersList<Cluster>

Methods

getClusters()

public List<Cluster> getClusters()

A partial list of clusters that were found in the available zones.

Returns
TypeDescription
List<Cluster>

getUnavailableZones()

public List<String> getUnavailableZones()

A list of zones, whose unavailability caused this error.

Returns
TypeDescription
List<String>