@InterfaceAudience.Private @Path(value="admin/cluster_metrics") @Produces(value="application/json") public class ClusterMetricsResource extends Object
ClusterMetrics.| Modifier and Type | Field and Description |
|---|---|
(package private) Connection |
connection |
| Constructor and Description |
|---|
ClusterMetricsResource(MasterServices master) |
| Modifier and Type | Method and Description |
|---|---|
private ClusterMetrics |
get(EnumSet<ClusterMetrics.Option> fields) |
ClusterMetrics |
getBaseMetrics() |
List<ServerName> |
getDeadServers() |
Collection<ServerMetrics> |
getLiveServers() |
final Connection connection
@Inject public ClusterMetricsResource(MasterServices master) throws IOException
IOExceptionprivate ClusterMetrics get(EnumSet<ClusterMetrics.Option> fields) throws IOException
IOException@GET @Path(value="/") public ClusterMetrics getBaseMetrics() throws IOException
IOException@GET @Path(value="/live_servers") public Collection<ServerMetrics> getLiveServers() throws IOException
IOException@GET @Path(value="/dead_servers") public List<ServerName> getDeadServers() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.