@Override public void run() { try { checkMounts(procFile); } catch (final Exception e) { Halt.halt(-42, new Runnable() { @Override public void run() { log.error("Exception while checking mount points, halting process", e); } }); } } };
@Override public void unableToMonitorLockNode(final Throwable e) { // ACCUMULO-3651 Changed level to error and added FATAL to message for slf4j compatibility Halt.halt(-1, new Runnable() { @Override public void run() { log.error("FATAL: No longer able to monitor master lock node", e); } }); }
private static void addRootLogEntry(ServerContext context, ZooLock zooLock, final LogEntry entry) { retryZooKeeperUpdate(context, zooLock, new ZooOperation() { @Override public void run(IZooReaderWriter rw) throws KeeperException, InterruptedException, IOException { String root = getZookeeperLogLocation(context); rw.putPersistentData(root + "/" + entry.getUniqueID(), entry.toBytes(), NodeExistsPolicy.OVERWRITE); } }); }
public List<BulkImportStatus> getBulkLoadStatus() { return bulkImportStatus.getBulkLoadStatus(); } }
public static SortedMap<Double,Key> findMidPoint(ServerContext context, String tabletDir, Text prevEndRow, Text endRow, Collection<String> mapFiles, double minSplit) throws IOException { return findMidPoint(context, tabletDir, prevEndRow, endRow, mapFiles, minSplit, true); }
public static void main(String[] args) throws Exception { new ConvertConfig().execute(args); } }
public static void main(String[] args) throws Exception { new LoginProperties().execute(args); } }
public static void main(String[] args) throws Exception { new ZooKeeperMain().execute(args); }
public static Iterator<LogEntry> getLogEntries(ServerContext context) throws IOException, KeeperException, InterruptedException { return new LogEntryIterator(context); }
public static void halt(final String msg, int status) { halt(status, new Runnable() { @Override public void run() { log.error("FATAL {}", msg); } }); }
@Override public void unableToMonitorLockNode(final Throwable e) { Halt.halt(1, new Runnable() { @Override public void run() { log.error("Lost ability to monitor tablet server lock, exiting.", e); } }); } };
@Override public void unableToMonitorLockNode(final Throwable e) { Halt.halt(-1, new Runnable() { @Override public void run() { log.error("No longer able to monitor Monitor lock node", e); } }); }
public static void halt(final String msg) { // ACCUMULO-3651 Changed level to error and added FATAL to message for slf4j compatibility halt(0, new Runnable() { @Override public void run() { log.error("FATAL {}", msg); } }); }
@Override public void lostLock(final LockLossReason reason) { Halt.halt(serverStopRequested ? 0 : 1, new Runnable() { @Override public void run() { if (!serverStopRequested) log.error("Lost tablet server lock (reason = {}), exiting.", reason); gcLogger.logGCInfo(getConfiguration()); } }); }
@Override public void unableToMonitorLockNode(final Throwable e) { // ACCUMULO-3651 Level changed to error and FATAL added to message for slf4j compatibility Halt.halt(-1, new Runnable() { @Override public void run() { log.error("FATAL: No longer able to monitor lock node ", e); } }); } };
@Override public void lostLock(LockLossReason reason) { Halt.halt("Monitor lock in zookeeper lost (reason = " + reason + "), exiting!", -1); }
@Override public void lostLock(LockLossReason reason) { Halt.halt("GC lock in zookeeper lost (reason = " + reason + "), exiting!", 1); }