Class HeartbeatDataFunction
- java.lang.Object
-
- org.openmuc.jeebus.spine.spi.function.FeatureFunction
-
- org.openmuc.jeebus.spine.utils.features.devicediagnosis.HeartbeatDataFunction
-
- All Implemented Interfaces:
java.lang.AutoCloseable,Shutdownable
public class HeartbeatDataFunction extends FeatureFunction
-
-
Field Summary
-
Fields inherited from class org.openmuc.jeebus.spine.spi.function.FeatureFunction
feature
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpineAcknowledgmentcall(org.openmuc.jeebus.spine.xsd.v1.CmdType cmd, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType sourceAddress)voidclose()Cleanly and promptly shut down this object, as well as all child objects and objects depending on this one.voidincreaseCounterAndNotifySubscribers()org.openmuc.jeebus.spine.xsd.v1.CmdTyperead(org.openmuc.jeebus.spine.xsd.v1.FilterType filter, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType featureAddress)voidshutdownExecutor()java.util.concurrent.ScheduledFuture<?>startHeartbeat()SpineAcknowledgmentwrite(org.openmuc.jeebus.spine.xsd.v1.CmdType cmdType, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType featureAddressType)-
Methods inherited from class org.openmuc.jeebus.spine.spi.function.FeatureFunction
bindingRequired, getFunctionName, getFunctionProperty, isCallable, isReadable, isWritable, matchAddress, requireBinding, setCallable, setFeature, setReadable, setWritable
-
-
-
-
Method Detail
-
read
public org.openmuc.jeebus.spine.xsd.v1.CmdType read(org.openmuc.jeebus.spine.xsd.v1.FilterType filter, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType featureAddress)- Specified by:
readin classFeatureFunction- Parameters:
filter- filter for partial read otherwise nullfeatureAddress- the feature address of the client feature- Returns:
- an
CmdTypeinstance filled with the requested information
-
write
public SpineAcknowledgment write(org.openmuc.jeebus.spine.xsd.v1.CmdType cmdType, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType featureAddressType)
- Specified by:
writein classFeatureFunction- Parameters:
cmdType- to be written data including optional filters for restricted function exchangefeatureAddressType- the feature address of the client feature- Returns:
- an acknowledgment stating the result of the operation
-
call
public SpineAcknowledgment call(org.openmuc.jeebus.spine.xsd.v1.CmdType cmd, org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType sourceAddress)
- Specified by:
callin classFeatureFunction- Parameters:
cmd- the command data belonging to this function callsourceAddress- the feature address of the client feature- Returns:
- an acknowledgment stating the result of the operation
-
startHeartbeat
public java.util.concurrent.ScheduledFuture<?> startHeartbeat()
-
increaseCounterAndNotifySubscribers
public void increaseCounterAndNotifySubscribers()
-
shutdownExecutor
public void shutdownExecutor()
-
close
public void close()
Description copied from interface:ShutdownableCleanly and promptly shut down this object, as well as all child objects and objects depending on this one.
-
-