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 com.xensource.xenapi.Connection

            return CitrixHelper.getXcpGuestOsType(stdType);
        }

        protected NetworkUsageAnswer execute(NetworkUsageCommand cmd) {
            try {
                Connection conn = getConnection();
                if(cmd.getOption()!=null && cmd.getOption().equals("create") ){
                    String result = networkUsage(conn, cmd.getPrivateIP(), "create", null);
                    NetworkUsageAnswer answer = new NetworkUsageAnswer(cmd, result, 0L, 0L);
                    return answer;
                }
    View Full Code Here

    Examples of connection.Connection

      }

      @WebMethod
      public boolean connect(String bankName) {
        // Verify if connection already exists
        Connection currentConnection = null;
        try {
          currentConnection = ConnectionPool.getConnection(bankName);
        } catch (Exception e1) {
          e1.printStackTrace();
        }
        // Test the connection state : if already connected then return true
        if (currentConnection != null && currentConnection.getState() == EnumState.connected) {
          return true;
        }
        else if (currentConnection != null && currentConnection.getState() == EnumState.idle) {
          // if idle then ask for a connection
            ConnectionWS currentConnectionWS = new ConnectionWS();
              OutputConnectionWS outputToSend;
          try {
            outputToSend = currentConnectionWS.messageParser("connect_" + bankName);
          } catch (Exception e) {
            e.printStackTrace();
            return false;
          }
          FPDU fpduToSend = outputToSend.getFpdu();
             
              // Send FPDU to the interserver
          if (!sendFPDU(fpduToSend)) {
            // If sendFPDU fail then return false
            return false;
          }
         
        }
       
        // Get the connection and wait for connected state   
        try {
          currentConnection = ConnectionPool.getConnection(bankName);
        } catch (Exception e1) {
          return false;
        }   
        // If null connection return false
        if (currentConnection == null) {
          return false;
        }
        // Wait for connected state
        for (int i = 0; i < PesitImpl.timeOut; i++) {
          try {
            Thread.sleep(1000);
          } catch (InterruptedException e) {
            e.printStackTrace();
          }
          // Check state of currentConnection
          if (currentConnection.getState() == EnumState.connected) {
            return true;
          }
          else if (currentConnection.getState() == EnumState.connection_refused) {
            break;
          }
        }
       
        // If connection is still idle then the CONNECT message was lost
        // Otherwise it means that the connection is in a particular state for a client and then
        //  - if transfer_in_progress return true
        //  - if wait_for_relconf then return false
        //  TODO : more cases
        if (currentConnection.getState()  == EnumState.idle) {
          // Remove connection from connection pool
          ConnectionPool.returnConnection(bankName, currentConnection);
          return false;
        }
        else if (currentConnection.getState()  == EnumState.waitfor_relconf) {
          return false;
        }
       
        return false;
     
    View Full Code Here

    Examples of connectivity.tools.sdb.Connection

        void createStruture() throws SQLException
        {
            m_database.executeSQL("DROP TABLE \"TEST1\" IF EXISTS");
            m_database.executeSQL("CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )");

            final Connection connection = m_database.defaultConnection();
            final XPreparedStatement prep = connection.prepareStatement("INSERT INTO \"TEST1\" values (?,?)");
            final XParameters para = UnoRuntime.queryInterface( XParameters.class, prep );
            for (int i = 1; i <= MAX_TABLE_ROWS; ++i)
            {
                para.setInt(1, i);
                para.setString(2, "Test" + i);
                prep.executeUpdate();
            }

            connection.refreshTables();
        }
    View Full Code Here

    Examples of datomic.Connection

                .addObject("dbnames", Databases.dbnames());
        }
       
        @RequestMapping(value = "/database/{dbname}", method = {GET, POST})
        public ModelAndView database(@PathVariable String dbname) {
            final Connection connection = connect(dbname);
            return new ModelAndView("database")
                .addObject("dbname", dbname)
                .addObject("uri", toUri(dbname))
                .addObject("attributes", Attributes.in(connection.db()));
        }
    View Full Code Here

    Examples of de.zib.scalaris.Connection

         *             if the connection to Scalaris fails
         */
        private void init(ConnectionFactory cFactory) throws RuntimeException {
            try {
                for (int i = 0; i < MAX_SCALARIS_CONNECTIONS; ++i) {
                    Connection connection = cFactory.createConnection(
                            "wiki_import", true);
                    scalaris_single.put(new TransactionSingleOp(connection));
                    connection = cFactory.createConnection(
                            "wiki_import", true);
                    scalaris_tx.put(new Transaction(connection));
    View Full Code Here

    Examples of edu.byu.ece.rapidSmith.device.helper.Connection

              // of the same wire.  A PIP connect unique wires.
              if (wc.isPIP())
                continue;
              if (!sourceWires.contains(wire) ||
                  !wireIsSink(we, wc.getTile(tile), wc.getWire())) {
                wiresToBeRemoved.add(new Connection(wire, wc));
              }
            }
          }

          // Remove the edges by creating a new WireConnection arrays sans the
    View Full Code Here

    Examples of edu.byu.ece.rapidSmith.primitiveDefs.Connection

              for(int k = 2; k < parts.size(); k++){
                e.addCfgOption(parts.get(k).replace(")", ""));
              }
            }
            else if(line.startsWith("\t\t\t(conn ")){
              Connection c = new Connection();
              c.setElement0(parts.get(2));
              c.setPin0(parts.get(3));
              c.setForwardConnection(parts.get(4).equals("==>"));
              c.setElement1(parts.get(5));
              c.setPin1(parts.get(6).substring(0, parts.get(6).length() - 1));
              e.addConnection(c);
            }
          }
          elements.add(e);
        }
    View Full Code Here

    Examples of eu.admire.dispel.graph.Connection

            case INPUT:
            {
                ConnectionStrategy connection = (ConnectionStrategy)strategy;
                if (connection.mConnectionVar != null)
                {
                    Connection c = (Connection) connection.mConnectionVar.getValue(connection.mArrayIndices);
                    if (c == null ||
                            !(c.getSource() instanceof LiteralValuesNode &&
                                    mConnection.getSource() instanceof LiteralValuesNode))
                    {
                        connection.mConnectionVar.setValue(mConnection, connection.mArrayIndices);
                    }
                    else
                    {
                        LiteralValuesNode literal = (LiteralValuesNode) c.getSource();
                        LiteralValuesNode current = (LiteralValuesNode) mConnection.getSource();
                        literal.add(current.getValues());
                    }
                }
                else
                {
                    Object value;
                    Variable variable =
                        mExecutionState.getVariables().get(connection.mPE);
                    if (variable == null)
                    {
                        throw new UnresolvedVariableException(connection.mPE);
                    }
                    value = variable.getValue(connection.mArrayIndices);
                    if (value instanceof RequestNode)
                    {
                        RequestNode node = (RequestNode)value;
                        if (node.getAllInputs().containsKey(connection.mName))
                        {
                            Connection c = node.getAllInputs().get(connection.mName).get(connection.mIndex);
                            if (c != null && c.getSource() instanceof LiteralValuesNode
                                    && mConnection.getSource() instanceof LiteralValuesNode)
                            {
                                LiteralValuesNode literal = (LiteralValuesNode) c.getSource();
                                LiteralValuesNode current = (LiteralValuesNode) mConnection.getSource();
                                literal.add(current.getValues());
                            }
                            else
                            {
    View Full Code Here

    Examples of floobits.common.protocol.Connection

            url = new FlooUrl(host, null, null, Constants.defaultPort, true);
        }

        public void go() {
            super.go();
            conn = new Connection(this);
            conn.start();
        }
    View Full Code Here

    Examples of fr.norsys.mapper.console.model.Connection

        if (log.isDebugEnabled()) {
          log.debug("init method called");
        }
        DynaActionForm connectionForm = (DynaActionForm) form;
        connectionForm
            .set(ConsoleCst.CONNECTION_REQUEST_BEAN, new Connection());
        request.getSession().setAttribute(ConsoleCst.IS_APPLICATION_MODIFIED,
            ConsoleCst.APPLICATION_NOT_MODIFIED);
        refreshMenu(request, "");
        return mapping.findForward(ConsoleCst.CONNECTIONS_PAGE_FORWARD);
      }
    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.