com.netflix.eureka.util
Class StatusInfo
java.lang.Object
com.netflix.eureka.util.StatusInfo
@Serializer(value="com.netflix.eureka.converters.EntityBodyConverter")
public class StatusInfo
- extends java.lang.Object
An utility class for exposing status information of an instance.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstanceInfo
public com.netflix.appinfo.InstanceInfo getInstanceInfo()
isHealthy
public boolean isHealthy()
getGeneralStats
public java.util.Map<java.lang.String,java.lang.String> getGeneralStats()
getApplicationStats
public java.util.Map<java.lang.String,java.lang.String> getApplicationStats()
getUpTime
public static java.lang.String getUpTime()
- Output the amount of time that has elapsed since the given date in the
format x days, xx:xx.
- Returns:
- A string representing the formatted interval.
getCurrentTimeAsString
public static java.lang.String getCurrentTimeAsString()