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 org.palo.api.Connection

                ///tries to get cube
                if(a.getUser().getLoginName().equals(accountName)){
                  if(a.getConnection().getName().equals(connection)){
                    //use cube name
                    accountId = a.getId();
                    Connection con = ((PaloAccount) a).login();
                    for (Database db: con.getDatabases()) {
                      int connectionType = db.getConnection().getType();
                      Cube c = db.getCubeByName(cubeName);
                      if(c != null){
                        cube = c;
                        //((PaloAccount) a).logout();
    View Full Code Here

    Examples of org.renjin.primitives.io.connections.Connection

            } catch (IOException e) {
              throw new EvalException("I/O Exception occurred during parse: " + e.getMessage());
            }
          }
        } else if(file.inherits("connection")) {
          Connection conn = Connections.getConnection(context, file);
          Reader reader = new InputStreamReader(conn.getInputStream());
          ExpressionVector result = RParser.parseSource(reader);
          Iterables.addAll(expressions, result);
        }

        return new ExpressionVector(expressions);
    View Full Code Here

    Examples of org.servicemix.jbi.deployment.Connection

        protected void buildConnections(ServiceAssembly sa) throws JBIException {
            if (sa != null) {
                Connection[] connections = sa.getConnections().getConnection();
                if (connections != null) {
                    for (int i = 0; i < connections.length; i++) {
                        Connection connection = connections[i];
                        Consumer consumer = connection.getConsumer();
                        Provider provider = connection.getProvider();
                        QName suName = consumer.getInterfaceName();
                        if (suName != null) {
                            LocalComponentConnector lcc = (LocalComponentConnector) container.getRegistry()
                                    .getComponentConnector(suName);
                            if (lcc != null) {
    View Full Code Here

    Examples of org.simpleframework.transport.connect.Connection

       * @return a closable that can be invoked in case the service is to be shut
       *         down
       */
      public Closeable initialize() {
        try {
          Connection connection = new SocketConnection(this);
          SocketAddress address = new InetSocketAddress(PORT_NUMBER);
          connection.connect(address);
          logger.info("HTTP service for ExtensionSwap installation running on port {}", PORT_NUMBER);
          return connection;
        } catch (IOException e) {
          logger.warn("Could not host HTTP service for ExtensionSwap installation on port " + PORT_NUMBER
              + ". Automatic installations of extensions will not be available.", e);
    View Full Code Here

    Examples of org.smpp.Connection

       * @see PDUProcessorFactory
       */
      private void listen() {
        debug.enter(Simulator.DSIMD2, this, "SMSCListener listening on port " + port);
        try {
          Connection connection = null;
          serverConn.setReceiveTimeout(getAcceptTimeout());
          connection = serverConn.accept();

          if (connection != null) {
            debug.write("SMSCListener accepted a connection on port " + port);
    View Full Code Here

    Examples of org.springframework.amqp.rabbit.connection.Connection

            }
        }

        @Test
        public void testSendMessage_NoUnitOfWork() throws IOException {
            Connection connection = mock(Connection.class);
            when(connectionFactory.createConnection()).thenReturn(connection);
            Channel transactionalChannel = mock(Channel.class);
            when(connection.createChannel(true)).thenReturn(transactionalChannel);
            GenericEventMessage<String> message = new GenericEventMessage<String>("Message");
            when(serializer.serialize(message.getPayload(), byte[].class))
                    .thenReturn(new SimpleSerializedObject<byte[]>("Message".getBytes(UTF_8), byte[].class, "String", "0"));
            when(serializer.serialize(message.getMetaData(), byte[].class))
                    .thenReturn(new SerializedMetaData<byte[]>(new byte[0], byte[].class));
    View Full Code Here

    Examples of org.springframework.erlang.connection.Connection

      }

      public <T> T execute(ConnectionCallback<T> action) throws OtpException {

        Assert.notNull(action, "Callback object must not be null");
        Connection con = null;
        try {
          con = createConnection();
          return action.doInConnection(con);
        }
        catch (OtpException ex) {
    View Full Code Here

    Examples of org.springframework.social.connect.Connection

      @SuppressWarnings("rawtypes")
      public boolean equals(Object o) {
        if (!(o instanceof Connection)) {
          return false;
        }
        Connection other = (Connection) o;
        return key.equals(other.getKey());
      }
    View Full Code Here

    Examples of org.sql2o.Connection

        @Test public void testForConnectionStateAfterBatchException() throws SQLException {
            sql2o.createQuery("create table issue3table(id integer identity primary key, val varchar(5))").executeUpdate();
           
            boolean failed = false;

            Connection connection = sql2o.beginTransaction();

            try{
                connection.createQuery("insert into issue3table(val) values(:val)")
                    .addParameter("val", "abcde").addToBatch()
                    .addParameter("val", "abcdefg").addToBatch() // should fail
                    .addParameter("val", "hello").addToBatch()
                    .executeBatch().commit();
            }
            catch(Sql2oException ex){
                failed = true;
                System.out.println("expected exception occured, msg: " + ex.getMessage());
            }

            assertTrue(failed);

            assertTrue("Assert that connection is correctly closed (with transaction)", connection.getJdbcConnection().isClosed() );
           
            // same test, but not in a transaction
            Query query = sql2o.createQuery("insert into issue3table(val) values(:val)")
                .addParameter("val", "abcde").addToBatch()
                .addParameter("val", "abcdefg").addToBatch() // should fail
    View Full Code Here

    Examples of org.talamonso.OMAPI.Connection

      int omapiPort;
      String omapiKeyName;
      String omapiKeyValue;

      public void updateDHCP(String name, String macAddress, boolean overwrite) throws OmapiInitException, OmapiConnectionException {
        Connection c = null;
        try {
          c = new Connection(omapiHost, omapiPort);
          c.setAuth(omapiKeyName, omapiKeyValue);
        } catch (OmapiException e) {
          System.err.println(e.getMessage());
        }

        Host searchHost = new Host(c);
    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.