Skip to content

Commit

Permalink
Display node state in RiakTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dv authored and dv committed Sep 18, 2017
1 parent 6f38c86 commit c6d34de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/commonvox/bigdatademos/RiakTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ public static void main(String [] args) throws UnknownHostException {
for (RiakNode node : riakNodes) {
System.out.println("Node address: " + node.getRemoteAddress());
System.out.println("Node port: " + node.getPort());
System.out.println("Node state: " + node.getNodeState().toString());
}
System.out.println("Shutting down client!");
// NOTE: #shutdown may hang indefinitely:
// https://github.com/basho/riak-java-client/issues/706
myNodeClient.shutdown();

}
Expand Down

0 comments on commit c6d34de

Please sign in to comment.