Class WeatherSourceRegistry
java.lang.Object
ecmwf.ecpds.master.weather.WeatherSourceRegistry
Bounded source discovery. Only the Master supplies subscribe-authenticated callback registrations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic final recordstatic final classTemporary loss of registration or verification capacity must not permanently retire source evidence. -
Constructor Summary
ConstructorsConstructorDescriptionWeatherSourceRegistry(LongSupplier nanoTime) WeatherSourceRegistry(LongSupplier nanoTime, LongSupplier wallTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidOne callback at most; no network calls or cryptography while holding the registry monitor.booleanregistered(String source) snapshot()verify(WeatherBatch batch, Object currentRegistration) A shared REST signature or a matching source name cannot supply the registered public key.
-
Constructor Details
-
WeatherSourceRegistry
public WeatherSourceRegistry() -
WeatherSourceRegistry
-
WeatherSourceRegistry
-
-
Method Details
-
poll
-
snapshot
-
verify
public WeatherSourceRegistry.Timing verify(WeatherBatch batch, Object currentRegistration) throws IOException, GeneralSecurityException A shared REST signature or a matching source name cannot supply the registered public key.- Throws:
IOExceptionGeneralSecurityException
-
registered
-
close
public void close()
-