Interface SystemProvider.CatalogItemFacet

Enclosing interface:
SystemProvider

public static interface SystemProvider.CatalogItemFacet
Applying this facet to a SystemProvider registers it as a consumer of Central Services catalog item updates. Morpheus polls the CS catalog for changes (via hash comparison) and calls onCatalogItemUpdate(com.morpheusdata.model.SystemCatalogItemUpdate) for each changed item, allowing the system plugin to process the new catalog payload as needed.
Since:
1.4.x
  • Method Details

    • onCatalogItemUpdate

      ServiceResponse onCatalogItemUpdate(SystemCatalogItemUpdate item)
      Called when a CS catalog item has changed (new hash detected). The system plugin is responsible for determining how to handle the updated payload (e.g. downloading packages, updating configuration, triggering workflows).
      Parameters:
      item - the catalog item update containing the name, code, hash, payload, and optional version
      Returns:
      ServiceResponse indicating success or failure of processing the update