public interface SurveillanceViewService
| Modifier and Type | Interface and Description |
|---|---|
static class |
SurveillanceViewService.NodeRtc
The class for storing node RTC calculations
|
| 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(String 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.
|
List<OnmsCategory> getOnmsCategories()
SurveillanceStatus[][] calculateCellStatus(View view)
view - the view to useSurveillanceStatus instancesSet<OnmsCategory> getOnmsCategoriesFromViewCategories(Collection<Category> viewCats)
viewCats - the categories to search forList<OnmsAlarm> getAlarmsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
rowCategories - the row categoriescolCategories - the column categoriesList<OnmsNotification> getNotificationsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories, Map<OnmsNotification,String> customSeverity)
rowCategories - the row categoriescolCategories - the column categoriescustomSeverity - the custom severity to be usedList<OnmsNode> getNodesForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
rowCategories - the row categoriescolCategories - the column categoriesList<SurveillanceViewService.NodeRtc> getNodeRtcsForCategories(Set<OnmsCategory> rowCategories, Set<OnmsCategory> colCategories)
rowCategories - the row categoriescolCategories - the column categoriesSurveillanceViewService.NodeRtcMap<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(String nodeId)
nodeId - the node id to search resources forMap<String,String> getGraphResultsForResourceId(String resourceId)
resourceId - the resource id to search graphs forMap<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(int nodeId)
nodeId - the node id to search resources forView selectDefaultViewForUsername(String username)
username - the username to be usedcom.google.common.util.concurrent.ListeningExecutorService getExecutorService()
OnmsNode getNodeForId(int id)
id - the node idCopyright © 2020. All rights reserved.