public class DefaultSiteStatusViewService extends Object implements SiteStatusViewService
| Constructor and Description |
|---|
DefaultSiteStatusViewService() |
| Modifier and Type | Method and Description |
|---|---|
Collection<AggregateStatus> |
createAggregateStatuses(AggregateStatusView statusView)
createAggregateStatuses
|
Collection<AggregateStatus> |
createAggregateStatuses(AggregateStatusView statusView,
String statusSite)
createAggregateStatuses
|
Collection<AggregateStatus> |
createAggregateStatusesUsingNodeId(int nodeId,
String viewName)
createAggregateStatusesUsingNodeId
|
Collection<AggregateStatus> |
createAggregateStatusUsingAssetColumn(AggregateStatusView statusView)
createAggregateStatusUsingAssetColumn
|
AggregateStatusView |
createAggregateStatusView(String statusViewName)
This method returns method returns a collection of aggregated status of nodes for each
device category.
|
AggregateStatus |
getAggregateStatus(String statusViewName,
String statusSite,
String rowLabel)
getAggregateStatus
|
NodeDao |
getNodeDao()
getNodeDao
|
Collection<OnmsNode> |
getNodes(String statusViewName,
String statusSite,
String rowLabel)
getNodes
|
void |
setCategoryDao(CategoryDao dao)
setCategoryDao
|
void |
setNodeDao(NodeDao nodeDao)
setNodeDao
|
void |
setSiteStatusViewConfigDao(SiteStatusViewConfigDao dao)
setSiteStatusViewConfigDao
|
public AggregateStatusView createAggregateStatusView(String statusViewName)
createAggregateStatusView in interface SiteStatusViewServicestatusViewName - a String object.AggregateStatusView object.SiteStatusViewService.createAggregateStatusView(java.lang.String)public Collection<AggregateStatus> createAggregateStatusesUsingNodeId(int nodeId, String viewName)
createAggregateStatusesUsingNodeId
Use the node id to find the value associated with column defined in the view. The view defines a column and column value to be used by default. This method determines the column value using the value associated with the asset record for the given nodeid.createAggregateStatusesUsingNodeId in interface SiteStatusViewServicenodeId - a int.viewName - a String object.Collection object.SiteStatusViewService.createAggregateStatusesUsingNodeId(int, java.lang.String)public Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView, String statusSite)
createAggregateStatuses
This creator is used when wanting to use a different value than the defined column value defined for the requested view.createAggregateStatuses in interface SiteStatusViewServicestatusView - a AggregateStatusView object.statusSite - a String object.Collection object.SiteStatusViewService.createAggregateStatuses(org.opennms.netmgt.model.AggregateStatusView, java.lang.String)public Collection<AggregateStatus> createAggregateStatusUsingAssetColumn(AggregateStatusView statusView)
createAggregateStatusUsingAssetColumn
statusView - a AggregateStatusView object.Collection object.public void setNodeDao(NodeDao nodeDao)
setNodeDao
nodeDao - a NodeDao object.public void setCategoryDao(CategoryDao dao)
setCategoryDao
dao - a CategoryDao object.public void setSiteStatusViewConfigDao(SiteStatusViewConfigDao dao)
setSiteStatusViewConfigDao
dao - a SiteStatusViewConfigDao object.public Collection<AggregateStatus> createAggregateStatuses(AggregateStatusView statusView)
createAggregateStatuses
createAggregateStatuses in interface SiteStatusViewServicestatusView - a AggregateStatusView object.Collection object.public AggregateStatus getAggregateStatus(String statusViewName, String statusSite, String rowLabel)
getAggregateStatus
getAggregateStatus in interface SiteStatusViewServicestatusViewName - a String object.statusSite - a String object.rowLabel - a String object.AggregateStatus object.public Collection<OnmsNode> getNodes(String statusViewName, String statusSite, String rowLabel)
getNodes
getNodes in interface SiteStatusViewServicestatusViewName - a String object.statusSite - a String object.rowLabel - a String object.Collection object.Copyright © 2022. All rights reserved.