Interface Restarter


public interface Restarter
Restarter is able to restart scm-manager.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if restarting scm-manager is supported.
    void
    restart(Class<?> cause, String reason)
    Issues a restart.
  • Method Details

    • isSupported

      boolean isSupported()
      Return true if restarting scm-manager is supported.
    • restart

      void restart(Class<?> cause, String reason)
      Issues a restart. The method will fire a RestartEvent to notify the system about the upcoming restart. If restarting is not supported by the underlying platform a RestartNotSupportedException is thrown.
      Parameters:
      cause - cause of the restart. This should be the class which calls this method.
      reason - reason for the required restart.
      Throws:
      RestartNotSupportedException - if restarting is not supported by the underlying platform.