Fix build after core changes (#15869)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
24f4234e9b
commit
91b294521e
@ -53,6 +53,7 @@ import org.openhab.core.thing.type.ChannelGroupTypeUID;
|
|||||||
import org.openhab.core.thing.type.ChannelTypeUID;
|
import org.openhab.core.thing.type.ChannelTypeUID;
|
||||||
import org.openhab.core.types.Command;
|
import org.openhab.core.types.Command;
|
||||||
import org.openhab.core.types.State;
|
import org.openhab.core.types.State;
|
||||||
|
import org.openhab.core.types.TimeSeries;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@ -465,6 +466,10 @@ public class TestICloud {
|
|||||||
public void postCommand(ChannelUID channelUID, Command command) {
|
public void postCommand(ChannelUID channelUID, Command command) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendTimeSeries(ChannelUID channelUID, TimeSeries timeSeries) {
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void migrateThingType(Thing thing, ThingTypeUID thingTypeUID, Configuration configuration) {
|
public void migrateThingType(Thing thing, ThingTypeUID thingTypeUID, Configuration configuration) {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -199,6 +199,7 @@ public class InfluxDBPersistenceService implements ModifiablePersistenceService
|
|||||||
store(item, date, state, null);
|
store(item, date, state, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
|
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
|
||||||
if (!serviceActivated) {
|
if (!serviceActivated) {
|
||||||
logger.warn("InfluxDB service not ready. Storing {} rejected.", item);
|
logger.warn("InfluxDB service not ready. Storing {} rejected.", item);
|
||||||
|
|||||||
@ -131,6 +131,11 @@ public class InMemoryPersistenceService implements ModifiablePersistenceService
|
|||||||
internalStore(item.getName(), date, state);
|
internalStore(item.getName(), date, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
|
||||||
|
internalStore(Objects.requireNonNullElse(alias, item.getName()), date, state);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean remove(FilterCriteria filter) throws IllegalArgumentException {
|
public boolean remove(FilterCriteria filter) throws IllegalArgumentException {
|
||||||
String itemName = filter.getItemName();
|
String itemName = filter.getItemName();
|
||||||
|
|||||||
@ -151,6 +151,12 @@ public class JdbcPersistenceService extends JdbcMapper implements ModifiablePers
|
|||||||
scheduler.execute(() -> internalStore(item, date, state));
|
scheduler.execute(() -> internalStore(item, date, state));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
|
||||||
|
// alias is not supported
|
||||||
|
scheduler.execute(() -> internalStore(item, null, item.getState()));
|
||||||
|
}
|
||||||
|
|
||||||
private synchronized void internalStore(Item item, @Nullable ZonedDateTime date, State state) {
|
private synchronized void internalStore(Item item, @Nullable ZonedDateTime date, State state) {
|
||||||
// Do not store undefined/uninitialized data
|
// Do not store undefined/uninitialized data
|
||||||
if (state instanceof UnDefType) {
|
if (state instanceof UnDefType) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user