@Override public void shutdown() { exited.set(true); callback.onExit(0); super.shutdown(); } };
callback.onExit(0);
callback.onExit(exitStatus, exitMsg);
public void destroy() { if (!closed) { closed = true; flush(out, err); close(in, out, err); callback.onExit(0); } }
/** * Informs the SSH server that the shell has exited * * @param exitValue the exit value */ default void onExit(int exitValue) { onExit(exitValue, ""); }
/** * Informs the SSH server that the shell has exited * * @param exitValue the exit value */ default void onExit(int exitValue) { onExit(exitValue, ""); }
@Override public void onExit(int rc, String exitMessage) { exit.onExit(translateExit(rc), exitMessage); log(rc); }
public void destroy() { if (!closed) { closed = true; flush(out, err); close(in, out, err); callback.onExit(0); } }
@Override public void onExit(int rc) { exit.onExit(translateExit(rc)); log(rc); } });
@Override public void onExit(int rc) { exit.onExit(translateExit(rc)); log(rc); } });
@Override public void onExit(int rc, String exitMessage) { exit.onExit(translateExit(rc), exitMessage); log(rc); }
@Override public void close() { exitCallback.onExit(0); }
private void quit(int exitCode) { ec.onExit(exitCode); }
@Override public void start(final Environment env) throws IOException { if (err != null) { err.write("shell not allowed\r\n".getBytes("ISO-8859-1")); err.flush(); } if (callback != null) callback.onExit(-1, "shell not allowed"); }
@Override public void run() { try { consoleSession.doSession(in, out); } catch (StopException s) { // exit normally } catch (Throwable t) { t.printStackTrace(); } cbk.onExit(0); } }, session.getUsername(), session.getAttribute(SshdServer.CREDENTIAL).getValue());
private void quit(int exitCode) { SshContext ctx = THREAD_CONTEXT.get(); if (ctx != null) { ctx.getExitCallback().onExit(exitCode); } }
public void doExit(final int exitValue, final String exitMessage) { doClose(); if (callback != null) { callback.onExit(exitValue, exitMessage); } }
@SuppressWarnings("synthetic-access") @Override public void operationComplete(CloseFuture future) { callback.onExit(0); } });
public void destroy() { if (!closed) { closed = true; flush(out, err); close(in, out, err); callback.onExit(0); } }