|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.svclayer.support.DefaultSiteStatusViewService
public class DefaultSiteStatusViewService
This service layer class creates a collection that represents the current status of devices per site (a column from the asset table such as building, floor, etc.) The status per site is broken down into rows of categories from the categories table. example: site: HQBLDB |Routers/Switches | 1 of 20 | |Servers | 0 of 200 | |Hubs/APs | 5 of 30 |
| Constructor Summary | |
|---|---|
DefaultSiteStatusViewService()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSiteStatusViewService()
| Method Detail |
|---|
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 assciated 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 NodeDao getNodeDao()
getNodeDao
NodeDao 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||