public interface PingAgentService
AgentClient.ping() which tests only for comm-layer connectivity but not that the agent
is initialized and servicing requests. In general this can be used to surround services with potentially long
runtimes. For example:
if ( agentClient.getPingAgentService(2000L).ping() ) {
agentClient.getDiscoveryAgentService().uninventoryResource(resourceId);
}
| Modifier and Type | Method and Description |
|---|---|
long |
ping()
This service simply returns immediately and can be used to check whether the agent is reachable
and servicing requests.
|
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.