/** * Get the JSON, catching any exceptions and returning error text instead * @return */ private String getJson() { return appState.getClusterStatus().toString(); }
/** * Get the JSON, catching any exceptions and returning error text instead * @return */ private String getJson() { return appState.getClusterStatus().toString(); }
private String getInfoAvoidingNulls(String key) { String createTime = appState.getClusterStatus().getInfo(key); return null == createTime ? "N/A" : createTime; }
private String getInfoAvoidingNulls(String key) { String createTime = appState.getClusterStatus().getInfo(key); return null == createTime ? "N/A" : createTime; }
protected String getClusterInfoPropertyValue(String name) { StateAccessForProviders accessor = getAmState(); assert accessor.isApplicationLive(); ClusterDescription description = accessor.getClusterStatus(); return description.getInfo(name); }
protected String getClusterOptionPropertyValue(String name) throws BadConfigException { StateAccessForProviders accessor = getAmState(); assert accessor.isApplicationLive(); ClusterDescription description = accessor.getClusterStatus(); return description.getMandatoryOption(name); }
protected String getClusterInfoPropertyValue(String name) { StateAccessForProviders accessor = getAmState(); assert accessor.isApplicationLive(); ClusterDescription description = accessor.getClusterStatus(); return description.getInfo(name); }
protected String getClusterOptionPropertyValue(String name) throws BadConfigException { StateAccessForProviders accessor = getAmState(); assert accessor.isApplicationLive(); ClusterDescription description = accessor.getClusterStatus(); return description.getMandatoryOption(name); }
ClusterDescription desc = appState.getClusterStatus(); Map<String, String> options = desc.getRole(name); Iterable<Entry<TableContent, String>> tableContent;
ClusterDescription desc = appState.getClusterStatus(); Map<String, String> options = desc.getRole(name); Iterable<Entry<TableContent, String>> tableContent;
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes(); Map<String, Map<String, ClusterNode>> cnMap = new HashMap<String, Map<String, ClusterNode>>();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes(); Map<String, Map<String, ClusterNode>> cnMap = new HashMap<String, Map<String, ClusterNode>>();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
desc.setOption(OptionKeys.ZOOKEEPER_QUORUM, "host1:2181"); desc.setInfo(OptionKeys.APPLICATION_NAME, "HBASE"); expect(access.getClusterStatus()).andReturn(desc).anyTimes();
@VisibleForTesting protected void doIndex(Hamlet html, String providerName) { ClusterDescription clusterStatus = appState.getClusterStatus(); String name = clusterStatus.name; if (name != null && (name.startsWith(" ") || name.endsWith(" "))) {
@VisibleForTesting protected void doIndex(Hamlet html, String providerName) { ClusterDescription clusterStatus = appState.getClusterStatus(); String name = clusterStatus.name; if (name != null && (name.startsWith(" ") || name.endsWith(" "))) {