Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of Communication.Interfaces.Connection

        mainWindow.setEventHandler(satedaHandler);
         
        int index = -1;
        for(ChatProvider type : settings.connectionType){
          index++;
          Connection connection = null;
         
          if(type.equals(ChatProvider.ICQ)){
            connection = new ICQSimulation(settings.loginName.get(index),
                settings.loginPassword.get(index), satedaHandler, ChatProvider.ICQ);
          }else if(type.equals(ChatProvider.MSN)){
    View Full Code Here

    Examples of LONI.tree.workflow.Connection

            if(c.getSource().equals(id))
              isConnected = true;
          }
          //If the output is not connected to any other modules.
          if(isConnected == false){
            Connection runConn; //connection to the run module
           
            //Create a new parameter for the runmodule that is connected
            //to the connectionless output.
            LONI.tree.module.Parameter runInput = new LONI.tree.module.Parameter();
            runInput.setId(runContext.getPathContext().getAbsoluteContext("conn"+conncount));
            runInput.setFileFormat(new Format());
            runInput.getFormat().setCardinality(1);
            runInput.getFormat().setType("File");
            runFileType = new FileType();
            runFileType.setName(GENERIC_DICT_TYPE);
            runFileType.setDescription("");
            runFileType.setExtension("");
            runInput.getFormat().getFileTypes().addFileType(runFileType);
            runInput.setOrder(conncount);
            runInput.setPrefix("-input");
            runInput.setPrefixSpaced(true);
            runInput.setEnabled(true);
            runInput.setName("input"+ conncount);
            //add the created input to the runmodule.
            runModule.addInput(runInput);
            //create a new connection from the connectionless output to the new run module input.
            runConn = new Connection(id, runInput.getId());
            le.addConnection(runConn);
            conncount++;
          }
        }
        //add all the connections in the environment being maintained to
    View Full Code Here

    Examples of ak.fm.burer.Connection

        }
       
        public void connect
                (String name, int port)
                throws UnknownHostException, IOException {
            connection = new Connection(name, port);
        }
    View Full Code Here

    Examples of ca.uhn.hl7v2.app.Connection

        public void send(String host, int port) throws HL7Exception {
            System.out.println("[ Executing HL7Sender : HOST:" + host + "  ;port :" + port + " ]");
            // The connection hub connects to listening servers
            ConnectionHub connectionHub = ConnectionHub.getInstance();
            // A connection object represents a socket attached to an HL7 server
            Connection connection = connectionHub
                    .attach(host, port, new PipeParser(), MinLowerLayerProtocol.class);

            // The initiator is used to transmit unsolicited messages
            Initiator initiator = connection.getInitiator();
            HL7Message sampleMessage = new HL7Message();

            //send
            Message response = null;
            try {
    View Full Code Here

    Examples of ch.ethz.ssh2.Connection

       
        try
        {
          /* Create a connection instance */

          Connection conn = new Connection(hostname);

          /* We want to connect through a HTTP proxy */
         
          conn.setProxyData(new HTTPProxyData(proxyHost, proxyPort));
         
          // if the proxy requires basic authentication:
          // conn.setProxyData(new HTTPProxyData(proxyHost, proxyPort, "username", "secret"));
         
          /* Now connect (through the proxy) */

          conn.connect();

          /* Authenticate.
           * If you get an IOException saying something like
           * "Authentication method password not supported by the server at this stage."
           * then please check the FAQ.
           */

          boolean isAuthenticated = conn.authenticateWithPassword(username, password);

          if (isAuthenticated == false)
            throw new IOException("Authentication failed.");

          /* Create a session */

          Session sess = conn.openSession();

          sess.execCommand("uname -a && date && uptime && who");

          System.out.println("Here is some information about the remote host:");

          /*
           * This basic example does not handle stderr, which is sometimes dangerous
           * (please read the FAQ).
           */

          InputStream stdout = new StreamGobbler(sess.getStdout());

          BufferedReader br = new BufferedReader(new InputStreamReader(stdout));

          while (true)
          {
            String line = br.readLine();
            if (line == null)
              break;
            System.out.println(line);
          }

          /* Show exit status, if available (otherwise "null") */

          System.out.println("ExitCode: " + sess.getExitStatus());

          /* Close this session */

          sess.close();

          /* Close the connection */

          conn.close();

        }
        catch (IOException e)
        {
          e.printStackTrace(System.err);
    View Full Code Here

    Examples of ch.marcsladek.jrtnp.connection.Connection

       * @return the new Conenction
       * @throws IOException
       *           when unable to listen to socket
       */
      public synchronized Connection newClient(Socket socket) throws IOException {
        Connection client = factory.newInstance(socket);
        return clientPool.add(client.getIdentifier(), client);
      }
    View Full Code Here

    Examples of ch.rakudave.jnetmap.model.Connection

      private static Type type = Type.Ethernet;
      private static double speed = 100;

      @Override
      public Connection create() {
        return new Connection(type, speed);
      }
    View Full Code Here

    Examples of chatroom.connection.Connection

        public void onConnection(SocketChannel channel) throws IOException {
            PipedInputStream is = new PipedInputStream();
            final PipedOutputStream os = new PipedOutputStream(is);

            userNum++;
            Connection cnt = new Connection(channel) {

                @Override
                protected void onRead(byte[] data, int size) {
                    try {
                        os.write(data, 0, size);
                        os.flush();
                    } catch (IOException ex) {
                        logger.info("Audio reading error");
                    }
                }

                @Override
                public void end() {
                    super.end();
                    try {
                        os.close();
                    } catch (IOException ex) {
                        Logger.getLogger(AudioServer.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    userNum--;
                    if (userNum == 0) {
                        logger.info("Audio server closing...");
                        stopServer();
                    }
                }
            };
            synchronized (audioList) {
                audioList.add(new MyAudioInputStream(is, AudioConfig.audioFormat, AudioSystem.NOT_SPECIFIED, cnt));
            }
            cnt.start();
        }
    View Full Code Here

    Examples of cleo.search.connection.Connection

        List<SimpleElement> results;
       
        int uid = getConnectionsStoreIndexStart() + rand.nextInt(this.getConnectionsStoreCapacity());
        int elemId = getElementStoreIndexStart() + rand.nextInt(getElementStoreCapacity());
       
        Connection conn = new SimpleConnection(uid, elemId, true);
        conn.setTimestamp(System.currentTimeMillis());
       
        SimpleElement elem = new SimpleElement(elemId);
        elem.setTimestamp(System.currentTimeMillis());
        elem.setTerms("Bloom", "filter");
       
    View Full Code Here

    Examples of clojure.tools.nrepl.Connection

              if (url.trim().startsWith("http://")) {
                ClojureOSGi.require(CCWPlugin.getDefault().getBundle(), "cemerick.drawbridge.client");
              }

                // TODO - don't need multiple connections anymore, just separate sessions will do.
                interactive = new Connection(url);
                safeToolConnection = new SafeConnection(new Connection(url), this);
                setCurrentNamespace(currentNamespace);
                prepareView();
                final Object clojureVersion = safeToolConnection.send(15000, "op", "eval", "code", "(clojure-version)").values().get(0);
                DisplayUtil.asyncExec(new Runnable() {
            @Override public void run() {
    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.