|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensorshell.command.Command
org.hackystat.sensorshell.command.PingCommand
public class PingCommand
Implements the Ping command, which ensures that the SensorBase is reachable.
Field Summary |
---|
Fields inherited from class org.hackystat.sensorshell.command.Command |
---|
cr, email, host, password, properties, shell |
Constructor Summary | |
---|---|
PingCommand(SingleSensorShell shell,
SensorShellProperties properties)
Creates the PingCommand. |
Method Summary | |
---|---|
boolean |
isPingable()
Does a ping on the hackystat server and returns true if the server was accessible. |
boolean |
isPingable(int timeout)
Does a ping on the hackystat server and returns true if the server was accessible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PingCommand(SingleSensorShell shell, SensorShellProperties properties)
shell
- The sensorshell.properties
- The sensorproperties.Method Detail |
---|
public boolean isPingable()
public boolean isPingable(int timeout)
timeout
- Maximum seconds to wait for server response. A 0 value or negative
value is equivalent to set time out to infinity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |