public void run() {
boolean reschedule = true;
try {
ClusterAdminClient clusterAdminClient = adminClient.cluster();
ClusterStateResponse state = clusterAdminClient.state(clusterAdminClient.prepareState().request()).actionGet();
if (!state.getState().nodes().getLocalNode().isMasterNode()) {
return;
}