Interface EtfStatus
-
public interface EtfStatusInterface for accessing the service status of the connected instance. The remote ETF instance updates the status for the external WEB interface at certain intervals. The information can therefore be between 20 seconds and 2 minutes old.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecpuLoad()Get cpu load as a double in the [0.0,1.0] interval.doublediskUsage()Get disk usage as a double in the [0.0,1.0] interval.doublememoryUsage()Get memory usage as a double in the [0.0,1.0] interval.java.lang.Stringname()The name of the used instancejava.lang.Stringstatus()Status of the instance.longuptime()Uptime of the instance in secondsjava.lang.Stringversion()Version of the instance
-
-
-
Method Detail
-
name
java.lang.String name()
The name of the used instance- Returns:
- instance name as string
-
status
java.lang.String status()
Status of the instance. Values including GOOD, MINOR, MAJOR- Returns:
- status as string
-
version
java.lang.String version()
Version of the instance- Returns:
- version as string
-
uptime
long uptime()
Uptime of the instance in seconds- Returns:
- uptime in seconds as long value
-
memoryUsage
double memoryUsage()
Get memory usage as a double in the [0.0,1.0] interval.- Returns:
- the recent memory usage for the remote validator; a negative value if not available.
-
diskUsage
double diskUsage()
Get disk usage as a double in the [0.0,1.0] interval.- Returns:
- the recent disk usage for the remote validator; a negative value if not available.
-
cpuLoad
double cpuLoad()
Get cpu load as a double in the [0.0,1.0] interval.- Returns:
- the recent CPU usage for the remote validator; a negative value if not available.
-
-