protected static final class ClusterPinger.Pinger extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClusterPinger.Pinger() |
Modifier and Type | Method and Description |
---|---|
boolean |
ping(Server server,
Connection conn)
Pings the server and suppresses all exceptions.
|
Future<Reply> |
pingAsync(ClusterType type,
Server server,
Connection conn)
Pings the server and suppresses all exceptions.
|
public boolean ping(Server server, Connection conn)
server
- The server to update with the results of the ping. If
false
is returned then the state will not
have been updated. Passing null
for the state
is allowed.conn
- The connection to ping.public Future<Reply> pingAsync(ClusterType type, Server server, Connection conn)
Server
latency and tags if found.type
- The type of cluster to ping.server
- The server to update with the results of the ping. If
false
is returned then the state will not
have been updated. Passing null
for the state
is allowed.conn
- The connection to ping.Future
that will be updated once the reply is
received.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.