Interface Clusters
public interface Clusters
Resource collection API of Clusters.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Cluster resource.voidDeletes a cluster.voiddelete(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Deletes a cluster.voiddeleteById(String id) Deletes a cluster.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a cluster.Gets a HDInsight cluster.Gets a HDInsight cluster.com.azure.core.http.rest.Response<Cluster> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a HDInsight cluster.getInstanceView(String resourceGroupName, String clusterPoolName, String clusterName) Gets the status of a cluster instance.com.azure.core.http.rest.Response<ClusterInstanceViewResult> getInstanceViewWithResponse(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Gets the status of a cluster instance.com.azure.core.http.rest.Response<Cluster> getWithResponse(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Gets a HDInsight cluster.com.azure.core.http.rest.PagedIterable<Cluster> listByClusterPoolName(String resourceGroupName, String clusterPoolName) Lists the HDInsight cluster pools under a resource group.com.azure.core.http.rest.PagedIterable<Cluster> listByClusterPoolName(String resourceGroupName, String clusterPoolName, com.azure.core.util.Context context) Lists the HDInsight cluster pools under a resource group.com.azure.core.http.rest.PagedIterable<ClusterInstanceViewResult> listInstanceViews(String resourceGroupName, String clusterPoolName, String clusterName) Lists the lists of instance views.com.azure.core.http.rest.PagedIterable<ClusterInstanceViewResult> listInstanceViews(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Lists the lists of instance views.com.azure.core.http.rest.PagedIterable<ServiceConfigResult> listServiceConfigs(String resourceGroupName, String clusterPoolName, String clusterName) Lists the config dump of all services running in cluster.com.azure.core.http.rest.PagedIterable<ServiceConfigResult> listServiceConfigs(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Lists the config dump of all services running in cluster.resize(String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest) Resize an existing Cluster.resize(String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest, com.azure.core.util.Context context) Resize an existing Cluster.upgrade(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgrade clusterUpgradeRequest) Upgrade a cluster.upgrade(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgrade clusterUpgradeRequest, com.azure.core.util.Context context) Upgrade a cluster.upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest) Manual rollback upgrade for a cluster.upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest, com.azure.core.util.Context context) Manual rollback upgrade for a cluster.
-
Method Details
-
listByClusterPoolName
com.azure.core.http.rest.PagedIterable<Cluster> listByClusterPoolName(String resourceGroupName, String clusterPoolName) Lists the HDInsight cluster pools under a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.- Returns:
- the list cluster operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByClusterPoolName
com.azure.core.http.rest.PagedIterable<Cluster> listByClusterPoolName(String resourceGroupName, String clusterPoolName, com.azure.core.util.Context context) Lists the HDInsight cluster pools under a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.context- The context to associate with this operation.- Returns:
- the list cluster operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgrade
Cluster upgrade(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgrade clusterUpgradeRequest) Upgrade a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterUpgradeRequest- Upgrade a cluster.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgrade
Cluster upgrade(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgrade clusterUpgradeRequest, com.azure.core.util.Context context) Upgrade a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterUpgradeRequest- Upgrade a cluster.context- The context to associate with this operation.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeManualRollback
Cluster upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest) Manual rollback upgrade for a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterRollbackUpgradeRequest- Manual rollback upgrade for a cluster.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
upgradeManualRollback
Cluster upgradeManualRollback(String resourceGroupName, String clusterPoolName, String clusterName, ClusterUpgradeRollback clusterRollbackUpgradeRequest, com.azure.core.util.Context context) Manual rollback upgrade for a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterRollbackUpgradeRequest- Manual rollback upgrade for a cluster.context- The context to associate with this operation.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resize
Cluster resize(String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest) Resize an existing Cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterResizeRequest- Resize a cluster.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
resize
Cluster resize(String resourceGroupName, String clusterPoolName, String clusterName, ClusterResizeData clusterResizeRequest, com.azure.core.util.Context context) Resize an existing Cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.clusterResizeRequest- Resize a cluster.context- The context to associate with this operation.- Returns:
- the cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<Cluster> getWithResponse(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Gets a HDInsight cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.context- The context to associate with this operation.- Returns:
- a HDInsight cluster along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a HDInsight cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.- Returns:
- a HDInsight cluster.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Deletes a cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listServiceConfigs
com.azure.core.http.rest.PagedIterable<ServiceConfigResult> listServiceConfigs(String resourceGroupName, String clusterPoolName, String clusterName) Lists the config dump of all services running in cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.- Returns:
- cluster instance service configs api response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listServiceConfigs
com.azure.core.http.rest.PagedIterable<ServiceConfigResult> listServiceConfigs(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Lists the config dump of all services running in cluster.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.context- The context to associate with this operation.- Returns:
- cluster instance service configs api response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listInstanceViews
com.azure.core.http.rest.PagedIterable<ClusterInstanceViewResult> listInstanceViews(String resourceGroupName, String clusterPoolName, String clusterName) Lists the lists of instance views.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.- Returns:
- the instance view of a HDInsight Cluster as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listInstanceViews
com.azure.core.http.rest.PagedIterable<ClusterInstanceViewResult> listInstanceViews(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Lists the lists of instance views.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.context- The context to associate with this operation.- Returns:
- the instance view of a HDInsight Cluster as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceViewWithResponse
com.azure.core.http.rest.Response<ClusterInstanceViewResult> getInstanceViewWithResponse(String resourceGroupName, String clusterPoolName, String clusterName, com.azure.core.util.Context context) Gets the status of a cluster instance.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.context- The context to associate with this operation.- Returns:
- the status of a cluster instance along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getInstanceView
ClusterInstanceViewResult getInstanceView(String resourceGroupName, String clusterPoolName, String clusterName) Gets the status of a cluster instance.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.clusterPoolName- The name of the cluster pool.clusterName- The name of the HDInsight cluster.- Returns:
- the status of a cluster instance.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets a HDInsight cluster.- Parameters:
id- the resource ID.- Returns:
- a HDInsight cluster along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Cluster> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a HDInsight cluster.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a HDInsight cluster along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes a cluster.- Parameters:
id- the resource ID.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Deletes a cluster.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new Cluster resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new Cluster definition.
-