Interface Service

All Known Subinterfaces:
DirectoryWatchService
All Known Implementing Classes:
SimpleDirectoryWatchService

public interface Service
Interface definition for services.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks to see if the service is still running.
    void
    Starts the service.
    void
    Stops the service.
  • Method Details

    • start

      void start() throws Exception
      Starts the service. This method blocks until the service has completely started.
      Throws:
      Exception - if there was a problem starting the service
    • stop

      void stop()
      Stops the service. This method blocks until the service has completely shut down.
    • isRunning

      boolean isRunning()
      Checks to see if the service is still running.
      Returns:
      true if the service is running, false otherwise.