public class HostCheckerBridge extends Object
| Constructor and Description |
|---|
HostCheckerBridge() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,HostChecker.PingResult> |
getAllPingResults()
Get all current ping results
|
static String |
getCategoryDescription(String category)
Get description for a category
|
static HostChecker |
getInstance()
Get singleton HostChecker instance
This should be set by Daemon.java to avoid duplicate instances
|
static Map<String,String> |
ping(String host)
Ping a single host and return as result as a Map
|
static void |
setInstance(HostChecker checker)
Set HostChecker instance (should be called by Daemon.java)
|
static void |
startPeriodicChecking()
Start periodic ping checking
|
static void |
stopPeriodicChecking()
Stop periodic ping checking
|
public static Map<String,HostChecker.PingResult> getAllPingResults()
public static String getCategoryDescription(String category)
category - category namepublic static HostChecker getInstance()
public static Map<String,String> ping(String host)
host - hostname to pingpublic static void setInstance(HostChecker checker)
public static void startPeriodicChecking()
public static void stopPeriodicChecking()