VirtualMachinesClient Interface

public interface VirtualMachinesClient

An instance of this class provides access to all the operations defined in VirtualMachinesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<Void>,Void> beginRestartHosts(String resourceGroupName, String clusterName, List<String> hosts)

Restarts the specified HDInsight cluster hosts.

abstract SyncPoller<PollResult<Void>,Void> beginRestartHosts(String resourceGroupName, String clusterName, List<String> hosts, Context context)

Restarts the specified HDInsight cluster hosts.

abstract AsyncOperationResultInner getAsyncOperationStatus(String resourceGroupName, String clusterName, String operationId)

Gets the async operation status.

abstract Response<AsyncOperationResultInner> getAsyncOperationStatusWithResponse(String resourceGroupName, String clusterName, String operationId, Context context)

Gets the async operation status.

abstract List<HostInfoInner> listHosts(String resourceGroupName, String clusterName)

Lists the HDInsight clusters hosts.

abstract Response<List<HostInfoInner>> listHostsWithResponse(String resourceGroupName, String clusterName, Context context)

Lists the HDInsight clusters hosts.

abstract void restartHosts(String resourceGroupName, String clusterName, List<String> hosts)

Restarts the specified HDInsight cluster hosts.

abstract void restartHosts(String resourceGroupName, String clusterName, List<String> hosts, Context context)

Restarts the specified HDInsight cluster hosts.

Method Details

beginRestartHosts

public abstract SyncPoller<>,Void> beginRestartHosts(String resourceGroupName, String clusterName, List hosts)

Restarts the specified HDInsight cluster hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
hosts - The list of hosts to restart.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRestartHosts

public abstract SyncPoller<>,Void> beginRestartHosts(String resourceGroupName, String clusterName, List hosts, Context context)

Restarts the specified HDInsight cluster hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
hosts - The list of hosts to restart.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

getAsyncOperationStatus

public abstract AsyncOperationResultInner getAsyncOperationStatus(String resourceGroupName, String clusterName, String operationId)

Gets the async operation status.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
operationId - The long running operation id.

Returns:

the async operation status.

getAsyncOperationStatusWithResponse

public abstract Response getAsyncOperationStatusWithResponse(String resourceGroupName, String clusterName, String operationId, Context context)

Gets the async operation status.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
operationId - The long running operation id.
context - The context to associate with this operation.

Returns:

the async operation status along with Response<T>.

listHosts

public abstract List listHosts(String resourceGroupName, String clusterName)

Lists the HDInsight clusters hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.

Returns:

result of the request to list cluster hosts.

listHostsWithResponse

public abstract Response<>> listHostsWithResponse(String resourceGroupName, String clusterName, Context context)

Lists the HDInsight clusters hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
context - The context to associate with this operation.

Returns:

result of the request to list cluster hosts along with Response<T>.

restartHosts

public abstract void restartHosts(String resourceGroupName, String clusterName, List hosts)

Restarts the specified HDInsight cluster hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
hosts - The list of hosts to restart.

restartHosts

public abstract void restartHosts(String resourceGroupName, String clusterName, List hosts, Context context)

Restarts the specified HDInsight cluster hosts.

Parameters:

resourceGroupName - The name of the resource group.
clusterName - The name of the cluster.
hosts - The list of hosts to restart.
context - The context to associate with this operation.

Applies to