Interface EtfStatus
-
public interface EtfStatus
Interface 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 double
cpuLoad()
Get cpu load as a double in the [0.0,1.0] interval.double
diskUsage()
Get disk usage as a double in the [0.0,1.0] interval.double
memoryUsage()
Get memory usage as a double in the [0.0,1.0] interval.java.lang.String
name()
The name of the used instancejava.lang.String
status()
Status of the instance.long
uptime()
Uptime of the instance in secondsjava.lang.String
version()
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.
-
-