Examples of connect()


Examples of org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.connect()

                    break;
            }

            connectorHandler.setProcessor(createFilterChain(engine, null, clientSSLEngineConfigurator, !(proxy.type() == Proxy.Type.DIRECT), uri, timeoutHandler, sharedTransport, sharedTransportTimeout, proxyHeaders, grizzlyConnector));

            connectionGrizzlyFuture = connectorHandler.connect(connectAddress);

            try {
                final Connection connection = connectionGrizzlyFuture.get(timeoutMs, TimeUnit.MILLISECONDS);

                LOGGER.log(Level.CONFIG, String.format("Connected to '%s'.", connection.getPeerAddress()));
View Full Code Here

Examples of org.glassfish.grizzly.nio.transport.TCPNIOTransport.connect()

        TCPNIOTransport transport = getTransport(responseQueue);

        try {
            transport.start();

            connection = transport.connect(rexProHost, rexProPort).get(10, TimeUnit.SECONDS);
            connection.configureBlocking(true);
        } catch (Exception e) {
            throw new AssertionError(e);
        }
    }
View Full Code Here

Examples of org.glyptodon.guacamole.net.auth.Connection.connect()

                    logger.info("Connection \"{}\" does not exist for user \"{}\".", id, context.self().getUsername());
                    throw new GuacamoleSecurityException("Requested connection is not authorized.");
                }

                // Connect socket
                socket = connection.connect(info);
                logger.info("User \"{}\" successfully connected to \"{}\".", context.self().getUsername(), id);
                break;
            }

            // Connection group identifiers
View Full Code Here

Examples of org.glyptodon.guacamole.net.auth.ConnectionGroup.connect()

                    logger.info("Connection group \"{}\" does not exist for user \"{}\".", id, context.self().getUsername());
                    throw new GuacamoleSecurityException("Requested connection group is not authorized.");
                }

                // Connect socket
                socket = group.connect(info);
                logger.info("User \"{}\" successfully connected to group \"{}\".", context.self().getUsername(), id);
                break;
            }

            // Fail if unsupported type
View Full Code Here

Examples of org.gnome.gtk.Button.connect()

        dialog = (Window)glade.getWidget("wnd_preferences");
        dialog.showAll();

        Button ok = (Button)glade.getWidget("btn_ok1");
        ok.connect(new GUIEventPipe(this, "ok"));

        Button cancel = (Button)glade.getWidget("btn_cancel1");
        cancel.connect(new GUIEventPipe(this, "cancel"));

        SpinButton spinner = (SpinButton)glade.getWidget("spn_segments");
View Full Code Here

Examples of org.gnome.gtk.ImageMenuItem.connect()

            final ToolButton addt = (ToolButton)mainGlade.getWidget("tbtn_add");
            addt.connect((ToolButton.CLICKED)new GUIEventPipe(this, "add"));

            final ImageMenuItem addm = (ImageMenuItem)mainGlade.getWidget("mbtn_add");
            addm.connect(new GUIEventPipe(this, "add"));

            final ToolButton removet = (ToolButton)mainGlade.getWidget("tbtn_remove");
            removet.connect((ToolButton.CLICKED)new GUIEventPipe(this, "remove"));

            final ToolButton pauset = (ToolButton)mainGlade.getWidget("tbtn_pause");
View Full Code Here

Examples of org.gnome.gtk.ToolButton.connect()

            mainGlade = Glade.parse(GLADE_PATH, "wnd_main");

            initTreeView((TreeView)mainGlade.getWidget("treeview"));

            final ToolButton addt = (ToolButton)mainGlade.getWidget("tbtn_add");
            addt.connect((ToolButton.CLICKED)new GUIEventPipe(this, "add"));

            final ImageMenuItem addm = (ImageMenuItem)mainGlade.getWidget("mbtn_add");
            addm.connect(new GUIEventPipe(this, "add"));

            final ToolButton removet = (ToolButton)mainGlade.getWidget("tbtn_remove");
View Full Code Here

Examples of org.gnome.gtk.Window.connect()

            preferencesm.connect(new GUIEventPipe(this, "preferences"));

            final Window w = (Window)mainGlade.getWidget("wnd_main");
            w.showAll();

            w.connect(new Window.DELETE_EVENT()
            {
                public boolean onDeleteEvent(Widget source, Event event)
                {
                    Gtk.mainQuit();
                    return false;
View Full Code Here

Examples of org.gradle.messaging.remote.ObjectConnection.connect()

        ObjectConnection serverConnection = workerProcessContext.getServerConnection();
        serverConnection.useParameterSerializer(new TestEventSerializer());
        this.resultProcessor = serverConnection.addOutgoing(TestResultProcessor.class);
        serverConnection.addIncoming(RemoteTestClassProcessor.class, this);
        serverConnection.connect();
    }

    public void startProcessing() {
        Thread.currentThread().setName("Test worker");
        processor.startProcessing(resultProcessor);
View Full Code Here

Examples of org.gradle.tooling.GradleConnector.connect()

      if (!Strings.isNullOrEmpty(gradleHome))
      {
         connector = connector.useGradleUserHomeDir(new File(gradleHome));
      }
     
      ProjectConnection connection = connector.connect();

      BuildLauncher launcher = connection.newBuild().forTasks(task);

      List<String> argList = Lists.newArrayList(arguments);
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.