Package org.onosproject.cpman
Class ControlMetricsRequest
- java.lang.Object
- 
- org.onosproject.cpman.ControlMetricsRequest
 
- 
 public class ControlMetricsRequest extends java.lang.ObjectA container class that is used to request control metric of remote node.
- 
- 
Constructor SummaryConstructors Constructor Description 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, 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, java.lang.String resourceName)Instantiates a new control metric request of the control metric type and resource name.ControlMetricsRequest(ControlMetricType type, java.util.Optional<DeviceId> deviceId)Instantiates a new control metric request of the control metric type and device identifier.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Optional<DeviceId>getDeviceId()Obtains device identifier.intgetDuration()Obtains projected time duration.java.lang.StringgetResourceName()Obtains resource name.ControlMetricTypegetType()Obtains control metric type.java.util.concurrent.TimeUnitgetUnit()Obtains projected time unit.inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ControlMetricsRequestpublic ControlMetricsRequest(ControlMetricType type, java.util.Optional<DeviceId> deviceId) Instantiates a new control metric request of the control metric type and device identifier.- Parameters:
- type- control metric type
- deviceId- device identifier
 
 - 
ControlMetricsRequestpublic 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.- Parameters:
- type- control metric type
- duration- projected time duration
- unit- projected time unit
- deviceId- device dientifer
 
 - 
ControlMetricsRequestpublic ControlMetricsRequest(ControlMetricType type, java.lang.String resourceName) Instantiates a new control metric request of the control metric type and resource name.- Parameters:
- type- control metric type
- resourceName- resource name
 
 - 
ControlMetricsRequestpublic 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.- Parameters:
- type- control metric type
- duration- projected time duration
- unit- projected time unit
- resourceName- resource name
 
 
- 
 - 
Method Detail- 
getTypepublic ControlMetricType getType() Obtains control metric type.- Returns:
- control metric type
 
 - 
getResourceNamepublic java.lang.String getResourceName() Obtains resource name.- Returns:
- resource name
 
 - 
getDeviceIdpublic java.util.Optional<DeviceId> getDeviceId() Obtains device identifier.- Returns:
- device identifier
 
 - 
getDurationpublic int getDuration() Obtains projected time duration.- Returns:
- projected time duration
 
 - 
getUnitpublic java.util.concurrent.TimeUnit getUnit() Obtains projected time unit.- Returns:
- projected time unit
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-