Examples of connect()


Examples of net.hasor.rsf.runtime.client.RsfClientFactory.connect()

*/
public class Client {
    public void after() throws IOException, URISyntaxException, InterruptedException {
        RsfContext context = new ServerRsfContext();
        RsfClientFactory factary = new RsfClientFactory(context);
        RsfClient client = factary.connect("127.0.0.1", 8000);
        //
        RsfService services = client.getRemoteService("net.hasor.rsf._test.TestServices");
        //
        //发起100万次调用.
        for (int i = 0; i < 1000000; i++) {
View Full Code Here

Examples of net.hydromatic.optiq.jdbc.Driver.connect()

      // Statement.closeOnCompletion was introduced in JDK 1.7.
      return;
    }
    final Driver driver = new Driver();
    OptiqConnection connection = (OptiqConnection)
        driver.connect("jdbc:optiq:", new Properties());
    SchemaPlus rootSchema = connection.getRootSchema();
    rootSchema.add("hr", new ReflectiveSchema(new HrSchema()));
    connection.setSchema("hr");
    final Statement statement = connection.createStatement();
    assertFalse((Boolean) OptiqAssert.call(statement, "isCloseOnCompletion"));
View Full Code Here

Examples of net.jmesnil.jmx.core.IConnectionWrapper.connect()

      map.put(DefaultConnectionProvider.USERNAME, "");
      map.put(DefaultConnectionProvider.PASSWORD, "");
      IConnectionWrapper wrapper = defProvider.createConnection(map);
      assertTrue("Connection was null", wrapper != null);

      wrapper.connect();
      Root root = wrapper.getRoot();
      assertTrue("Root was not null", root == null);
     
      wrapper.loadRoot();
      root = wrapper.getRoot();
View Full Code Here

Examples of net.jxta.util.JxtaBiDiPipe.connect()

                //PipeWrapper pipeWrapper = new PipeWrapper("pipe#" + i, PipeWrapper.SENDER_PIPE, this.getReplicateToInstanceName(), nextPipe);
                //this.waitForRendezvousConnection();
                if (_pipelogger.isLoggable(Level.FINEST)) {
                    _pipelogger.finest("JxtaBiDiPipeWrapper: Attempting to establish a connection");
                }
                nextPipe.connect(this.netPeerGroup,
                                null,
                                this.pipeAdv,
                                //60000,
                                300000,
                                // register as a message listener the pipeWrapper
View Full Code Here

Examples of net.kano.joustsim.oscar.AimConnection.connect()

      Screenname sn = new Screenname(getScreenName());
      _aimSession = new DefaultAimSession(sn);
      AimConnectionProperties props = new AimConnectionProperties(sn, getPassword());
      AimConnection conn = _aimSession.openConnection(props);
      conn.addStateListener(new AimStateHandler());
      conn.connect();
    }
    else {
      throw new ConnectedTooFastException("You attempted to connect repeatedly too quickly.");
    }
  }
View Full Code Here

Examples of net.kuujo.copycat.spi.protocol.ProtocolClient.connect()

    // of the cluster and poll each member for a vote.
    LOGGER.info("{} - Polling members {}", context.clusterManager().localNode(), context.clusterManager().cluster().remoteMembers());
    final long lastTerm = lastEntry != null ? lastEntry.term() : 0;
    for (RemoteNode<?> node : (Set<RemoteNode<?>>) context.clusterManager().remoteNodes()) {
      final ProtocolClient client = node.client();
      client.connect().whenComplete((result1, error1) -> {
        if (error1 != null) {
          quorum.fail();
        } else {
          LOGGER.debug("{} - Polling {}", context.clusterManager().localNode(), node.member());
          client.poll(new PollRequest(context.nextCorrelationId(), context.currentTerm(), context.clusterManager()
View Full Code Here

Examples of net.md_5.bungee.api.connection.ProxiedPlayer.connect()

            } else if ( !server.canAccess( player ) )
            {
                player.sendMessage( ProxyServer.getInstance().getTranslation( "no_server_permission" ) );
            } else
            {
                player.connect( server );
            }
        }
    }

    @Override
View Full Code Here

Examples of net.neoremind.sshxcute.core.SSHExec.connect()

                        if(answer==JOptionPane.YES_OPTION)
                        {

                                try
                                {
                                        ssh.connect();
                                        net.neoremind.sshxcute.core.Result res = ssh.exec(sampleTask);
                                        if (res.isSuccess)
                                        {
                                                label_restart_p2s_OK.setFont(font);
                                                label_restart_p2s_OK.setForeground(new Color(34,139,34));
View Full Code Here

Examples of net.schmizz.sshj.SSHClient.connect()

        * NOTE: Forwarding incoming X connections to localhost:6000 only works if X is started without the
        * "-nolisten tcp" option (this is usually not the default for good reason)
        */
        ssh.registerX11Forwarder(new SocketForwardingConnectListener(new InetSocketAddress("localhost", 6000)));

        ssh.connect("localhost");
        try {

            ssh.authPublickey(System.getProperty("user.name"));

            Session sess = ssh.startSession();
View Full Code Here

Examples of net.sf.arianne.marboard.client.core.MarboardClientFramework.connect()

   

    CurrentBoard board = new CurrentBoard();
   
    ClientFramework client = new MarboardClientFramework(board);
        client.connect(server, 4851);
       
    AccountResult account = client.createAccount(username, password, "email@mailinator.com");
    if (account.getResult() == Result.OK_CREATED) {
      client.login(username, password);
      CharacterResult character = client.createCharacter(username, new RPObject());
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.