com.cloudera.api.v2
Interface HostsResourceV2

All Superinterfaces:
HostsResource
All Known Subinterfaces:
HostsResourceV10, HostsResourceV11

public interface HostsResourceV2
extends HostsResource


Method Summary
 ApiCommand enterMaintenanceMode(String hostId)
          Put the host into maintenance mode.
 ApiCommand exitMaintenanceMode(String hostId)
          Take the host out of maintenance mode.
 
Methods inherited from interface com.cloudera.api.v1.HostsResource
createHosts, deleteAllHosts, deleteHost, getMetrics, readHost, readHostConfig, readHosts, updateHost, updateHostConfig
 

Method Detail

enterMaintenanceMode

@Path(value="/{hostId}/commands/enterMaintenanceMode")
ApiCommand enterMaintenanceMode(String hostId)
Put the host into maintenance mode. This is a synchronous command. The result is known immediately upon return.

Available since API v2.

Parameters:
hostId - The ID of the host
Returns:
Synchronous command result.

exitMaintenanceMode

@Path(value="/{hostId}/commands/exitMaintenanceMode")
ApiCommand exitMaintenanceMode(String hostId)
Take the host out of maintenance mode. This is a synchronous command. The result is known immediately upon return.

Available since API v2.

Parameters:
hostId - The ID of the host
Returns:
Synchronous command result.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.