Class WeatherAdministration
java.lang.Object
ecmwf.ecpds.master.weather.WeatherAdministration
Master-owned control state. Database work is confined to startup and explicit administrator saves; snapshots never
query the database.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionWeatherAdministration(WeatherAdministration.Store store, WeatherPersistence persistence, WeatherSourceRegistry sources) -
Method Summary
Modifier and TypeMethodDescriptioncapabilities(String sourceId) static StringformatPaths(List<WeatherObservation.Path> paths) voidload()static Set<WeatherObservation.Path> parsePaths(String text) static Set<WeatherObservation.Path> parsePaths(String text, int maximum) static Set<WeatherObservation.Path> parsePaths(String text, int maximum, int maximumBytes) probes()receive(WeatherBatch batch) receive(WeatherBatch batch, Object currentRegistration) Ingress verifies signed identity/timing and admits only to bounded in-memory state; database work is background-only.voidreconcile(Set<WeatherObservation.Path> paths) voidThe owning background scheduler updates readiness; page reads never run database probes.save(long expectedRevision, Set<WeatherObservation.Path> paths, String actor) setCollectionEnabled(long expectedRevision, boolean enabled, String actor) sources()status()booleanlong
-
Constructor Details
-
WeatherAdministration
-
WeatherAdministration
public WeatherAdministration(WeatherAdministration.Store store, WeatherPersistence persistence, WeatherSourceRegistry sources)
-
-
Method Details
-
probes
-
reconcile
- Throws:
Exception
-
load
-
save
public WeatherAdministration.Status save(long expectedRevision, Set<WeatherObservation.Path> paths, String actor) throws Exception - Throws:
Exception
-
setCollectionEnabled
public WeatherAdministration.Status setCollectionEnabled(long expectedRevision, boolean enabled, String actor) throws Exception - Throws:
Exception
-
refreshAvailability
public void refreshAvailability()The owning background scheduler updates readiness; page reads never run database probes. -
persistence
-
viewer
-
viewerEnabled
public boolean viewerEnabled() -
viewerRevision
public long viewerRevision() -
status
-
sources
-
selectedSources
-
capabilities
-
receive
- Throws:
IOException
-
receive
public WeatherAcknowledgement receive(WeatherBatch batch, Object currentRegistration) throws IOException Ingress verifies signed identity/timing and admits only to bounded in-memory state; database work is background-only.- Throws:
IOException
-
parsePaths
-
parsePaths
-
parsePaths
-
formatPaths
-