Package io.openems.edge.timedata.api
Interface Timedata
-
- All Superinterfaces:
CommonTimedataService
,OpenemsComponent
- All Known Subinterfaces:
InfluxTimedata
,Rrd4jTimedata
- All Known Implementing Classes:
DummyTimedata
,InfluxTimedataImpl
,Rrd4jTimedataImpl
,SimulatorApp
,SimulatorTimedata
@ProviderType public interface Timedata extends CommonTimedataService, OpenemsComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Timedata.ChannelId
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.util.Optional<java.lang.Object>>
getLatestValue(ChannelAddress channelAddress)
Gets the latest known value for the givenChannelAddress
.-
Methods inherited from interface io.openems.common.timedata.CommonTimedataService
handleQueryHistoricTimeseriesExportXlxsRequest, queryHistoricData, queryHistoricData, queryHistoricEnergy, queryHistoricEnergyPerPeriod
-
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
-
-
-
Method Detail
-
getLatestValue
java.util.concurrent.CompletableFuture<java.util.Optional<java.lang.Object>> getLatestValue(ChannelAddress channelAddress)
Gets the latest known value for the givenChannelAddress
.- Parameters:
channelAddress
- the ChannelAddress to be queried- Returns:
- the latest known value or Empty
-
-