/** * Get the information if the native transport is active on the node. Get the information about node such as which * protocols are active, uptime, and exception count. * * @return NodeInfo for the node */ @Override public NodeInfo getNodeInfo() { NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(), this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(), this.nodeProbe.getExceptionCount()); return nodeInfo; }
/** * Get the information if the native transport is active on the node. Get the information about node such as which * protocols are active, uptime, and exception count. * * @return NodeInfo for the node */ @Override public NodeInfo getNodeInfo() { NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(), this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(), this.nodeProbe.getExceptionCount()); return nodeInfo; }
/** * Get the information if the native transport is active on the node. Get the information about node such as which * protocols are active, uptime, and exception count. * * @return NodeInfo for the node */ @Override public NodeInfo getNodeInfo() { NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(), this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(), this.nodeProbe.getExceptionCount()); return nodeInfo; } }
/** * Get the information if the native transport is active on the node. Get the information about node such as which * protocols are active, uptime, and exception count. * * @return NodeInfo for the node */ @Override public NodeInfo getNodeInfo() { NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(), this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(), this.nodeProbe.getExceptionCount()); return nodeInfo; } }
long secondsUp = probe.getUptime() / 1000; System.out.printf("%-23s: %d%n", "Uptime (seconds)", secondsUp);
long secondsUp = probe.getUptime() / 1000; System.out.printf("%-23s: %d%n", "Uptime (seconds)", secondsUp);
long secondsUp = probe.getUptime() / 1000; System.out.printf("%-23s: %d%n", "Uptime (seconds)", secondsUp);
long secondsUp = probe.getUptime() / 1000; System.out.printf("%-23s: %d%n", "Uptime (seconds)", secondsUp);