Package jadex.bridge.sensor.service
Class LatencyProperty
- java.lang.Object
-
- jadex.bridge.nonfunctional.AbstractNFProperty<T,U>
-
- jadex.bridge.nonfunctional.SimpleValueNFProperty<java.lang.Long,TimeUnit>
-
- jadex.bridge.sensor.time.TimedProperty
-
- jadex.bridge.sensor.service.LatencyProperty
-
- All Implemented Interfaces:
INFProperty<java.lang.Long,TimeUnit>
public class LatencyProperty extends TimedProperty
Property for the overall latency a service call. Computes endtime-starttime-methodexetime The local method execution time is measured locally and stored as non-functional property in the call context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFProperty
INFProperty.Target
-
-
Field Summary
Fields Modifier and Type Field Description protected IMethodInvocationListener
listener
The listener.protected MethodInfo
method
The method info.static java.lang.String
NAME
The name of the property.protected IServiceIdentifier
sid
The service identifier.-
Fields inherited from class jadex.bridge.nonfunctional.SimpleValueNFProperty
comp, value
-
Fields inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
metainfo
-
-
Constructor Summary
Constructors Constructor Description LatencyProperty(IInternalAccess comp, IService service, MethodInfo method)
Create a new property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
dispose()
Property was removed and should be disposed.java.lang.Long
measureValue()
Measure the value.void
setValue(java.lang.Long value)
Set the value.-
Methods inherited from class jadex.bridge.nonfunctional.SimpleValueNFProperty
getComponent, getPrettyPrintValue, getValue
-
Methods inherited from class jadex.bridge.nonfunctional.AbstractNFProperty
createProperty, getMetaInfo, getName, getValue, readNFProperties
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The name of the property.- See Also:
- Constant Field Values
-
sid
protected IServiceIdentifier sid
The service identifier.
-
listener
protected IMethodInvocationListener listener
The listener.
-
method
protected MethodInfo method
The method info.
-
-
Constructor Detail
-
LatencyProperty
public LatencyProperty(IInternalAccess comp, IService service, MethodInfo method)
Create a new property.
-
-
Method Detail
-
measureValue
public java.lang.Long measureValue()
Measure the value.- Specified by:
measureValue
in classSimpleValueNFProperty<java.lang.Long,TimeUnit>
-
setValue
public void setValue(java.lang.Long value)
Set the value.- Overrides:
setValue
in classSimpleValueNFProperty<java.lang.Long,TimeUnit>
- Parameters:
value
- The value to set.
-
dispose
public IFuture<java.lang.Void> dispose()
Property was removed and should be disposed.- Specified by:
dispose
in interfaceINFProperty<java.lang.Long,TimeUnit>
- Overrides:
dispose
in classAbstractNFProperty<java.lang.Long,TimeUnit>
-
-