Package com.netflix.eureka.util
Class StatusInfo
- java.lang.Object
-
- com.netflix.eureka.util.StatusInfo
-
@Serializer("com.netflix.discovery.converters.EntityBodyConverter") public class StatusInfo extends java.lang.ObjectAn utility class for exposing status information of an instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatusInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getApplicationStats()static java.lang.StringgetCurrentTimeAsString()java.util.Map<java.lang.String,java.lang.String>getGeneralStats()com.netflix.appinfo.InstanceInfogetInstanceInfo()static java.lang.StringgetUpTime()Output the amount of time that has elapsed since the given date in the format x days, xx:xx.booleanisHealthy()
-
-
-
Method Detail
-
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()
-
-