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 Maintenancecancel()Cancels maintenancegetUser()static Maintenanceinstance()static MaintenanceStarts maintenance
-
Method Details
-
instance
- Returns:
- the current maintenance instance or
null, if its missing
-
start
Starts maintenance- Parameters:
user- the userlogoffDelay- delay before logging users off- Returns:
- the created maintenance instance
- Throws:
IllegalStateException- if maintenance is already running
-
cancel
-
getUser
-
getStartTime
-
getLogoffTime
-