final public void run() { int exitStatus = OK; String exitMsg = null; // try { execute(); } catch (Exception e) { log.log(Level.SEVERE, "Error during command execution", e); exitMsg = e.getMessage(); exitStatus = ERROR; } finally { // Say we are done if (callback != null) { callback.onExit(exitStatus, exitMsg); } } }
final public void run() { int exitStatus = OK; String exitMsg = null; // try { execute(); } catch (Exception e) { log.log(Level.SEVERE, "Error during command execution", e); exitMsg = e.getMessage(); exitStatus = ERROR; } finally { // Say we are done if (callback != null) { callback.onExit(exitStatus, exitMsg); } } }
final public void run() { int exitStatus = OK; String exitMsg = null; // try { execute(); } catch (Exception e) { log.log(Level.SEVERE, "Error during command execution", e); exitMsg = e.getMessage(); exitStatus = ERROR; } finally { // Say we are done if (callback != null) { callback.onExit(exitStatus, exitMsg); } } }
execute(session, path);
execute(session, path);
execute(session, path);