mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[rrd4j] Fix missing service pid (#16569)
Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
95434d8a58
commit
2d42e2e135
@ -71,6 +71,7 @@ import org.openhab.core.persistence.QueryablePersistenceService;
|
|||||||
import org.openhab.core.persistence.strategy.PersistenceCronStrategy;
|
import org.openhab.core.persistence.strategy.PersistenceCronStrategy;
|
||||||
import org.openhab.core.persistence.strategy.PersistenceStrategy;
|
import org.openhab.core.persistence.strategy.PersistenceStrategy;
|
||||||
import org.openhab.core.types.State;
|
import org.openhab.core.types.State;
|
||||||
|
import org.osgi.framework.Constants;
|
||||||
import org.osgi.service.component.annotations.Activate;
|
import org.osgi.service.component.annotations.Activate;
|
||||||
import org.osgi.service.component.annotations.Component;
|
import org.osgi.service.component.annotations.Component;
|
||||||
import org.osgi.service.component.annotations.ConfigurationPolicy;
|
import org.osgi.service.component.annotations.ConfigurationPolicy;
|
||||||
@ -100,7 +101,8 @@ import org.slf4j.LoggerFactory;
|
|||||||
*/
|
*/
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
@Component(service = { PersistenceService.class,
|
@Component(service = { PersistenceService.class,
|
||||||
QueryablePersistenceService.class }, configurationPid = "org.openhab.rrd4j", configurationPolicy = ConfigurationPolicy.OPTIONAL)
|
QueryablePersistenceService.class }, configurationPid = "org.openhab.rrd4j", configurationPolicy = ConfigurationPolicy.OPTIONAL, property = Constants.SERVICE_PID
|
||||||
|
+ "=org.openhab.rrd4j")
|
||||||
public class RRD4jPersistenceService implements QueryablePersistenceService {
|
public class RRD4jPersistenceService implements QueryablePersistenceService {
|
||||||
|
|
||||||
private record Key(long timestamp, String name) implements Comparable<Key> {
|
private record Key(long timestamp, String name) implements Comparable<Key> {
|
||||||
|
Loading…
Reference in New Issue
Block a user