Class Lifecycle

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class Lifecycle
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
    • Constructor Detail

      • Lifecycle

        public Lifecycle​(Handler postStart,
                         Handler preStop)
      • Lifecycle

        public Lifecycle()
    • Method Detail

      • getPostStart

        public Handler getPostStart()
      • getPreStop

        public Handler getPreStop()
      • setPostStart

        public void setPostStart​(Handler postStart)
      • setPreStop

        public void setPreStop​(Handler preStop)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object