Class MockServiceDaemon

    • Constructor Summary

      Constructors 
      Constructor Description
      MockServiceDaemon​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      This method is used to return the name of the Fiber.
      boolean getStartCalled()  
      int getStatus()
      This method is used to get the current status of the Fiber.
      java.lang.String getStatusText()
      status
      void pause()
      This method is used to suspend a currently running Fiber.
      void resume()
      This method is used to resume a suspeneded Fiber.
      void start()
      This method is used to start the initialization process of the Fiber, which should eventually transition to a RUNNING status.
      void stop()
      This method is used to stop a currently running Fiber.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockServiceDaemon

        public MockServiceDaemon​(java.lang.String name)
    • Method Detail

      • getStatusText

        public java.lang.String getStatusText()
        Description copied from interface: ServiceDaemon

        status

        Specified by:
        getStatusText in interface ServiceDaemon
        Returns:
        a String object.
      • pause

        public void pause()
        Description copied from interface: PausableFiber
        This method is used to suspend a currently running Fiber. When invoked the Fiber will begin the transition to a PAUSED status after changing its internal state, if applicable.
        Specified by:
        pause in interface PausableFiber
      • resume

        public void resume()
        Description copied from interface: PausableFiber
        This method is used to resume a suspeneded Fiber. If the thread is already running then this method should have no effect on the current Fiber.
        Specified by:
        resume in interface PausableFiber
      • getName

        public java.lang.String getName()
        Description copied from interface: Fiber
        This method is used to return the name of the Fiber. The name of the instance is defined by the implementor, but it should be realitively unique when possible.
        Specified by:
        getName in interface Fiber
        Returns:
        The name of the Fiber.
      • getStatus

        public int getStatus()
        Description copied from interface: Fiber
        This method is used to get the current status of the Fiber. The status of the fiber should be one of the predefined constants of the Fiber interface, or from one of the derived interfaces.
        Specified by:
        getStatus in interface Fiber
        Returns:
        The current status of the Fiber.
      • start

        public void start()
        Description copied from interface: Fiber
        This method is used to start the initialization process of the Fiber, which should eventually transition to a RUNNING status.
        Specified by:
        start in interface Fiber
      • getStartCalled

        public boolean getStartCalled()
      • stop

        public void stop()
        Description copied from interface: Fiber
        This method is used to stop a currently running Fiber. Once invoked the Fiber should begin it's shutdown process. Depending on the implementation, this method may block until the Fiber terminates.
        Specified by:
        stop in interface Fiber