Пример #1
0
 private PingResponse getPingResponse() {
   final ClusterState clusterState = contextProvider.clusterState();
   return new PingResponse(
       clusterState.nodes().getLocalNode(), clusterState.nodes().getMasterNode(), clusterState);
 }
Пример #2
0
 private ClusterName getClusterName() {
   return contextProvider.clusterState().getClusterName();
 }