Examples of disconnect()


Examples of de.mud.telnet.TelnetWrapper.disconnect()

      System.out.println("TelnetClient: Got exception in read/write loop: " + e);
      e.printStackTrace();
      return;
    } finally {
      try {
        telnetWrapper.disconnect();
      } catch (IOException e) {
        System.out.println("TelnetClient: got exception in disconnect: " + e);
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of de.tuclausthal.informatik.winf.mobileagents.p2p.P2PNetwork.disconnect()

  public void disconnect()
  {
    for (int i = 0; i < this.networks.size(); i++)
    {
      P2PNetwork network = (P2PNetwork)this.networks.get(i);
      network.disconnect();
    }
  }

  /**
   * <p>Searches all registered <code>P2PNetworks</code>
View Full Code Here

Examples of developer.FTP.disconnect()

      }
     
      System.out.println("ftp connected to: " + host);
     
      try {
        ftp.disconnect();
      } catch (IOException e) {
        fail("disconnect fail: " + e.getMessage());
      }
     
      System.out.println("ftp disconnected");
View Full Code Here

Examples of domain.Repo.disconnect()

    if (tickets.size() > 0) {
      // Create a Repo object and merge the avail tickets.
      Repo repo = new Repo(args[1]);
      repo.connect();
      repo.mergeTickets(tickets);
      repo.disconnect();     
    } else {
      System.out.println("Error: No tickets found, aborting...");
      System.exit(1);
    }
  }
View Full Code Here

Examples of edu.mit.blocks.codeblocks.BlockLink.disconnect()

                    BlockConnector plug = BlockLinkChecker.getPlugEquivalent(block);
                    if (plug != null && plug.hasBlock()) {
                        Block parent = workspace.getEnv().getBlock(plug.getBlockID());
                        BlockConnector socket = parent.getConnectorTo(blockID);
                        BlockLink link = BlockLink.getBlockLink(workspace, block, parent, plug, socket);
                        link.disconnect();
                        //socket is removed internally from block's socket list if socket is expandable
                        workspace.getEnv().getRenderableBlock(parent.getBlockID()).blockDisconnected(socket);

                        //NOTIFY WORKSPACE LISTENERS OF DISCONNECTION
                        workspace.notifyListeners(new WorkspaceEvent(workspace, widget, link, WorkspaceEvent.BLOCKS_DISCONNECTED));
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.disconnect()

  public long getPendingInvoicesCount() throws DmsException, ClassNotFoundException, NullPointerException, IllegalStateException, SQLException, IOException {
    HashMap<String,Object> oCounters = Cache.getEntryMap(id()+"TaxPayerCounters");
    if (null==oCounters) {
      AtrilSession oSes = DAO.getAdminSession("TaxPayer");
        oCounters = refreshCounters(oSes);
        oSes.disconnect();
        oSes.close();
    }
    return ((BigDecimal) oCounters.get("pending_invoices")).longValue();
  }
View Full Code Here

Examples of eu.pursuit.client.BlackAdderClient.disconnect()

      for (int i = 0; i < TIMES; i++) {
        System.out.println("apcket "+i);
        client.publishData(event.getId(), payload, Strategy.NODE, null);
      }           
    }
    client.disconnect();
  }

}
View Full Code Here

Examples of htsjdk.samtools.util.ftp.FTPClient.disconnect()

        } catch (Exception e) {
            return -1 ;
        }
        finally {
            if(ftp != null) {
                ftp.disconnect();
            }
        }

    }
View Full Code Here

Examples of hudson.model.Computer.disconnect()

     * Removes a {@link Node} from Hudson.
     */
    public synchronized void removeNode(Node n) throws IOException {
        Computer c = n.toComputer();
        if (c!=null)
            c.disconnect(OfflineCause.create(Messages._Hudson_NodeBeingRemoved()));

        ArrayList<Node> nl = new ArrayList<Node>(this.slaves);
        nl.remove(n);
        setNodes(nl);
    }
View Full Code Here

Examples of hudson.slaves.SlaveComputer.disconnect()

                if (c!=null && c.equals(ch.getProperty(COOKIE_NAME))) {
                    // we think we are currently connected, but this request proves that it's from the party
                    // we are supposed to be communicating to. so let the current one get disconnected
                    LOGGER.info("Disconnecting "+nodeName+" as we are reconnected from the current peer");
                    try {
                        computer.disconnect(new ConnectionFromCurrentPeer()).get(15, TimeUnit.SECONDS);
                    } catch (ExecutionException e) {
                        throw new IOException2("Failed to disconnect the current client",e);
                    } catch (TimeoutException e) {
                        throw new IOException2("Failed to disconnect the current client",e);
                    }
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.