예제 #1
0
 @Override
 public void stop() throws ServiceException {
   try {
     sshServer.stop();
   } catch (Exception e) {
     // no-op
   }
 }
예제 #2
0
 @Override
 public void stop() {
   try {
     isRunning = false;
     sshd.stop(true);
   } catch (InterruptedException e) {
     throw new RuntimeException(e);
   }
 }
  public void stop() {
    if (!isRunning()) {
      return;
    }

    try {
      sshd.stop(true);
    } catch (InterruptedException e) {
      // ignore
    }

    sshd = null;
    running = false;
  }
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   sshd.stop(true);
   sshd = null;
 }
예제 #5
0
 @After
 public void cleanup() throws Exception {
   if (sshServer != null) {
     sshServer.stop(true);
   }
 }