}
private static int ping(Instance instance, String principal, AuthenticationToken token, List<String> args) throws AccumuloException,
AccumuloSecurityException {
InstanceOperations io = instance.getConnector(principal, token).instanceOperations();
if (args.size() == 0) {
args = io.getTabletServers();
}
int unreachable = 0;
for (String tserver : args) {
try {
io.ping(tserver);
System.out.println(tserver + " OK");
} catch (AccumuloException ae) {
System.out.println(tserver + " FAILED (" + ae.getMessage() + ")");
unreachable++;
}