Package jadex.bridge.nonfunctional
Interface INFProperty<T,U>
-
- All Known Implementing Classes:
AbstractNFProperty,ComponentUptimeProperty,CoreNumberProperty,CPULoadProperty,ExecutionTimeProperty,LatencyProperty,LoadedClassesProperty,MacAddressProperty,MaxMemoryProperty,MaxPermGenMemoryProperty,MemoryProperty,NFPropertyRef,NFRootProperty,SimpleValueNFProperty,TagProperty,TimedProperty,UsedMemoryProperty,UsedPermGenMemoryProperty,WaitingTimeProperty,WaitqueueProperty
public interface INFProperty<T,U>A non-functional property. NOTE: Implementing classes must implement a constructor with the signature INFProperty(String name) to allow the service to initialize the property during creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classINFProperty.Target
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>dispose()Property was removed and should be disposed.INFPropertyMetaInfogetMetaInfo()Returns the meta information about the property.java.lang.StringgetName()Gets the name of the property.IFuture<java.lang.String>getPrettyPrintValue()Returns the current value of the property in a human readable form.IFuture<T>getValue()Returns the current value of the property.IFuture<T>getValue(U unit)Returns the current value of the property, performs unit conversion if necessary.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the property.- Returns:
- The name of the property.
-
getMetaInfo
INFPropertyMetaInfo getMetaInfo()
Returns the meta information about the property.- Returns:
- The meta information about the property.
-
getValue
IFuture<T> getValue()
Returns the current value of the property.- Returns:
- The current value of the property.
-
getValue
IFuture<T> getValue(U unit)
Returns the current value of the property, performs unit conversion if necessary.- Parameters:
unit- Unit of the returned value.- Returns:
- The current value of the property.
-
getPrettyPrintValue
IFuture<java.lang.String> getPrettyPrintValue()
Returns the current value of the property in a human readable form.- Returns:
- The current value of the property.
-
dispose
IFuture<java.lang.Void> dispose()
Property was removed and should be disposed.
-
-