Examples of disconnect()


Examples of org.jivesoftware.smack.XMPPConnection.disconnect()

                // handle this how?
            }
        }


        connection.disconnect();

        manager.completeWorkItem(workItem.getId(), null);

        
    }
View Full Code Here

Examples of org.jmule.core.jkad.InternalJKadManager.disconnect()

      tagList.addTag(new IntTag(JKadConstants.TAG_SOURCEIP, Convert.byteToInt(_jkad_manager.getIPAddress().getAddress())));
      try {
        tagList.addTag(new ShortTag(JKadConstants.TAG_SOURCEPORT, Convert.intToShort(config_manager.getTCP())));
      } catch (ConfigurationManagerException e) {
        e.printStackTrace();
        _jkad_manager.disconnect();
      }
      try {
        tagList.addTag(new ShortTag(JKadConstants.TAG_SOURCEUPORT, Convert.intToShort(config_manager.getUDP())));
      } catch (ConfigurationManagerException e) {
        e.printStackTrace();
View Full Code Here

Examples of org.jmule.core.jkad.JKadManager.disconnect()

   
    NetworkManagerSingleton.getInstance().shutdown();
   
    JKadManager jkad = getJKadManager();
    if (!jkad.isDisconnected())
      jkad.disconnect();
   
    SearchManager search_manager = SearchManagerSingleton.getInstance();
   
    search_manager.shutdown();
   
View Full Code Here

Examples of org.jpos.iso.ISOChannel.disconnect()

        current = null;
        LogEvent evt = new LogEvent (this, "disconnect");
        for (Object aPool : pool) {
            try {
                ISOChannel c = (ISOChannel) aPool;
                c.disconnect();
            } catch (IOException e) {
                evt.addMessage(e);
            }
        }
        Logger.log (evt);
View Full Code Here

Examples of org.jpos.iso.channel.CSChannel.disconnect()

    @Test
    public void testDisconnect1() throws Throwable {
        ServerSocket sock = new ServerSocket();
        BaseChannel cSChannel = new CSChannel(new PostPackager());
        cSChannel.setServerSocket(sock);
        cSChannel.disconnect();
        assertSame("(CSChannel) cSChannel.serverSocket", sock, ((CSChannel) cSChannel).serverSocket);
        assertNull("(CSChannel) cSChannel.getSocket()", cSChannel.getSocket());
        assertFalse("(CSChannel) cSChannel.usable", ((CSChannel) cSChannel).usable);
    }
View Full Code Here

Examples of org.jpos.iso.channel.RawChannel.disconnect()

    }

    @Test
    public void testDisconnect() throws Throwable {
        BaseChannel rawChannel = new RawChannel();
        rawChannel.disconnect();
        assertNull("(RawChannel) rawChannel.getSocket()", rawChannel.getSocket());
        assertFalse("(RawChannel) rawChannel.usable", ((RawChannel) rawChannel).usable);
    }

    @Test
View Full Code Here

Examples of org.jpox.store.query.QueryResult.disconnect()

                                public void managedConnectionPreClose(){}
                                public void managedConnectionPostClose(){}
                                public void managedConnectionFlushed()
                                {
                                    // Disconnect the query from this ManagedConnection (read in unread rows etc)
                                    qr1.disconnect();
                                }
                                public void resourcePostClose()
                                {
                                    mconn1.removeListener(this);
                                }
View Full Code Here

Examples of org.kie.remote.common.rest.KieRemoteHttpRequest.disconnect()

            logger.debug("Sending POST request with " + command.getClass().getSimpleName() + " to " + httpRequest.getUri());
            httpRequest.contentType(MediaType.APPLICATION_XML).body(jaxbRequestString);
            httpRequest.post();
            httpResponse = httpRequest.response();
        } catch( Exception e ) {
            httpRequest.disconnect();
            throw new RemoteCommunicationException("Unable to post request: " + e.getMessage(), e);
        }

        // Get response
        JaxbExceptionResponse exceptionResponse = null;
View Full Code Here

Examples of org.knopflerfish.service.remotefw.RemoteFramework.disconnect()

      displayers.clear();

      if(remoteBC != null) {
        RemoteFramework rc = (RemoteFramework)remoteTracker.getService();
        if(rc != null) {
          rc.disconnect(remoteBC);
        }
        remoteBC = null;
      }

    } catch (Exception e) {
View Full Code Here

Examples of org.lilyproject.util.jmx.JmxLiaison.disconnect()

        } else {
            JmxLiaison jmxLiaison = new JmxLiaison();
            jmxLiaison.connect(false);
            jmxLiaison.invoke(new ObjectName("LilyHBaseProxy:name=ReplicationPeer"), "waitOnReplicationPeerReady",
                    peerId);
            jmxLiaison.disconnect();
        }
    }

    /**
     * After removing a replication peer, this waits for the replication source in the region server to be stopped,
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.