Class StatusInfo
- java.lang.Object
-
- org.craftercms.commons.monitoring.StatusInfo
-
public class StatusInfo extends Object
Gets current basic JVM status- Since:
- 3.0
- Author:
- Carlos Ortiz, Jose Ross
-
-
Field Summary
Fields Modifier and Type Field Description protected static DateTimeFormatter
FORMATTER
protected String
startup
protected long
uptime
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatusInfo()
Create the StatusInfo with current information.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusInfo
getCurrentStatus()
Create the StatusInfo with current information.String
getStartup()
long
getUptime()
String
toString()
-
-
-
Field Detail
-
FORMATTER
protected static final DateTimeFormatter FORMATTER
-
uptime
protected long uptime
-
startup
protected String startup
-
-
Method Detail
-
getCurrentStatus
public static StatusInfo getCurrentStatus()
Create the StatusInfo with current information.
-
getUptime
public long getUptime()
-
getStartup
public String getStartup()
-
-