Examples of ServerConnection


Examples of org.apache.geronimo.deployment.cli.ServerConnection

public class LoginCommand extends ConnectCommand {

    @Override
    protected Object doExecute() throws Exception {

        ServerConnection connection = connect();

        if (connection instanceof OfflineServerConnection) {
            println("No credentials to save in embedded mode.");
            return null;
        }
View Full Code Here

Examples of org.apache.geronimo.deployment.cli.ServerConnection

    @Argument(required = true, description = "Module name")
    String moduleNames;

    @Override
    protected Object doExecute() throws Exception {
        ServerConnection connection = connect();

        AbstractCommand command = new CommandStart();

        BaseCommandArgs args = new BaseCommandArgs(moduleNames.split(" "));
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.remoting.server.ServerConnection

                if (isDebugging()) {
                    inputStream = new ProfilingInputStream(inputStream);
                    outputStream = new ProfilingOutputStream(outputStream);
                }

                final ServerConnection connection = createServerConnection(inputStream, outputStream, sd);
                // spawnConnectionThread(connection, sd);

                final Worker worker = workerPool.getWorker();
                worker.setIncomingConnection(connection);
                // worker.start();
View Full Code Here

Examples of org.apache.qpid.server.transport.ServerConnection

         * 3 - Virtualhost
         * 4 - Channel ID
         */
        if(session.getConnection() instanceof ServerConnection)
        {
            ServerConnection connection = (ServerConnection) session.getConnection();
            setLogStringWithFormat(CHANNEL_FORMAT,
                                   connection == null ? -1L : connection.getConnectionId(),
                                   session.getAuthorizedPrincipal() == null ? "?" : session.getAuthorizedPrincipal().getName(),
                                   (connection == null || connection.getConfig() == null) ? "?" : connection.getConfig().getAddress(),
                                   session.getVirtualHost().getName(),
                                   session.getChannel());
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.transport.ServerConnection

                getChannel().getCreditManager(),getChannel().getClientDeliveryMethod(), getChannel().getRecordDeliveryMethod());
        assertEquals("Unexpected Subscription ID allocated", previousId + 1, getNoAckSub.getSubscriptionID());
        previousId = getNoAckSub.getSubscriptionID();

        //create a 0-10 subscription
        ServerConnection conn = new ServerConnection(1);
        ProtocolEngine_0_10 engine = new ProtocolEngine_0_10(conn, new TestNetworkConnection(), getRegistry());
        conn.setVirtualHost(getVirtualHost());
        conn.setConnectionConfig(engine);
        ServerSessionDelegate sesDel = new ServerSessionDelegate();
        Binary name = new Binary(new byte[]{new Byte("1")});
        ServerSession session = new ServerSession(conn, sesDel, name, 0, engine);

        Subscription sub_0_10 = SubscriptionFactoryImpl.INSTANCE.createSubscription(session, "1", MessageAcceptMode.EXPLICIT,
View Full Code Here

Examples of org.apache.qpid.server.transport.ServerConnection

         * 3 - Virtualhost
         * 4 - Channel ID
         */
        if(session.getConnection() instanceof ServerConnection)
        {
            ServerConnection connection = (ServerConnection) session.getConnection();
            setLogStringWithFormat(CHANNEL_FORMAT,
                                   connection == null ? -1L : connection.getConnectionId(),
                                   session.getAuthorizedPrincipal() == null ? "?" : session.getAuthorizedPrincipal().getName(),
                                   (connection == null || connection.getRemoteAddressString() == null) ? "?" : connection.getRemoteAddressString(),
                                   session.getVirtualHost().getName(),
                                   session.getChannel());
        }
    }
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.test.BlockheadServer.ServerConnection

        JettyTrackingSocket wsocket = new JettyTrackingSocket();

        URI wsUri = server.getWsUri();
        Future<Session> future = client.connect(wsocket,wsUri);

        ServerConnection connection = server.accept();
        connection.readRequest();
        // no upgrade, just fail with a 404 error
        connection.respond("HTTP/1.1 404 NOT FOUND\r\n\r\n");

        // The attempt to get upgrade response future should throw error
        try
        {
            future.get(500,TimeUnit.MILLISECONDS);
View Full Code Here

Examples of org.exolab.jms.server.ServerConnection

     *                                  invalid user name or password.
     */
    public ServerConnection createConnection(String clientID, String user,
                                             String password)
            throws JMSException {
        ServerConnection stub;

        if (user == null) {
            user = _defaultUser;
            password = _defaultPassword;
        }

        ServerConnectionFactory factory
                = getServerConnectionFactory(user, password);
        try {
            ServerConnection connection
                    = factory.createConnection(clientID, user, password);
            stub = new JmsConnectionStubImpl(connection, _orb, _serverURI,
                                             user, password);
        } finally {
            if (factory instanceof Proxy) {
View Full Code Here

Examples of org.exolab.jms.server.ServerConnection

     *                                  invalid user name or password.
     */
    public ServerConnection createConnection(String clientID, String userName,
                                             String password)
            throws JMSException {
        ServerConnection connection = _factory.createConnection(clientID,
                                                                userName,
                                                                password);

        RemoteServerConnection remote = null;
        try {
View Full Code Here

Examples of org.jmanage.core.management.ServerConnection

                                 HttpServletResponse response)
            throws Exception {

        AttributeSelectionForm form = (AttributeSelectionForm)actionForm;
        String[] mbeans = form.getMbeans();
        ServerConnection serverConn = context.getServerConnection();
        ObjectName objectName = null;
        Map<String, List> mbeanAttributesListMap = new TreeMap<String, List>();
        MBeanService mbeanService = ServiceFactory.getMBeanService();
        for(int i=0; i<mbeans.length;i++){
            objectName = new ObjectName(mbeans[i]);
            ObjectInfo objInfo = serverConn.getObjectInfo(objectName);
            ObjectAttributeInfo[] objAttrInfo = objInfo.getAttributes();
            List objAttrInfoList = mbeanService.filterAttributes(
                    Utils.getServiceContext(context),
                    objectName,
                    objAttrInfo,
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.