@Beta
public interface HostAdministrationApi
Modifier and Type | Method and Description |
---|---|
boolean |
disable(String hostId)
Prevent the specified host from accepting new instances.
|
boolean |
enable(String hostId)
Allow the specified host to accept new instances.
|
com.google.common.collect.FluentIterable<Host> |
list()
Returns the list of hosts
|
com.google.common.collect.FluentIterable<HostResourceUsage> |
listResourceUsage(String hostId)
Retrieves the physical/usage resource on a specific host
|
boolean |
reboot(String hostId)
Reboot a host.
|
boolean |
shutdown(String hostId)
Shutdown a host.
|
boolean |
startMaintenance(String hostId)
Start host maintenance window.
|
boolean |
startup(String hostId)
Startup a host.
|
boolean |
stopMaintenance(String hostId)
Stop host maintenance window.
|
@Named(value="hostAdmin:list") com.google.common.collect.FluentIterable<Host> list()
@Named(value="hostAdmin:listResourceUsage") com.google.common.collect.FluentIterable<HostResourceUsage> listResourceUsage(String hostId)
@Named(value="hostAdmin:enable") boolean enable(String hostId)
@Named(value="hostAdmin:disable") boolean disable(String hostId)
@Named(value="hostAdmin:startMaintenance") boolean startMaintenance(String hostId)
@Named(value="hostAdmin:stopMaintenance") boolean stopMaintenance(String hostId)
@Named(value="hostAdmin:startup") boolean startup(String hostId)
@Named(value="hostAdmin:shutdown") boolean shutdown(String hostId)
@Named(value="hostAdmin:reboot") boolean reboot(String hostId)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.