public class ControlMetricsRequest
extends java.lang.Object
Constructor and Description |
---|
ControlMetricsRequest(ControlMetricType type,
int duration,
java.util.concurrent.TimeUnit unit,
java.util.Optional<DeviceId> deviceId)
Instantiates a new control metric request of the control metric type and
device identifier with the given projected time range.
|
ControlMetricsRequest(ControlMetricType type,
int duration,
java.util.concurrent.TimeUnit unit,
java.lang.String resourceName)
Instantiates a new control metric request of the control metric type and
resource name with the given projected time range.
|
ControlMetricsRequest(ControlMetricType type,
java.util.Optional<DeviceId> deviceId)
Instantiates a new control metric request of the control metric type and
device identifier.
|
ControlMetricsRequest(ControlMetricType type,
java.lang.String resourceName)
Instantiates a new control metric request of the control metric type and
resource name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Optional<DeviceId> |
getDeviceId()
Obtains device identifier.
|
int |
getDuration()
Obtains projected time duration.
|
java.lang.String |
getResourceName()
Obtains resource name.
|
ControlMetricType |
getType()
Obtains control metric type.
|
java.util.concurrent.TimeUnit |
getUnit()
Obtains projected time unit.
|
int |
hashCode() |
java.lang.String |
toString() |
public ControlMetricsRequest(ControlMetricType type, java.util.Optional<DeviceId> deviceId)
type
- control metric typedeviceId
- device identifierpublic ControlMetricsRequest(ControlMetricType type, int duration, java.util.concurrent.TimeUnit unit, java.util.Optional<DeviceId> deviceId)
type
- control metric typeduration
- projected time durationunit
- projected time unitdeviceId
- device dientiferpublic ControlMetricsRequest(ControlMetricType type, java.lang.String resourceName)
type
- control metric typeresourceName
- resource namepublic ControlMetricsRequest(ControlMetricType type, int duration, java.util.concurrent.TimeUnit unit, java.lang.String resourceName)
type
- control metric typeduration
- projected time durationunit
- projected time unitresourceName
- resource namepublic ControlMetricType getType()
public java.lang.String getResourceName()
public java.util.Optional<DeviceId> getDeviceId()
public int getDuration()
public java.util.concurrent.TimeUnit getUnit()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object