Class NodeConfigurations.ModuleConfiguration

java.lang.Object
ca.cdr.test.model.NodeConfigurations.ModuleConfiguration
All Implemented Interfaces:
IModelJson, IModelJson
Enclosing class:
NodeConfigurations

public static class NodeConfigurations.ModuleConfiguration extends Object implements IModelJson
  • Constructor Details

  • Method Details

    • getConfigKeys

    • getConfigProperties

    • getConfigProperty

      public String getConfigProperty(String theKey)
    • getDependencies

    • getModuleType

    • setModuleType

      public void setModuleType(String moduleType)
    • getModuleId

      public String getModuleId()
    • setModuleId

      public void setModuleId(String theModuleId)
    • isClusterManager

      public boolean isClusterManager()
    • isFhirEndpointModuleType

      public boolean isFhirEndpointModuleType()
      Single source of truth for "does this module serve a FHIR endpoint?". This covers the FHIR REST endpoint family (all module types sharing the ENDPOINT_FHIR_REST prefix, including the versioned variants such as _DSTU2/_DSTU3/_R4/_R5), the hybrid providers endpoint, and the FHIR gateway.

      Both the admin-JSON port lookup (AdminJsonRestClient#getFhirEndpointModuleIdFromPort) and the harness endpoint discovery (LocalhostSmileHarness) consult this method so the two can never drift apart. Module-type string literals are used rather than ca.cdr.api.model.enm.ModuleTypeEnum because this module depends only on the public API boundary (cdr-api-public-java) and does not have cdr-api on its classpath.

      Returns:
      true when this module's type is a FHIR endpoint type; false for any other type or when the module type is absent.