Examples of open()


Examples of org.apache.sshd.common.Channel.open()

        }

        final int channelId = getNextChannelId();
        channels.put(channelId, channel);
        channel.init(this, channelId);
        channel.open(id, rwsize, rmpsize, buffer).addListener(new SshFutureListener<OpenFuture>() {
            public void operationComplete(OpenFuture future) {
                try {
                    if (future.isOpened()) {
                        Buffer buf = createBuffer(SshConstants.Message.SSH_MSG_CHANNEL_OPEN_CONFIRMATION, 0);
                        buf.putInt(id);
View Full Code Here

Examples of org.apache.stanbol.commons.solr.RegisteredSolrServerTracker.open()

                if (message == null || message.isEmpty()) {
                    message = "Failed to create a RegisteredSolrServerTracker";
                }
                throw new StoreException(message, e);
            }
            tracker.open();
            solrServer = tracker.getService();
            tracker.close();
            if (solrServer != null || i == SECONDS_TO_WAITFOR_CORE_TO_BEREADY) break;
            try {
                Thread.sleep(1000);
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.ontonet.api.session.Session.open()

        // Create and open many sessions.
        synchronized (sesmgr) {
            for (int i = 0; i < size; i++) {
                Session ses = sesmgr.createSession();
                try {
                    ses.open();
                } catch (NonReferenceableSessionException e) {
                    fail("Test method tried to open nonreferenceable session.");
                }
                sessions.add(ses);
            }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.session.Session.open()

        Set<Session> sessions = new HashSet<Session>();
        // Create and open many sessions.
        synchronized (sessionManager) {
            for (int i = 0; i < size; i++) {
                Session ses = sessionManager.createSession();
                ses.open();
                sessions.add(ses);
            }
            // Check that 500 sessions have been created
            assertEquals(initialSize + size, sessionManager.getRegisteredSessionIDs().size());
        }
View Full Code Here

Examples of org.apache.tajo.storage.index.bst.BSTIndex.BSTIndexReader.open()

    creater.close();
    scanner.close();
   
    tuple = new VTuple(keySchema.getColumnNum());
    BSTIndexReader reader = bst.getIndexReader(new Path(testDir, "FindValueInCSV.idx"), keySchema, comp);
    reader.open();
    scanner = StorageManagerFactory.getSeekableScanner(conf, meta, tablet, meta.getSchema());
    scanner.init();

    for(int i = 0 ; i < TUPLE_NUM -1 ; i ++) {
      tuple.put(0, DatumFactory.createInt8(i));
View Full Code Here

Examples of org.apache.tajo.storage.index.bst.BSTIndex.BSTIndexWriter.open()

    BSTIndex bst = new BSTIndex(conf);
    BSTIndexWriter creater = bst.getIndexWriter(new Path(testDir, "FindValueInCSV.idx"),
        BSTIndex.TWO_LEVEL_INDEX,
        keySchema, comp);   
    creater.setLoadNum(LOAD_NUM);
    creater.open();

    SeekableScanner scanner = StorageManagerFactory.getSeekableScanner(conf, meta, tablet, meta.getSchema());
    scanner.init();

    Tuple keyTuple;
View Full Code Here

Examples of org.apache.thrift.transport.TFramedTransport.open()

  public void testScribeMessage() throws Exception {
    TTransport transport = new TFramedTransport(new TSocket("localhost", port));

    TProtocol protocol = new TBinaryProtocol(transport);
    Scribe.Client client = new Scribe.Client(protocol);
    transport.open();
    LogEntry logEntry = new LogEntry("INFO", "Sending info msg to scribe source");
    List<LogEntry> logEntries = new ArrayList<LogEntry>(1);
    logEntries.add(logEntry);
    client.Log(logEntries);
View Full Code Here

Examples of org.apache.thrift.transport.TSaslClientTransport.open()

                serverHost,
                null,
                client_callback_handler,
                transport);

        wrapper_transport.open();
        LOG.debug("SASL DIGEST-MD5 client transport has been established");

        return wrapper_transport;
    }
View Full Code Here

Examples of org.apache.thrift.transport.TSocket.open()

        /* Establish a thrift connection to the cassandra instance */
        TSocket socket = new TSocket(server, port);
        System.out.println(" connected to " + server + ":" + port + ".");
        TBinaryProtocol binaryProtocol = new TBinaryProtocol(new TFramedTransport(socket));
        Cassandra.Client cassandraClient = new Cassandra.Client(binaryProtocol);
        socket.open();
        thriftClient = cassandraClient;
    }

    /**
     * usage: java -cp <configpath> org.apache.cassandra.client.TestRingCache [keyspace row-id-prefix row-id-int]
View Full Code Here

Examples of org.apache.thrift.transport.TTransport.open()

        /**
         * CONNECT TEST
         */
        System.out.println("Test #" + (test+1) + ", " + "connect " + host + ":" + port);
        try {
          transport.open();
        } catch (TTransportException ttx) {
          System.out.println("Connect failed: " + ttx.getMessage());
          continue;
        }

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.