public class DefaultSurveillanceViewService extends Object implements SurveillanceViewService
SurveillanceViewService.NodeRtc| Constructor and Description |
|---|
DefaultSurveillanceViewService() |
| Modifier and Type | Method and Description |
|---|---|
SurveillanceStatus[][] |
calculateCellStatus(View view)
Computes and returns the cell status used for displaying the surveillance view.
|
List<OnmsAlarm> |
getAlarmsForCategories(Set<OnmsCategory> rowCategories,
Set<OnmsCategory> colCategories)
Returns the list of OpenNMS alarm instances for a given set of row and column categories.
|
com.google.common.util.concurrent.ListeningExecutorService |
getExecutorService()
Returns the executor pool.
|
Map<String,String> |
getGraphResultsForResourceId(ResourceId resourceId)
Returns a map of graphs for a given resource id.
|
OnmsNode |
getNodeForId(int id)
Returns a node for a given id.
|
List<SurveillanceViewService.NodeRtc> |
getNodeRtcsForCategories(Set<OnmsCategory> rowCategories,
Set<OnmsCategory> colCategories)
Returns the list of RTC calculations for a given set of row and column categories.
|
List<OnmsNode> |
getNodesForCategories(Set<OnmsCategory> rowCategories,
Set<OnmsCategory> colCategories)
Returns the list of OpenNMS node instances for a given set of row and column categories.
|
List<OnmsNotification> |
getNotificationsForCategories(Set<OnmsCategory> rowCategories,
Set<OnmsCategory> colCategories,
Map<OnmsNotification,String> customSeverity)
Returns the list og OpenNMS notification instacnes for a given set of row and column categories.
|
List<OnmsCategory> |
getOnmsCategories()
Returns a list of the existing OpenNMS categories.
|
Set<OnmsCategory> |
getOnmsCategoriesFromViewCategories(Collection<Category> viewCats)
Returns a list of OpenNMS categories for a given collection of view categories
|
Map<OnmsResourceType,List<OnmsResource>> |
getResourceTypeMapForNodeId(int nodeId)
Returns a map of OpenNMS resource type/resource mappings for a given node id.
|
Map<OnmsResourceType,List<OnmsResource>> |
getResourceTypeMapForNodeId(String nodeId)
Returns a map of OpenNMS resource type/resource mappings for a given node id.
|
View |
selectDefaultViewForUsername(String username)
Returns the default view for a given username.
|
void |
setAlarmDao(AlarmDao alarmDao)
Method to set the alarm dao.
|
void |
setCategoryDao(CategoryDao categoryDao)
Method to set the category dao.
|
void |
setGraphDao(GraphDao graphDao)
Method to set the graph dao.
|
void |
setGroupDao(GroupDao groupDao)
Method to set the group dao.
|
void |
setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
Method to set the monitored service dao.
|
void |
setNodeDao(NodeDao nodeDao)
Method to set the node dao.
|
void |
setNotificationDao(NotificationDao notificationDao)
Method to set the notification dao.
|
void |
setOutageDao(OutageDao outageDao)
Method to set the outage dao.
|
void |
setResourceDao(ResourceDao resourceDao)
Method to set the resource dao.
|
void |
setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations)
Method to set the transaction operations instance
|
public void setNodeDao(NodeDao nodeDao)
nodeDao - the NodeDao to be usedpublic void setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
monitoredServiceDao - the MonitoredServiceDao to be usedpublic void setResourceDao(ResourceDao resourceDao)
resourceDao - the ResourceDao to be usedpublic void setGraphDao(GraphDao graphDao)
graphDao - the GraphDao to be usedpublic void setNotificationDao(NotificationDao notificationDao)
notificationDao - the NotificationDao to be usedpublic void setCategoryDao(CategoryDao categoryDao)
categoryDao - the CategoryDao to be usedpublic void setAlarmDao(AlarmDao alarmDao)
alarmDao - the AlarmDao to be usedpublic void setGroupDao(GroupDao groupDao)
groupDao - the GroupDao to be usedpublic void setOutageDao(OutageDao outageDao)
outageDao - the OutageDao to be usedpublic void setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations)
transactionOperations - public List<OnmsCategory> getOnmsCategories()
getOnmsCategories in interface SurveillanceViewServicepublic Set<OnmsCategory> getOnmsCategoriesFromViewCategories(Collection<Category> viewCats)
getOnmsCategoriesFromViewCategories in interface SurveillanceViewServiceviewCats - the categories to search forpublic SurveillanceStatus[][] calculateCellStatus(View view)
calculateCellStatus in interface SurveillanceViewServiceview - the view to useSurveillanceStatus instancespublic List<OnmsNode> getNodesForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
getNodesForCategories in interface SurveillanceViewServicerowCategories - the row categoriescolCategories - the column categoriespublic List<OnmsAlarm> getAlarmsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
getAlarmsForCategories in interface SurveillanceViewServicerowCategories - the row categoriescolCategories - the column categoriespublic List<OnmsNotification> getNotificationsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories, Map<OnmsNotification,String> customSeverity)
getNotificationsForCategories in interface SurveillanceViewServicerowCategories - the row categoriescolCategories - the column categoriescustomSeverity - the custom severity to be usedpublic List<SurveillanceViewService.NodeRtc> getNodeRtcsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
getNodeRtcsForCategories in interface SurveillanceViewServicerowCategories - the row categoriescolCategories - the column categoriesSurveillanceViewService.NodeRtcpublic Map<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(int nodeId)
getResourceTypeMapForNodeId in interface SurveillanceViewServicenodeId - the node id to search resources forpublic Map<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(String nodeId)
getResourceTypeMapForNodeId in interface SurveillanceViewServicenodeId - the node id to search resources forpublic Map<String,String> getGraphResultsForResourceId(ResourceId resourceId)
getGraphResultsForResourceId in interface SurveillanceViewServiceresourceId - the resource id to search graphs forpublic View selectDefaultViewForUsername(String username)
selectDefaultViewForUsername in interface SurveillanceViewServiceusername - the username to be usedpublic com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
getExecutorService in interface SurveillanceViewServicepublic OnmsNode getNodeForId(int id)
getNodeForId in interface SurveillanceViewServiceid - the node idCopyright © 2021. All rights reserved.