Examples of disconnect()


Examples of com.jcraft.jsch.Channel.disconnect()

        out.flush();
        if (checkAck(in) != 0) {
          throw new CoreException(SSH_FAILED_STATUS3);
        }
        out.close();
        channel.disconnect();

        // move the jar file to a temp directory
        String jarDir = "/tmp/hadoopjar"
            + new VMID().toString().replace(':', '_');
        command = "mkdir " + jarDir + ";mv " + remoteFile + " " + jarDir;
View Full Code Here

Examples of com.jcraft.jsch.ChannelExec.disconnect()

            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        channel.disconnect();
    }

    private static Session openSession() throws JSchException {
        JSch jsch = new JSch();
        Session session = jsch.getSession("integration",
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.disconnect()

        sftpChannel.connect();

        String applicationPath = System.getProperty("demo.war");
        if (new File(applicationPath).exists()) {
            sftpChannel.put(applicationPath, "demo.war");
            sftpChannel.disconnect();
        } else {
            sftpChannel.disconnect();
            throw new AssertionError("Demo application not found at "
                    + applicationPath);
        }
View Full Code Here

Examples of com.jcraft.jsch.Session.disconnect()

           
            return "SCP: File uploaded successfully.";
        } catch (final Exception e) {
            throw new Exception("SCP: File uploading failed: " + e.getMessage());
        } finally {
            if ((session != null) && (session.isConnected())) session.disconnect();
        }
    }
   
    static int checkAck(final InputStream in) throws IOException{
        final int b=in.read();
View Full Code Here

Examples of com.linkedin.helix.HelixManager.disconnect()

      logger.info("controller:" + controllerName + ", " + Thread.currentThread().getName()
          + " interrupted");
    }
    finally
    {
      manager.disconnect();
      ZKPropertyTransferServer.getInstance().shutdown();
    }

  }
}
View Full Code Here

Examples of com.linkedin.helix.ZkHelixTestManager.disconnect()

    msgPath = PropertyPathConfig.getPath(PropertyType.MESSAGES, clusterName, "localhost_12922");
    result = checkHandlers(controller.getHandlers(), msgPath);
    Assert.assertTrue(result);

    // clean up
    controller.disconnect();
    for (int i = 0; i < nodeNr; i++)
    {
      participants[i].syncStop();
    }
View Full Code Here

Examples of com.linkedin.helix.manager.file.StaticFileHelixManager.disconnect()

    StaticFileHelixManager.verifyFileBasedClusterStates("localhost_8900",
                                       configFile, configFile);

    StaticFileHelixManager controller = new StaticFileHelixManager(clusterName, controllerName,
                                                     InstanceType.CONTROLLER, configFile);
    controller.disconnect();
    AssertJUnit.assertFalse(controller.isConnected());
    controller.connect();
    AssertJUnit.assertTrue(controller.isConnected());

    String sessionId = controller.getSessionId();
View Full Code Here

Examples of com.novell.ldap.LDAPConnection.disconnect()

                configs.put(cn.getStringValue(), config);

            }

            // Disconnect
            ldapConnection.disconnect();
            return configs;

        }
        catch (LDAPException e) {
            throw new GuacamoleServerException("Error while querying for connections.", e);
View Full Code Here

Examples of com.oroinc.net.ftp.FTPClient.disconnect()

        } finally {
            if (ftp != null && ftp.isConnected()) {
                try {
                    log("disconnecting", Project.MSG_VERBOSE);
                    ftp.logout();
                    ftp.disconnect();
                } catch (IOException ex) {
                    // ignore it
                }
            }
        }
View Full Code Here

Examples of com.python.pydev.debug.remote.RemoteDebuggerServer.disconnect()

        instance.stopListening();
        assertFalse(PydevRemoteDebuggerServer.isRunning());

        PydevRemoteDebuggerServer.startServer();
        assertTrue(PydevRemoteDebuggerServer.isRunning());
        instance.disconnect();
        assertFalse(PydevRemoteDebuggerServer.isRunning());

        PydevRemoteDebuggerServer.startServer();
        assertTrue(PydevRemoteDebuggerServer.isRunning());
        instance.dispose();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.