public class NFPropertyProvider extends java.lang.Object implements INFPropertyProvider
Modifier and Type | Field and Description |
---|---|
protected IInternalAccess |
component
The component.
|
protected java.util.Map<java.lang.String,INFProperty<?,?>> |
nfproperties
Non-functional properties.
|
protected IComponentIdentifier |
parent
The parent.
|
Constructor and Description |
---|
NFPropertyProvider(IComponentIdentifier parent,
IInternalAccess component)
Create a new provider.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
addNFProperty(INFProperty<?,?> nfprop)
Add a non-functional property.
|
IInternalAccess |
getInternalAccess()
Get the internal access.
|
IFuture<java.lang.String[]> |
getNFAllPropertyNames()
Returns the names of all non-functional properties of this service.
|
IFuture<INFPropertyMetaInfo> |
getNFPropertyMetaInfo(java.lang.String name)
Returns the meta information about a non-functional property of this service.
|
IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> |
getNFPropertyMetaInfos()
Returns the meta information about a non-functional property of this service.
|
IFuture<java.lang.String[]> |
getNFPropertyNames()
Returns the names of all non-functional properties of this service.
|
<T> IFuture<T> |
getNFPropertyValue(java.lang.String name)
Returns the current value of a non-functional property of this service, performs unit conversion.
|
<T,U> IFuture<T> |
getNFPropertyValue(java.lang.String name,
U unit)
Returns the current value of a non-functional property of this service, performs unit conversion.
|
IComponentIdentifier |
getParentId()
Get the parent.
|
IFuture<java.lang.Void> |
removeNFProperty(java.lang.String name)
Remove a non-functional property.
|
IFuture<java.lang.Void> |
shutdownNFPropertyProvider()
Shutdown the provider.
|
protected IComponentIdentifier parent
protected IInternalAccess component
protected java.util.Map<java.lang.String,INFProperty<?,?>> nfproperties
public NFPropertyProvider(IComponentIdentifier parent, IInternalAccess component)
public IFuture<java.lang.String[]> getNFPropertyNames()
getNFPropertyNames
in interface INFPropertyProvider
public IFuture<java.lang.String[]> getNFAllPropertyNames()
getNFAllPropertyNames
in interface INFPropertyProvider
public IFuture<java.util.Map<java.lang.String,INFPropertyMetaInfo>> getNFPropertyMetaInfos()
getNFPropertyMetaInfos
in interface INFPropertyProvider
name
- Name of the property.public IFuture<INFPropertyMetaInfo> getNFPropertyMetaInfo(java.lang.String name)
getNFPropertyMetaInfo
in interface INFPropertyProvider
name
- Name of the property.public <T> IFuture<T> getNFPropertyValue(java.lang.String name)
getNFPropertyValue
in interface INFPropertyProvider
name
- Name of the property.type
- Type of the property value.public <T,U> IFuture<T> getNFPropertyValue(java.lang.String name, U unit)
getNFPropertyValue
in interface INFPropertyProvider
name
- Name of the property.unit
- Unit of the property value.public IFuture<java.lang.Void> addNFProperty(INFProperty<?,?> nfprop)
addNFProperty
in interface INFPropertyProvider
metainfo
- The metainfo.public IFuture<java.lang.Void> removeNFProperty(java.lang.String name)
removeNFProperty
in interface INFPropertyProvider
The
- name.public IComponentIdentifier getParentId()
public IFuture<java.lang.Void> shutdownNFPropertyProvider()
shutdownNFPropertyProvider
in interface INFPropertyProvider
public IInternalAccess getInternalAccess()