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

Examples of org.rhq.enterprise.communications.command.client.ClientCommandSender.startSending()


        RemoteInputStream remoteStream = (RemoteInputStream) stream;
        ServiceContainer serviceContainer = ServerCommunicationsServiceUtil.getService().getServiceContainer();
        ClientCommandSenderConfiguration config = serviceContainer.getClientConfiguration();
        ClientCommandSender sender = serviceContainer.createClientCommandSender(remoteStream.getServerEndpoint(),
            config);
        sender.startSending();
        remoteStream.setClientCommandSender(sender);

        return stream;
    }
View Full Code Here


            client_config.enableQueueThrottling = false;
            client_config.enableSendThrottling = false;
            client_config.serverPollingIntervalMillis = -1;

            sender = getServiceContainer().createClientCommandSender(endpoint, client_config);
            sender.startSending();

            // create our own factory so we can customize the timeout
            ClientRemotePojoFactory factory = sender.getClientRemotePojoFactory();
            factory.setTimeout(timeoutMillis);
            Ping pinger = factory.getRemotePojo(Ping.class);
View Full Code Here

                ClientCommandSender sender = agent.getClientCommandSender();

                if (sender != null) {
                    if (subcommand.equals(MSG.getMsg(AgentI18NResourceKeys.SENDER_START))) {
                        out.println(MSG.getMsg(AgentI18NResourceKeys.SENDER_STARTING));
                        sender.startSending();
                    } else if (subcommand.equals(MSG.getMsg(AgentI18NResourceKeys.SENDER_STOP))) {
                        out.println(MSG.getMsg(AgentI18NResourceKeys.SENDER_STOPPING));
                        sender.stopSending(true);
                    } else if (subcommand.equals(MSG.getMsg(AgentI18NResourceKeys.SENDER_METRICS))) {
                        ClientCommandSenderMetrics metrics = sender.getMetrics();
View Full Code Here

        // i don't think we ever do async calls to remote streams, but just in case,
        // we can't interleave them, so make sure we make calls serially
        config.maxConcurrent = 1;

        ClientCommandSender sender = getServiceContainer().createClientCommandSender(server_endpoint, config);
        sender.startSending();
        remote_stream.setClientCommandSender(sender);

        return;
    }
View Full Code Here

        // i don't think we ever do async calls to remote streams, but just in case,
        // we can't interleave them, so make sure we make calls serially
        config.maxConcurrent = 1;

        ClientCommandSender sender = getServiceContainer().createClientCommandSender(server_endpoint, config);
        sender.startSending();
        remote_stream.setClientCommandSender(sender);

        return;
    }
}
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.