Examples of disconnect()


Examples of net.sf.katta.protocol.InteractionProtocol.disconnect()

    @Override
    public final void execute(ZkConfiguration zkConf) throws Exception {
      ZkClient zkClient = new ZkClient(zkConf.getZKServers());
      InteractionProtocol protocol = new InteractionProtocol(zkClient, zkConf);
      execute(zkConf, protocol);
      protocol.disconnect();
    }

    protected abstract void execute(ZkConfiguration zkConf, InteractionProtocol protocol) throws Exception;
  }
View Full Code Here

Examples of net.wimpi.modbus.facade.ModbusSerialMaster.disconnect()

          } catch (ModbusException ex) {
            System.out.println("Error writing coils: " + result);
          }
        } else {
          System.out.println("Outputs: null");
          msm.disconnect();
          System.exit(-1);
        }


        BitVector digInp = msm.readInputDiscretes(slaveId, 0, 8);
View Full Code Here

Examples of net.wimpi.modbusme.facade.ModbusSerialMaster.disconnect()

          } catch (ModbusException ex) {
            System.out.println("Error writing coils: " + result);
          }
        } else {
          System.out.println("Outputs: null");
          msm.disconnect();
          System.exit(-1);
        }


        BitVector digInp = msm.readInputDiscretes(slaveId, 0, 8);
View Full Code Here

Examples of net.windwards.dnsfrontend.client.Client.disconnect()

                "  \"name\": \"foo\" }");

        Assert.assertEquals(1, latch.getCount());
        Assert.assertTrue(latch.await(200, TimeUnit.MILLISECONDS));

        client.disconnect();
        server.shutdown();
    }

    @Test
    public void sendUpdate() throws Exception {
View Full Code Here

Examples of netscape.ldap.LDAPConnection.disconnect()

      for (i = 0; results.hasMoreElements(); i++) {
    shove(hr.request.props, name + i + ".", results.next(), attrs);
    sb.append(i).append(' ');
      }

      ld.disconnect();
  } catch (LDAPException e) {
      hr.request.props.put(name + "error", e.errorCodeToString());
      hr.request.props.put(name + "errorCode", "" +e.getLDAPResultCode());
      System.out.println("LDAP error: " + e);
  } finally {
View Full Code Here

Examples of ooo.connector.BootstrapSocketConnector.disconnect()

        // Convert text document to PDF
        convert(loadUrl, storeUrl, remoteContext);

        // Disconnect and terminate OOo server
        bootstrapSocketConnector.disconnect();
    }

    protected static void convert(String loadUrl, String storeUrl, XComponentContext remoteContext) throws IllegalArgumentException, IOException, Exception {

        XComponentLoader xcomponentloader = getComponentLoader(remoteContext);
View Full Code Here

Examples of org.apache.activemq.transport.stomp.StompConnection.disconnect()

        // Need to let the transport have enough time to dispatch the incoming messages from
        // the socket before we break the connection.
        TimeUnit.SECONDS.sleep(5);

        connection.disconnect();

        // wait for poll to finish
        poll.waitForDone();
        String response = poll.getResponseContent();
View Full Code Here

Examples of org.apache.axis2.transport.EmailReceiver.disconnect()

                }
                msg.setFlag(Flags.Flag.DELETED, true);
            }

        }
        receiver.disconnect();

    }
}
View Full Code Here

Examples of org.apache.camel.component.http.CamelServlet.disconnect()

    public void disconnect(HttpConsumer consumer) throws Exception {
        ServletEndpoint endpoint = (ServletEndpoint) consumer.getEndpoint();
        CamelServlet servlet = getCamelServlet(endpoint.getServletName());
        ObjectHelper.notNull(servlet, "CamelServlet");
        servlet.disconnect(consumer);
    }

}
View Full Code Here

Examples of org.apache.catalina.startup.SimpleHttpClient.disconnect()

        for (int i = 0; i < 10; i++) {
            System.out.println(client.readLine());
        }

        client.disconnect();

        // Wait for server thread to stop
        while (servlet.getThread().isAlive()) {
            Thread.sleep(250);
        }
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.