Package org.bgerp.app.dist
Class Maintenance
java.lang.Object
org.bgerp.app.dist.Maintenance
Maintenance application' state. Blocking logging in and logging off users before the app's restart.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Maintenance
cancel()
Cancels maintenance.getUser()
static Maintenance
instance()
static Maintenance
Starts maintenance.
-
Method Details
-
instance
- Returns:
- the current maintenance instance or
null
, if its missing.
-
start
Starts maintenance.- Parameters:
user
- the user.logoffDelay
- delay before logging users off.- Returns:
- the created maintenance instance.
- Throws:
IllegalStateException
- if maintenance is already running.
-
cancel
Cancels maintenance.- Returns:
- the cancelled maintenance instance.
-
getUser
-
getStartTime
-
getLogoffTime
-