Package org.rhq.core.clientapi.agent.ping

Examples of org.rhq.core.clientapi.agent.ping.PingAgentService.ping()


        try {
            // create our own factory so we can customize the timeout
            ClientRemotePojoFactory factory = sender.getClientRemotePojoFactory();
            factory.setTimeout(timeoutMillis);
            PingAgentService pinger = factory.getRemotePojo(PingAgentService.class);
            long agentTime = pinger.ping();
            long skew = Math.abs(System.currentTimeMillis() - agentTime);
            if (skew > 5 * 60 * 1000L) {
                LogFactory.getLog(this.getClass()).debug(
                    "Agent [" + agent.getName() + "] either took a long time to process a ping (" + skew
                        + "ms) or its clock is not synced: " + new Date(agentTime));
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.