MCPcopy Create free account
hub / github.com/GerritCodeReview/gerrit / onExit

Method onExit

java/com/google/gerrit/sshd/BaseCommand.java:339–344  ·  view source on GitHub ↗

Terminate this command and return a result code to the remote client. Commands should invoke this at most once. Once invoked, the command may lose access to request based resources as any callbacks previously registered with RequestCleanup will fire. @param rc exit code for the remote c

(int rc)

Source from the content-addressed store, hash-verified

337 * @param rc exit code for the remote client.
338 */
339 protected void onExit(int rc) {
340 exit.onExit(rc);
341 if (cleanup != null) {
342 cleanup.run();
343 }
344 }
345
346 /** Wrap the supplied output stream in a UTF-8 encoded PrintWriter. */
347 protected static PrintWriter toPrintWriter(OutputStream o) {

Callers 2

cancelMethod · 0.45
runMethod · 0.45

Calls 1

runMethod · 0.65

Tested by

no test coverage detected