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 Maintenancecancel()Cancels maintenance.getUser()static Maintenanceinstance()static MaintenanceStarts 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
 
 -