/** * Get the decommission node information. * @param statusMap data node status map * @param props string */ private void getDecomNodeInfoForReport( Map<String, Map<String, String>> statusMap, String props) throws IOException, MalformedObjectNameException { getLiveNodeStatus(statusMap, host, getProperty(props, "LiveNodes") .asText()); getDeadNodeStatus(statusMap, host, getProperty(props, "DeadNodes") .asText()); getDecommissionNodeStatus(statusMap, host, getProperty(props, "DecomNodes").asText()); }
/** * Get the decommission node information. * @param statusMap data node status map * @param props string */ private void getDecomNodeInfoForReport( Map<String, Map<String, String>> statusMap, String props) throws IOException, MalformedObjectNameException { getLiveNodeStatus(statusMap, host, getProperty(props, "LiveNodes") .asText()); getDeadNodeStatus(statusMap, host, getProperty(props, "DeadNodes") .asText()); getDecommissionNodeStatus(statusMap, host, getProperty(props, "DecomNodes").asText()); }
/** * Connect to namenode to get decommission node information. * @param statusMap data node status map * @param connector JMXConnector */ private void getDecomNodeInfoForReport( Map<String, Map<String, String>> statusMap) throws IOException, MalformedObjectNameException { getLiveNodeStatus(statusMap, address, mxbeanProxy.getLiveNodes()); getDeadNodeStatus(statusMap, address, mxbeanProxy.getDeadNodes()); getDecommissionNodeStatus(statusMap, address, mxbeanProxy.getDecomNodes()); }