Class AlarmsDashlet

  • All Implemented Interfaces:
    Dashlet

    public class AlarmsDashlet
    extends AbstractDashlet
    This class represents a Alert Dashlet with minimum details.
    Author:
    Christian Pape
    • Constructor Detail

      • AlarmsDashlet

        public AlarmsDashlet​(java.lang.String name,
                             DashletSpec dashletSpec,
                             AlarmDao alarmDao,
                             NodeDao nodeDao)
        Constructor for instantiating new objects.
        Parameters:
        dashletSpec - the DashletSpec to be used
        alarmDao - the AlarmDao to be used
        nodeDao - the NodeDao to be used
    • Method Detail

      • getHumanReadableFormat

        public java.lang.String getHumanReadableFormat​(long secondsAll)
        Returns a human-readable String representation of a timestamp in the past.
        Parameters:
        secondsAll - the timestamp to be used
        Returns:
        a human-readable representation
      • isBoosted

        public boolean isBoosted()
        Description copied from interface: Dashlet
        Checks whether this dashlet is boosted.
        Specified by:
        isBoosted in interface Dashlet
        Overrides:
        isBoosted in class AbstractDashlet
        Returns:
        true, if boosted, false otherwise