Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the PixelsService to be runtime configured #142

Merged

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented May 3, 2024

Follow-up of the work on glencoesoftware/omero-zarr-pixel-buffer#5 and glencoesoftware/omero-ms-core#31, this makes the necessary adjustments in the micro-service to make the pixels service configurable at runtime

  • consumes the development versions of omero-zarr-pixel-buffer and omero-ms-core
  • the PixelsService subclass is removed from this repository and replaced by com.glencoesoftware.omero.zarr.ZarrPixelsService which should now include all the require logic
  • the NoopQueryImpl class should be injected into the constructor via Spring.
  • the new property omero.pixeldata.pixels_service set to ZarrPixelsService by default is added to the configuration

With these changes, it should be possible to extend the logic by subclassing ZarrPixelsService, defining a Spring configuration under blitz/*PixelBuffer.xml with a named bean for the new pixel service, add the new JAR to the libraries and update the classpath and change omero.pixeldata.pixels_service in the configuration to use the new bean name.

Replace the micro-service PixelsService subclass by the upstream
com.glencoesoftware.omero.zarr.ZarrPixelsService
Inject the NoopQueryImpl from omero-ms-core in the ZarrPixelsService
constructor
@sbesson sbesson requested review from chris-allan and kkoz May 3, 2024 11:36
Copy link
Member

@kkoz kkoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the new PixelsService successfully. Retrieved tiles for both the new pixel buffer and S3 Zarr files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants