Package org.opennms.web.svclayer
Interface SiteStatusViewService
-
- All Known Implementing Classes:
DefaultSiteStatusViewService
@Transactional(readOnly=true) public interface SiteStatusViewServiceService layer API for the use cases that require the monitoed status of OpenNMS entities (i.e. OnmsNode) to be aggregated with status information that provides color and numberic indicators of status.- Author:
- David Hustace, DJ Gregor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<AggregateStatus>createAggregateStatuses(AggregateStatusView statusView)createAggregateStatusesCollection<AggregateStatus>createAggregateStatuses(AggregateStatusView statusView, String statusSite)createAggregateStatusesCollection<AggregateStatus>createAggregateStatusesUsingNodeId(int nodeId, String viewName)createAggregateStatusesUsingNodeIdAggregateStatusViewcreateAggregateStatusView(String statusViewName)This method returns method returns a collection of aggregated status of nodes for each device category.AggregateStatusgetAggregateStatus(String statusViewName, String statusSite, String rowLabel)getAggregateStatusCollection<OnmsNode>getNodes(String statusViewName, String statusSite, String rowLabel)getNodes
-
-
-
Method Detail
-
createAggregateStatusView
AggregateStatusView createAggregateStatusView(String statusViewName)
This method returns method returns a collection of aggregated status of nodes for each device category. In this case a column in the assets table is used as "site" for which to select devices. The devices are aggregated by the list of categories specified in categoryGrouping.- Parameters:
statusViewName- aStringobject.- Returns:
- a
AggregateStatusViewobject.
-
createAggregateStatuses
Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView)
createAggregateStatuses
- Parameters:
statusView- aAggregateStatusViewobject.- Returns:
- a
Collectionobject.
-
createAggregateStatuses
Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView, String statusSite)
createAggregateStatuses
- Parameters:
statusView- aAggregateStatusViewobject.statusSite- aStringobject.- Returns:
- a
Collectionobject.
-
createAggregateStatusesUsingNodeId
Collection<AggregateStatus> createAggregateStatusesUsingNodeId(int nodeId, String viewName)
createAggregateStatusesUsingNodeId
- Parameters:
nodeId- a int.viewName- aStringobject.- Returns:
- a
Collectionobject.
-
getAggregateStatus
AggregateStatus getAggregateStatus(String statusViewName, String statusSite, String rowLabel)
getAggregateStatus
- Parameters:
statusViewName- aStringobject.statusSite- aStringobject.rowLabel- aStringobject.- Returns:
- a
AggregateStatusobject.
-
getNodes
Collection<OnmsNode> getNodes(String statusViewName, String statusSite, String rowLabel)
getNodes
- Parameters:
statusViewName- aStringobject.statusSite- aStringobject.rowLabel- aStringobject.- Returns:
- a
Collectionobject.
-
-