public interface ReadOnlyClusterStoreView
Modifier and Type | Method and Description |
---|---|
boolean |
clusterExists(String clusterId)
Return whether or not the cluster with the given id exists or not, where existence is determined by whether or not
the cluster is in the store, and not by whether or not there is an active cluster with the given id.
|
List<Cluster> |
getAllClusters()
Get an immutable list of all clusters in the store.
|
List<ClusterSummary> |
getAllClusterSummaries()
Get an immutable list of summaries of all clusters in the store.
|
List<ClusterSummary> |
getAllClusterSummaries(Set<Cluster.Status> states)
Get an immutable list of summaries of all clusters in the store that are in one of the given cluster states.
|
Cluster |
getCluster(String clusterId)
Get a specific cluster by id.
|
List<ClusterJob> |
getClusterJobs(String clusterId,
int limit)
Get all jobs performed or being performed on the given cluster owned by the given user.
|
Set<Node> |
getClusterNodes(String clusterId)
Get an immutable set of all nodes belonging to a specific cluster.
|
List<Cluster> |
getNonTerminatedClusters()
Get an immutable list of all clusters in the store that are not in the terminated state.
|
List<Cluster> getAllClusters() throws IOException
IOException
- if there was a problem getting the clusters.List<ClusterSummary> getAllClusterSummaries() throws IOException
IOException
- if there was a problem getting the cluster summaries.List<ClusterSummary> getAllClusterSummaries(Set<Cluster.Status> states) throws IOException
states
- returned clusters must be in one of these states.IOException
- if there was a problem getting the cluster summaries.List<Cluster> getNonTerminatedClusters() throws IOException
IOException
- if there was a problem getting the clusters.Cluster getCluster(String clusterId) throws IOException
clusterId
- Id of the cluster to find.IOException
- if there was a problem getting the cluster.boolean clusterExists(String clusterId) throws IOException
clusterId
- Id of the cluster.IOException
List<ClusterJob> getClusterJobs(String clusterId, int limit) throws IOException
clusterId
- Id of the cluster for which to get jobs.limit
- Max number of jobs to return. If there are more, the most recent jobs will be returned. A
negative number is interpreted as no limit.IOException
- if there was a problem getting the cluster jobs.Set<Node> getClusterNodes(String clusterId) throws IOException
clusterId
- Id of the cluster whose nodes will be fetched.IOException
- if there was a problem getting the cluster nodes.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.