/** * <p>main</p> * * @param argv an array of {@link java.lang.String} objects. * @throws java.lang.Exception if any. */ public static void main(final String[] argv) throws Exception { final DatabaseChecker checker = new DatabaseChecker(); checker.check(); } }
/** * <p>main</p> * * @param argv an array of {@link java.lang.String} objects. * @throws java.lang.Exception if any. */ public static void main(final String[] argv) throws Exception { final DatabaseChecker checker = new DatabaseChecker(); checker.check(); } }
/** * <p>check</p> * * @return a int. */ public int check() { try { new DatabaseChecker().check(); } catch (final Throwable t) { LogUtils.errorf(this, t, "error invoking check command"); return 1; } return 0; }
/** * <p>check</p> * * @return a int. */ public int check() { try { new DatabaseChecker().check(); } catch (final Throwable t) { String message = "error invoking \"check\" operation: " + t.getMessage(); LOG.error(message, t); System.err.println(message); return 1; } return 0; }