@Service @RunLevel(value=10) public class InMemoryMonitoringDataRepository extends Object implements MonitoringDataRepository
Series.
secondsWrite
map request are served from the secondsRead map. This makes sure that a consistent dataset across all series
can be used to create a consistent visualisation that isn't half updated while the response is composed. However
this requires that callers are provided with a method that returns all the SeriesDatasets they need in a
single method invocation. Making multiple calls to this stores methods does not guarantee a consistent dataset across
all series since the swapLocalBuffer() can happen inbetween method calls.| Constructor and Description |
|---|
InMemoryMonitoringDataRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteDatasets(com.hazelcast.core.Message<fish.payara.monitoring.store.InMemoryMonitoringDataRepository.SeriesDatasetsSnapshot> message) |
void |
init() |
Iterable<SeriesDataset> |
selectAllSeries() |
List<SeriesDataset> |
selectSeries(Series series) |
@PostConstruct public void init()
public void addRemoteDatasets(com.hazelcast.core.Message<fish.payara.monitoring.store.InMemoryMonitoringDataRepository.SeriesDatasetsSnapshot> message)
public List<SeriesDataset> selectSeries(Series series)
selectSeries in interface MonitoringDataRepositorypublic Iterable<SeriesDataset> selectAllSeries()
selectAllSeries in interface MonitoringDataRepositoryCopyright © 2019. All rights reserved.