Package sonia.scm.lifecycle
Interface Restarter
public interface Restarter
Restarter is able to restart scm-manager.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturntrueif restarting scm-manager is supported.voidIssues a restart.
-
Method Details
-
isSupported
boolean isSupported()Returntrueif restarting scm-manager is supported. -
restart
Issues a restart. The method will fire aRestartEventto notify the system about the upcoming restart. If restarting is not supported by the underlying platform aRestartNotSupportedExceptionis 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.
-