/*
* If master, start a transaction as a way of ascertaining whether
* all nodes are up. Since the ReplicaAckPolicy is ALL, the
* transaction will only begin when all the nodes are available.
*/
Transaction txn = repEnv.beginTransaction(null, null);
txn.abort();
/* Invoke the group shutdown API. */
repEnv.shutdownGroup(timeout, TimeUnit.SECONDS);
} else if (repEnv.getState().isReplica()) {