Class FamilyServiceStub

All Implemented Interfaces:
ParameterConfigurerProvider, Service, ServiceBase

public class FamilyServiceStub extends DefaultServiceImpl
Family service implementations are supposed to delegate their operations to the (alternative) active family member. Thus, there may not be a fully fledged service implementation for the family and management operations may just not work. This class is a basis for a no-operation service (stub) that delegates relevant operations to its active service. To not further interfere with the switching mechanism, the active service is provided via a supplier. Currently, not all management operations are supported, e.g., migrate, switch etc. are missing (in the ServiceBase interface).
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • FamilyServiceStub

      public FamilyServiceStub(String serviceId, InputStream ymlFile)
      Creates a family service stub from a service id and a YAML artifact.
      Parameters:
      serviceId - the service id
      ymlFile - the YML file containing the YAML artifact with the service descriptor
  • Method Details