Package com.sodius.mdw.server
Interface ServerState
-
public interface ServerState
Describes the state of the MDWorkbench Server application.Possible states are:
- active
- A data source structure can be requested.
- A new service execution can be requested.
- Launch queue is running requested services.
- suspended
- A data source structure can be requested.
- A new service execution can be requested.
- Launch queue is suspended, launch execution is delayed.
- maintenance
- A data source structure request is rejected.
- A new service execution request is rejected.
- Launch queue is suspended, launch execution is postponed until server restart.
- Since:
- 2.2.0
- See Also:
MDWorkbenchServer.getState()
- active
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isActive()
Determines whether MDWorkbench Server is active, in which case: A data source structure can be requested. A new service execution can be requested. Launch queue is running requested services.boolean
isMaintenance()
Determines whether MDWorkbench Server is under maintenance, in which case: A data source structure request is rejected. A new service execution request is rejected. Launch queue is suspended, launch execution is postponed until server restart.boolean
isResumeOnRestart()
Determines whether MDWorkbench Server state will be active on server restart.boolean
isSuspended()
Determines whether MDWorkbench Server is suspended, in which case: A data source structure can be requested. A new service execution can be requested. Launch queue is suspended, launch execution is delayed.
-
-
-
Method Detail
-
isActive
boolean isActive()
Determines whether MDWorkbench Server is active, in which case:- A data source structure can be requested.
- A new service execution can be requested.
- Launch queue is running requested services.
- Returns:
- a boolean indicating whether MDWorkbench Server is active.
-
isSuspended
boolean isSuspended()
Determines whether MDWorkbench Server is suspended, in which case:- A data source structure can be requested.
- A new service execution can be requested.
- Launch queue is suspended, launch execution is delayed.
- Returns:
- a boolean indicating whether MDWorkbench Server is suspended.
-
isMaintenance
boolean isMaintenance()
Determines whether MDWorkbench Server is under maintenance, in which case:- A data source structure request is rejected.
- A new service execution request is rejected.
- Launch queue is suspended, launch execution is postponed until server restart.
- Returns:
- a boolean indicating whether MDWorkbench Server is under maintenance.
- See Also:
isResumeOnRestart()
-
isResumeOnRestart
boolean isResumeOnRestart()
Determines whether MDWorkbench Server state will be active on server restart.- Returns:
true
if the server state is active on restart,false
if it is suspended.
-
-