Examples of disconnect()


Examples of com.almende.eve.transport.xmpp.XmppService.disconnect()

 
  public void xmppDisconnect() throws Exception {
    AgentFactory factory = getAgentFactory();
    XmppService service = (XmppService) factory.getTransportService("xmpp");
    if (service != null) {
      service.disconnect(getId());
    }
    else {
      throw new Exception("No XMPP service registered");
    }
  }
View Full Code Here

Examples of com.alphacsp.cit.exec.InteractiveProcess.disconnect()

            }
        } catch (InterruptedException e) {
            LOG.info("InterruptedException!, killing the process", e);
            interactiveProcess.destroy();
        } finally {
            interactiveProcess.disconnect();
        }
    }
}
View Full Code Here

Examples of com.alu.e3.installer.command.SSHCommand.disconnect()

        }
      }
    }
   
    // We're done - disconnect and return number of bytes copied
    sshCommand.disconnect();
    if(logger.isDebugEnabled()) {
      logger.debug("connected/disconnected!");
    }
    return bytesCollected;
  }
View Full Code Here

Examples of com.aphyr.riemann.client.RiemannClient.disconnect()

        assertEquals(true, client.sendEventsWithAck(e));
        assertEquals(e, Util.soleEvent(server.received.poll()));
      }
    } finally {
      if (client != null) {
        client.disconnect();
      }
      server.stop();
    }
  }
View Full Code Here

Examples of com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection.disconnect()

                }
            }
        }
        catch (com.artofsolving.jodconverter.openoffice.connection.OpenOfficeException e)
        {
          connection.disconnect();
          System.err.println("ERROR: conversion failed.");
          System.exit(EXIT_CODE_CONVERSION_FAILED);
        }
        finally {
            if (verbose) {
View Full Code Here

Examples of com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection.disconnect()

            }
        } finally {
            if (verbose) {
                System.out.println("-- disconnecting");
            }
            connection.disconnect();
        }
    }

    private static void convertOne(DocumentConverter converter, File inputFile, File outputFile, boolean verbose) {
        if (verbose) {
View Full Code Here

Examples of com.chenshuo.muduo.example.multiplexer.MockClient.disconnect()

        assertEquals(EventSource.kClient, de.source);
        assertEquals(connId, de.whichClient);
        assertEquals(buf, de.data);

        // step 4
        client.disconnect();
        de = (DataEvent) queue.take();
        assertEquals(EventSource.kBackend, de.source);
        m = god.commandChannel.matcher(de.getString());
        if (!m.matches())
            fail("command channel message doesn't match.");
View Full Code Here

Examples of com.chenshuo.muduo.protorpc.RpcChannel.disconnect()

        //sendRequest(channel, client);
        SudokuService.BlockingInterface remoteService = SudokuProto.SudokuService.newBlockingStub(channel);
        SudokuRequest request = SudokuRequest.newBuilder().setCheckerboard("001010").build();
        SudokuResponse response = remoteService.solve(null, request);
        System.out.println(response);
        channel.disconnect();
        client.stop();
    }

    @SuppressWarnings("unused")
    private static void asyncConnect(InetSocketAddress addr) {
View Full Code Here

Examples of com.cloud.utils.cisco.n1kv.vsm.NetconfHelper.disconnect()

        s_logger.error(msg);
        throw new CloudRuntimeException(msg);
      }

      // Disconnect from the VSM. A VSM has a default of 8 maximum parallel connections that it allows.
      netconfClient.disconnect();

      // Now, go ahead and associate the cluster with this VSM.
      // First, check if VSM already exists in the table "virtual_supervisor_module".
      // If it's not there already, create it.
      // If it's there already, return success.
View Full Code Here

Examples of com.codeminders.ardrone.ARDrone.disconnect()

            // Give it some time to land
            Thread.sleep(2000);
           
            // Disconnect from the done
            drone.disconnect();

        } catch(Throwable e)
        {
            e.printStackTrace();
        }
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.