Examples of disconnect()


Examples of org.enhydra.shark.api.client.wfservice.ExecutionAdministration.disconnect()

        try {
            //exAdmin.connect(adminUser.getString("userLoginId"), SharkContainer.adminPass, null, null);
            exAdmin.connect(adminUser.getString("userLoginId"), adminUser.getString("currentPassword"), null, null);
            // this won't work with encrypted passwords: exAdmin.connect(adminUser.getString("userLoginId"), adminUser.getString("currentPassword"), null, null);
            exAdmin.reevaluateAssignments();
            exAdmin.disconnect();
        } catch (ConnectFailed e) {
            String errMsg = "Shark Connection error (if it is a password wrong error, check the admin-pass property in the container config file, probably ofbiz-containers.xml): " + e.toString();
            throw new ContainerException(errMsg, e);
        } catch (NotConnected e) {
            throw new ContainerException(e);
View Full Code Here

Examples of org.enhydra.shark.api.internal.toolagent.ToolAgent.disconnect()

                                       shandle.getHandle(),
                                       procId,
                                       assId,
                                       aprs);
         if (appStatus==APP_STATUS_INVALID) {
            ta.disconnect(transaction,shandle);
            throw new Exception("Tool agent status is invalid!");
         }
         ta.disconnect(transaction,shandle);

         AppParameter[] returnValues=aprs;
View Full Code Here

Examples of org.exist.soap.Admin.disconnect()

   
    String data = query.getResource(session,
        XmldbURI.ROOT_COLLECTION + "/test/notes.xml",
      true, true);
    System.out.println(data);
    admin.disconnect(session);
    }
}
View Full Code Here

Examples of org.exist.soap.Query.disconnect()

       
    byte[] data = query.getResourceData(session,
        XmldbURI.ROOT_COLLECTION + "/shakespeare/plays/hamlet.xml",
      true, false, false);
    System.out.println(new String(data, "UTF-8"));
    query.disconnect(session);
    }
}
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.replication.ReplicationChannelManager.disconnect()

      try
      {
         ReplicationChannelManager channelManager = dataTransmitter.getChannelManager();
         channelManager.setAllowConnect(false);
         channelManager.disconnect();

         channelManager.connect();

         sb.append("ok");
      }
View Full Code Here

Examples of org.expath.httpclient.HttpConnection.disconnect()

            try {
                conn = new ApacheHttpConnection(uri);
                final EXistResult firstResult = new EXistResult(context);
                final HttpResponse response = request.send(firstResult, conn, null);
                if(response.getStatus() == 401) {
                    conn.disconnect();
                    result = sendOnceWithAuth(uri, request, parser.getCredentials());
                } else {
                    result = firstResult;
                    registerConnectionWithContext(conn);
                }
View Full Code Here

Examples of org.freedesktop.dbus.DBusConnection.disconnect()

      finally
      {
         if (client != null)
         {
            System.out.println("disconnecting client");
            client.disconnect();
         }
      }

   }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Connector.disconnect()

      // TODO: create a new container, start it and check if state is started, delete container
      fabric8.startContainer(container);
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
  }

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

Examples of org.fusesource.mqtt.client.BlockingConnection.disconnect()

            String payload = "Test Message: " + i;
            connection.publish("foo", payload.getBytes(), QoS.AT_MOST_ONCE, false);
            Message message = connection.receive();
            assertEquals(payload, new String(message.getPayload()));
        }
        connection.disconnect();
    }

    @Test
    public void testSendAndReceiveAtLeastOnce() throws Exception {
        addMQTTConnector(brokerService);
View Full Code Here

Examples of org.fusesource.mqtt.client.FutureConnection.disconnect()

        queue.add(connection.publish(topic, new AsciiBuffer("SHUTDOWN"), QoS.AT_LEAST_ONCE, false));
        while( !queue.isEmpty() ) {
            queue.removeFirst().await();
        }

        connection.disconnect().await();

        System.exit(0);
    }

    private static String env(String key, String defaultValue) {
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.