Package org.rhq.enterprise.communications.command.client

Examples of org.rhq.enterprise.communications.command.client.JBossRemotingRemoteCommunicator


        long timeout = m_configuration.getClientSenderCommandTimeout();
        if (timeout > 0) {
            config.put("timeout", Long.toString(timeout));
        }

        RemoteCommunicator remote_comm = new JBossRemotingRemoteCommunicator(uri, config);
        if (withFailover) {
            remote_comm.setFailureCallback(new FailoverFailureCallback(this));
        }
        if (withInitializer) {
            remote_comm.setInitializeCallback(new ConnectAgentInitializeCallback(this));
        }

        return remote_comm;
    }
View Full Code Here


        ssl_config.put(SSLSocketBuilder.REMOTING_SERVER_AUTH_MODE, Boolean
            .toString(client_config.securityServerAuthMode));
        ssl_config.put(SSLSocketBuilder.REMOTING_SOCKET_USE_CLIENT_MODE, "true");

        try {
            RemoteCommunicator remote_comm = new JBossRemotingRemoteCommunicator(server_endpoint, ssl_config);

            for (ServiceContainerSenderCreationListener listener : m_senderCreationListeners) {
                listener.preCreate(this, remote_comm, client_config);
            }
View Full Code Here

                .toString(client_config.securityServerAuthMode));
            ssl_config.put(SSLSocketBuilder.REMOTING_SOCKET_USE_CLIENT_MODE, "true");
        }

        try {
            RemoteCommunicator remote_comm = new JBossRemotingRemoteCommunicator(server_endpoint, ssl_config);
            for (ServiceContainerSenderCreationListener listener : m_senderCreationListeners) {
                listener.preCreate(this, remote_comm, client_config);
            }

            ClientCommandSender sender = new ClientCommandSender(remote_comm, client_config);
View Full Code Here

        // install our streaming pojo in our server #2
        pojoImpl = new CommTestStreamPojo(this);
        serviceContainer2.addRemotePojo(pojoImpl, ICommTestStreamPojo.class);

        // setup the client to server #2
        RemoteCommunicator comm = new JBossRemotingRemoteCommunicator("socket://127.0.0.1:" +
            CommTestConstants.CONNECTOR2_BIND_PORT + "/?force_remote=true");
        ClientCommandSenderConfiguration config = new ClientCommandSenderConfiguration();
        config.maxConcurrent = Integer.MAX_VALUE; // let the sender send as fast as it can
        config.defaultTimeoutMillis = 60000L;
        config.commandSpoolFileName = null;
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.communications.command.client.JBossRemotingRemoteCommunicator

Copyright © 2018 www.massapicom. 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.