Class WeatherSocketStore
java.lang.Object
ecmwf.common.database.WeatherSocketStore
Transactional background store, cached schema capability and indexed transfer-detail provenance.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckConfigurationCapacity(String document) voidstatic voidcheckSchema(Connection connection) Read-only capability probe; never creates or alters production schema.static voiddecorate(long transferId, List<TransferStatistics> statistics) static intlegacySendingIndex(long transferId, int candidate) persist(WeatherObservation observation) static WeatherSocketStore.Resultwrite(Connection connection, WeatherObservation observation) The caller owns commit/rollback.
-
Constructor Details
-
WeatherSocketStore
public WeatherSocketStore()
-
-
Method Details
-
checkSchema
- Throws:
SQLException
-
checkConfigurationCapacity
- Throws:
SQLException
-
decorate
-
legacySendingIndex
public static int legacySendingIndex(long transferId, int candidate) -
checkSchema
Read-only capability probe; never creates or alters production schema.- Throws:
SQLException
-
persist
- Throws:
SQLException
-
write
public static WeatherSocketStore.Result write(Connection connection, WeatherObservation observation) throws SQLException The caller owns commit/rollback. No explicit transfer-row lock or DDL; foreign keys still take engine locks.- Throws:
SQLException
-