Class LifecycleHandlerTest.LcDesc2

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.LifecycleDescriptor, de.iip_ecosphere.platform.support.PidLifecycleDescriptor, de.iip_ecosphere.platform.support.TerminatingLifecycleDescriptor
    Enclosing class:
    LifecycleHandlerTest

    public static class LifecycleHandlerTest.LcDesc2
    extends java.lang.Object
    implements de.iip_ecosphere.platform.support.TerminatingLifecycleDescriptor, de.iip_ecosphere.platform.support.PidLifecycleDescriptor
    A test handler with shutdown hook.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int waitingCount  
      • Fields inherited from interface de.iip_ecosphere.platform.support.LifecycleDescriptor

        AAS_PRIORITY, CMD_LINE_PRIORITY, INIT_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      LcDesc2()  
    • Field Detail

      • waitingCount

        private int waitingCount
    • Constructor Detail

      • LcDesc2

        public LcDesc2()
    • Method Detail

      • startup

        public void startup​(java.lang.String[] args)
        Specified by:
        startup in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • getShutdownHook

        public java.lang.Thread getShutdownHook()
        Specified by:
        getShutdownHook in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • priority

        public int priority()
        Specified by:
        priority in interface de.iip_ecosphere.platform.support.LifecycleDescriptor
      • continueWaiting

        public boolean continueWaiting()
        Specified by:
        continueWaiting in interface de.iip_ecosphere.platform.support.TerminatingLifecycleDescriptor
      • getPidFileName

        public java.lang.String getPidFileName()
        Specified by:
        getPidFileName in interface de.iip_ecosphere.platform.support.PidLifecycleDescriptor