Package org.ametys.core.util
Class SystemStatus
- java.lang.Object
-
- org.ametys.core.util.SystemStatus
-
- All Implemented Interfaces:
Disposable
,Initializable
,Component
public class SystemStatus extends Object implements Component, Initializable, Disposable
Component that centralizes and provides the system status
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>
_systemStatus
static String
ROLE
The Avalon Role
-
Constructor Summary
Constructors Constructor Description SystemStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addStatus(String status)
Add a system statusvoid
dispose()
Collection<String>
getStatus()
Returns the system statusvoid
initialize()
boolean
removeStatus(String status)
Add a system status
-
-
-
Field Detail
-
_systemStatus
private Set<String> _systemStatus
-
-
Constructor Detail
-
SystemStatus
public SystemStatus()
-
-
Method Detail
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
getStatus
public Collection<String> getStatus()
Returns the system status- Returns:
- The collection of system status
-
addStatus
public boolean addStatus(String status)
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
public boolean removeStatus(String status)
Add a system status- Parameters:
status
- The system status to remove- Returns:
true
if the system status contained the specified element
-
-