Class DefaultTenantLifecycle

    • Constructor Detail

      • DefaultTenantLifecycle

        public DefaultTenantLifecycle​(@NotNull
                                      @NotNull Tenant tenant)
        Instantiates the TenantLifecycle object for the given tenant
        Parameters:
        tenant - Tenant this lifecycle object is running under
    • Method Detail

      • isOperational

        public boolean isOperational()
        Description copied from interface: TenantLifecycle
        Indicates whether the tenant is at the operational state, i.e. tenant is not initializing, starting up, nor shutting down
        Specified by:
        isOperational in interface TenantLifecycle
        Returns:
        true if tenant is at the operational state, else false
      • afterTenantStartUp

        public void afterTenantStartUp​(Tenant tenant)
        Description copied from interface: TenantListener
        Will be called if a tenant has successfully started.
        Specified by:
        afterTenantStartUp in interface TenantListener
        Parameters:
        tenant - the tenant which was started
      • beforeTenantShutDown

        public void beforeTenantShutDown​(Tenant tenant)
        Description copied from interface: TenantListener
        Will be called if a tenant is about to shut down.
        Specified by:
        beforeTenantShutDown in interface TenantListener
        Parameters:
        tenant - tenant which will be shut down
      • onEvent

        protected void onEvent​(AbstractEvent event)
        Description copied from class: AbstractEventListener
        This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
        Specified by:
        onEvent in class AbstractEventListener<AbstractEvent>
        Parameters:
        event - the event to be processed
        See Also:
        ApplicationListener.onApplicationEvent(ApplicationEvent)