Package org.ametys.core.util
Class SystemStatus
java.lang.Object
org.ametys.core.util.SystemStatus
- All Implemented Interfaces:
Disposable
,Initializable
,Component
Component that centralizes and provides the system status
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a system statusvoid
dispose()
Returns the system statusvoid
boolean
removeStatus
(String status) Add a system status
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
SystemStatus
public SystemStatus()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
getStatus
Returns the system status- Returns:
- The collection of system status
-
addStatus
Add a system status- Parameters:
status
- The system status to add- Returns:
true
if the system status did not already contain the specified status
-
removeStatus
Add a system status- Parameters:
status
- The system status to remove- Returns:
true
if the system status contained the specified element
-