コード例 #1
0
ファイル: SSHServer.java プロジェクト: otonielsilva/tomee
 @Override
 public void stop() throws ServiceException {
   try {
     sshServer.stop();
   } catch (Exception e) {
     // no-op
   }
 }
コード例 #2
0
ファイル: OpalSshServer.java プロジェクト: emorency/opal
 @Override
 public void stop() {
   try {
     isRunning = false;
     sshd.stop(true);
   } catch (InterruptedException e) {
     throw new RuntimeException(e);
   }
 }
コード例 #3
0
  public void stop() {
    if (!isRunning()) {
      return;
    }

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

    sshd = null;
    running = false;
  }
コード例 #4
0
 @Override
 protected void tearDown() throws Exception {
   super.tearDown();
   sshd.stop(true);
   sshd = null;
 }
コード例 #5
0
ファイル: SCPTest.java プロジェクト: akazaSST/testcases
 @After
 public void cleanup() throws Exception {
   if (sshServer != null) {
     sshServer.stop(true);
   }
 }