protected static class FD_HOST.ExternalPingCommand extends Object implements FD_HOST.PingCommand
Constructor and Description |
---|
ExternalPingCommand(String cmd) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive(InetAddress host,
long timeout)
Checks whether a given host is alive
|
protected final String cmd
public ExternalPingCommand(String cmd)
public boolean isAlive(InetAddress host, long timeout) throws Exception
FD_HOST.PingCommand
isAlive
in interface FD_HOST.PingCommand
host
- The host to be checked for livenesstimeout
- Number of milliseconds to wait for the check to completeException
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.