Class MtDeploymentServiceHandler

java.lang.Object
com.sap.cds.services.mt.impl.MtDeploymentServiceHandler
All Implemented Interfaces:
com.sap.cds.services.handler.EventHandler

public class MtDeploymentServiceHandler extends Object implements com.sap.cds.services.handler.EventHandler
The default handler for subscription events.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected final ThreadLocal<com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions>
    Thread local used to pass the instance manager options to the mt lib
    protected final Subscriber
    The subscriber that performs the actual tenant onboarding
  • Constructor Summary

    Constructors
    Constructor
    Description
    MtDeploymentServiceHandler(InstanceLifecycleManager instanceLifecycleManager, com.sap.cds.services.runtime.CdsRuntime runtime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    beforeSubscribe(com.sap.cds.services.mt.SubscribeEventContext context)
     
    protected com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions
    buildInstanceCreationOptions(com.sap.cds.services.mt.SubscribeEventContext context)
     
    protected void
    onSubscribe(com.sap.cds.services.mt.SubscribeEventContext context)
     
    protected void
    onUnsubscribe(com.sap.cds.services.mt.UnsubscribeEventContext context)
     
    protected void
    onUpgrade(com.sap.cds.services.mt.UpgradeEventContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALL_TENANTS

      public static final String ALL_TENANTS
      See Also:
    • subscriber

      protected final Subscriber subscriber
      The subscriber that performs the actual tenant onboarding
    • options

      protected final ThreadLocal<com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions> options
      Thread local used to pass the instance manager options to the mt lib
  • Constructor Details

    • MtDeploymentServiceHandler

      public MtDeploymentServiceHandler(InstanceLifecycleManager instanceLifecycleManager, com.sap.cds.services.runtime.CdsRuntime runtime)
  • Method Details

    • onSubscribe

      @HandlerOrder(-9900) protected void onSubscribe(com.sap.cds.services.mt.SubscribeEventContext context)
    • onUnsubscribe

      protected void onUnsubscribe(com.sap.cds.services.mt.UnsubscribeEventContext context)
    • onUpgrade

      @HandlerOrder(-9900) protected void onUpgrade(com.sap.cds.services.mt.UpgradeEventContext context)
    • beforeSubscribe

      protected void beforeSubscribe(com.sap.cds.services.mt.SubscribeEventContext context)
    • buildInstanceCreationOptions

      protected com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions buildInstanceCreationOptions(com.sap.cds.services.mt.SubscribeEventContext context)