public class TimeStampedMetricDescriptor extends Object
MetricDescriptor
with a time stamp.Constructor and Description |
---|
TimeStampedMetricDescriptor(MetricDescriptor descriptor)
Creates a new
TimeStampedMetricDescriptor using the current time. |
TimeStampedMetricDescriptor(MetricDescriptor descriptor,
long timeStamp)
Creates a new
TimeStampedMetricDescriptor using the specified
time stamp. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object toCompare) |
MetricDescriptor |
getDescriptor()
Gets the
MetricDescriptor . |
long |
getTimeStamp()
Gets the time stamp.
|
int |
hashCode() |
void |
setTimeStamp(long toSet)
Sets the time stamp.
|
String |
toDebugString()
Gets a detailed representation of this object to facilitate debugging.
|
String |
toString() |
public TimeStampedMetricDescriptor(MetricDescriptor descriptor)
TimeStampedMetricDescriptor
using the current time.descriptor
- the MetricDescriptor
to associate with a time
stampIllegalArgumentException
- if a null MetricDescriptor
is
suppliedpublic TimeStampedMetricDescriptor(MetricDescriptor descriptor, long timeStamp)
TimeStampedMetricDescriptor
using the specified
time stamp.descriptor
- the MetricDescriptor
to associate with a time
stamptimeStamp
- the initial time stamp (in UTC) to associate with the
provided MetricDescriptor
IllegalArgumentException
- if a null MetricDescriptor
is
suppliedpublic MetricDescriptor getDescriptor()
MetricDescriptor
.public long getTimeStamp()
public void setTimeStamp(long toSet)
toSet
- time stamppublic String toDebugString()
Copyright © 2015. All Rights Reserved.