Package com.github.ambry.server
Class StatsHeader
- java.lang.Object
-
- com.github.ambry.server.StatsHeader
-
public class StatsHeader extends java.lang.Object
A model object that contains metadata information about some reported stats. For example, the kind of stats that is being reported, timestamp and etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatsHeader.StatsDescription
-
Constructor Summary
Constructors Constructor Description StatsHeader()
StatsHeader(StatsHeader original)
A copy constructor.StatsHeader(StatsHeader.StatsDescription description, long timestamp, int storesContactedCount, int storesRespondedCount, java.util.List<java.lang.String> unreachableStores)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStoresContactedCount()
int
getStoresRespondedCount()
long
getTimestamp()
java.util.List<java.lang.String>
getUnreachableStores()
-
-
-
Constructor Detail
-
StatsHeader
public StatsHeader(StatsHeader.StatsDescription description, long timestamp, int storesContactedCount, int storesRespondedCount, java.util.List<java.lang.String> unreachableStores)
-
StatsHeader
public StatsHeader()
-
StatsHeader
public StatsHeader(StatsHeader original)
A copy constructor.- Parameters:
original
- The original copy.
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
- Returns:
- the reference timestamp at which the stats are collected
-
getUnreachableStores
public java.util.List<java.lang.String> getUnreachableStores()
- Returns:
- the list of unreachable stores generated in the stats report
-
getStoresContactedCount
public int getStoresContactedCount()
- Returns:
- the storesContactedCount.
-
getStoresRespondedCount
public int getStoresRespondedCount()
- Returns:
- the storesRespondedCount.
-
-