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