Class MockServiceDaemon

    • Constructor Detail

      • MockServiceDaemon

        public MockServiceDaemon​(String name)
    • Method Detail

      • 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 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