public class SummaryDashlet extends AbstractDashlet
Dashlet for testing purposes.| Constructor and Description |
|---|
SummaryDashlet(String name,
DashletSpec dashletSpec,
AlarmDao alarmDao)
Constructor for instantiating new objects.
|
| Modifier and Type | Method and Description |
|---|---|
int |
countBySeverity(boolean acknowledged,
long age,
OnmsSeverity onmsSeverity)
Searches for alarms with the given criterias and returns the number found.
|
int |
countByUei(boolean acknowledged,
long age,
String uei)
Searches for alarms with the given criterias and returns the number found.
|
DashletComponent |
getDashboardComponent() |
String |
getHumanReadableFormat(long secondsAll)
Returns a human-readable
String representation of a timestamp in the past. |
DashletComponent |
getWallboardComponent()
Updates the dashlet contents and computes new boosted state
|
getDashletSpec, getName, isBoosted, setDashletSpec, setNamepublic SummaryDashlet(String name, DashletSpec dashletSpec, AlarmDao alarmDao)
dashletSpec - the DashletSpec to be usedpublic String getHumanReadableFormat(long secondsAll)
String representation of a timestamp in the past.secondsAll - the timestamp to be usedpublic int countBySeverity(boolean acknowledged,
long age,
OnmsSeverity onmsSeverity)
acknowledged - search for acknowledged or unacknowledged alarmsage - the age of the alarmsonmsSeverity - the OnmsSeverity to search forpublic int countByUei(boolean acknowledged,
long age,
String uei)
acknowledged - search for acknowledged or unacknowledged alarmsage - the age of the alarmsuei - search for alarms with the specified ueipublic DashletComponent getWallboardComponent()
DashletgetWallboardComponent in interface DashletgetWallboardComponent in class AbstractDashletpublic DashletComponent getDashboardComponent()
getDashboardComponent in interface DashletgetDashboardComponent in class AbstractDashletCopyright © 2017. All rights reserved.