Class IdClosedForMaintenanceService
java.lang.Object
com.io7m.idstore.server.service.maintenance.IdClosedForMaintenanceService
- All Implemented Interfaces:
com.io7m.repetoir.core.RPServiceType
public final class IdClosedForMaintenanceService
extends Object
implements com.io7m.repetoir.core.RPServiceType
A service that allows toggling the server into maintenance mode.
-
Constructor Summary
ConstructorDescriptionA service that allows toggling the server into maintenance mode. -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeForMaintenance
(String messageText) The server is now closed for maintenance.isClosed()
void
The server is now open for business.toString()
-
Constructor Details
-
IdClosedForMaintenanceService
A service that allows toggling the server into maintenance mode.- Parameters:
inMetrics
- The metrics service
-
-
Method Details
-
openForBusiness
public void openForBusiness()The server is now open for business. -
closeForMaintenance
The server is now closed for maintenance.- Parameters:
messageText
- The message text
-
isClosed
- Returns:
- A message indicating the server is closed, if it is
-
description
- Specified by:
description
in interfacecom.io7m.repetoir.core.RPServiceType
-
toString
-