NodeProbe bean = JMXNodeTool.instance(this.config); instanceState.setIsGossipActive(bean.isGossipRunning()); instanceState.setIsNativeTransportActive(bean.isNativeTransportRunning()); instanceState.setIsThriftActive(bean.isThriftServerRunning()); } else {
nodeProbe.isGossipRunning(); result = true; nodeProbe.isNativeTransportRunning(); result = true; nodeProbe.isThriftServerRunning();
@Override public void execute(NodeProbe probe) { System.out.println( probe.isNativeTransportRunning() ? "running" : "not running"); } }
@Override public void execute(NodeProbe probe) { System.out.println( probe.isNativeTransportRunning() ? "running" : "not running"); } }
@Override public void execute(NodeProbe probe) { System.out.println( probe.isNativeTransportRunning() ? "running" : "not running"); } }
@Override public void execute(NodeProbe probe) { System.out.println( probe.isNativeTransportRunning() ? "running" : "not running"); } }
/** * 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; } }
System.out.printf("%-23s: %s%n", "Gossip active", gossipInitialized); System.out.printf("%-23s: %s%n", "Thrift active", probe.isThriftServerRunning()); System.out.printf("%-23s: %s%n", "Native Transport active", probe.isNativeTransportRunning()); System.out.printf("%-23s: %s%n", "Load", probe.getLoadString()); if (gossipInitialized)
System.out.printf("%-23s: %s%n", "Gossip active", gossipInitialized); System.out.printf("%-23s: %s%n", "Thrift active", probe.isThriftServerRunning()); System.out.printf("%-23s: %s%n", "Native Transport active", probe.isNativeTransportRunning()); System.out.printf("%-23s: %s%n", "Load", probe.getLoadString()); if (gossipInitialized)
System.out.printf("%-23s: %s%n", "Gossip active", gossipInitialized); System.out.printf("%-23s: %s%n", "Thrift active", probe.isThriftServerRunning()); System.out.printf("%-23s: %s%n", "Native Transport active", probe.isNativeTransportRunning()); System.out.printf("%-23s: %s%n", "Load", probe.getLoadString()); if (gossipInitialized)
System.out.printf("%-23s: %s%n", "Gossip active", gossipInitialized); System.out.printf("%-23s: %s%n", "Thrift active", probe.isThriftServerRunning()); System.out.printf("%-23s: %s%n", "Native Transport active", probe.isNativeTransportRunning()); System.out.printf("%-23s: %s%n", "Load", probe.getLoadString()); if (gossipInitialized)
private static CassandraStatus getCassandraStatus(final NodeProbe probe) { return CassandraStatus.create( CassandraMode.valueOf( probe.getOperationMode() ), probe.isJoined(), probe.isThriftServerRunning(), probe.isNativeTransportRunning(), probe.isInitialized(), probe.isGossipRunning(), probe.getLocalHostId(), probe.getEndpoint(), probe.getTokens().size(), probe.getDataCenter(), probe.getRack(), probe.getReleaseVersion()); }