| | |
| | | return new CollectorHistoryBatch(offset, 0, false, 0, List.of()); |
| | | } |
| | | |
| | | /** 读取检测柜模拟历史;正式适配器不依赖该演示扩展。 */ |
| | | default BtsHistoryBatch loadBtsHistoryPage(String historyKey, long offset, int limit) |
| | | { |
| | | return new BtsHistoryBatch(offset, 0, false, 0, List.of()); |
| | | } |
| | | |
| | | /** 追加检测柜模拟历史,供重启续采合同使用。 */ |
| | | default void appendBtsHistory(String historyKey, BtsHistoryRecord record) { } |
| | | |
| | | /** 原子保存删除采集器后的主状态,并删除该采集器的独立历史。 */ |
| | | default void saveAndDeleteCollectorHistory(SimulatorState state, String collectorCode) |
| | | { |
| | |
| | | public CollectorHistoryBatch { records = List.copyOf(records); } |
| | | } |
| | | |
| | | record BtsHistoryRecord(long sequenceId, Instant deviceTime, double currentA, double voltageV, |
| | | double capacityAh, double energyWh) { } |
| | | |
| | | record BtsHistoryBatch(long offset, long nextOffset, boolean hasMore, long total, |
| | | List<BtsHistoryRecord> records) |
| | | { |
| | | public BtsHistoryBatch { records = List.copyOf(records); } |
| | | } |
| | | |
| | | record CollectorHistoryFaults(List<Long> missingSequences, Long duplicateSequence, |
| | | Long conflictingSequence, boolean outOfOrder) |
| | | { |