com.netflix.eureka.util
Class StatusInfo

java.lang.Object
  extended by 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.


Nested Class Summary
static class StatusInfo.Builder
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getApplicationStats()
           
static java.lang.String getCurrentTimeAsString()
           
 java.util.Map<java.lang.String,java.lang.String> getGeneralStats()
           
 com.netflix.appinfo.InstanceInfo getInstanceInfo()
           
static java.lang.String getUpTime()
          Output the amount of time that has elapsed since the given date in the format x days, xx:xx.
 boolean isHealthy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()