Class SystemStatus

java.lang.Object
org.ametys.core.util.SystemStatus
All Implemented Interfaces:
Component, Serviceable

public class SystemStatus extends Object implements Component, Serviceable
Component that centralizes and provides the system status
  • Field Details

    • ROLE

      public static final String ROLE
      The Avalon Role
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • getInfo

      public Map<String,Object> getInfo()
      Get info about the current system status
      Returns:
      a map of info
    • 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