protected static final class ClusterPinger.Pinger extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClusterPinger.Pinger() |
Modifier and Type | Method and Description |
---|---|
boolean |
ping(InetSocketAddress addr,
Connection conn,
ServerState state)
Pings the server and suppresses all exceptions.
|
Future<Reply> |
pingAsync(ClusterType type,
InetSocketAddress addr,
Connection conn,
ServerState state)
Pings the server and suppresses all exceptions.
|
public boolean ping(InetSocketAddress addr, Connection conn, ServerState state)
addr
- The address of the server. Used for logging.conn
- The connection to ping.state
- The server state 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.public Future<Reply> pingAsync(ClusterType type, InetSocketAddress addr, Connection conn, ServerState state)
ServerState
latency and tags if found.type
- The type of cluster to ping.addr
- The address of the server. Used for logging.conn
- The connection to ping.state
- The server state 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.Future
that will be updated once the reply is
received.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.