|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.web.response.ResponseTimeModel
Encapsulates all SNMP performance reporting for the web user interface.
Nested Class Summary | |
static class |
ResponseTimeModel.QueryableNode
Convenient data structure for storing nodes with RRDs available. |
Field Summary | |
protected java.lang.String |
infoCommand
|
static java.lang.String |
INTERFACE_GRAPH_TYPE
|
static java.lang.String |
NODE_GRAPH_TYPE
|
protected java.util.Properties |
props
|
protected PrefabGraph[] |
queries
|
protected java.util.Map |
reportMap
|
protected java.io.File |
rrdDirectory
|
static java.lang.String |
RRDTOOL_GRAPH_PROPERTIES_FILENAME
|
Constructor Summary | |
ResponseTimeModel(java.lang.String homeDir)
Create a new instance. |
Method Summary | |
java.util.List |
getDataSourceList(int nodeId)
|
java.util.List |
getDataSourceList(int nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
java.util.List |
getDataSourceList(java.lang.String nodeId)
|
java.util.List |
getDataSourceList(java.lang.String nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
java.lang.String[] |
getDataSources(int nodeId)
|
java.lang.String[] |
getDataSources(int nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
java.lang.String[] |
getDataSources(java.lang.String nodeId)
|
java.lang.String[] |
getDataSources(java.lang.String nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
java.lang.String |
getHumanReadableNameForIfLabel(int nodeId,
java.lang.String ifLabel)
Return a human-readable description (usually an IP address or hostname) for the interface given. |
PrefabGraph[] |
getQueries()
Return a list of all known prefabricated graph definitions. |
PrefabGraph[] |
getQueries(int nodeId)
|
PrefabGraph[] |
getQueries(int nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
PrefabGraph[] |
getQueries(java.lang.String nodeId)
|
PrefabGraph[] |
getQueries(java.lang.String nodeId,
java.lang.String intf,
boolean includeNodeQueries)
|
PrefabGraph |
getQuery(java.lang.String queryName)
|
java.util.ArrayList |
getQueryableInterfacesForNode(int nodeId)
|
java.util.ArrayList |
getQueryableInterfacesForNode(java.lang.String nodeId)
|
ResponseTimeModel.QueryableNode[] |
getQueryableNodes()
Returns a list of data structures representing the nodes that have SNMP performance data collected. |
java.io.File |
getRrdDirectory()
|
boolean |
isQueryableInterface(java.lang.String ipAddr)
|
boolean |
isQueryableNode(int nodeId)
|
boolean |
isQueryableNode(java.lang.String nodeId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String RRDTOOL_GRAPH_PROPERTIES_FILENAME
public static final java.lang.String INTERFACE_GRAPH_TYPE
public static final java.lang.String NODE_GRAPH_TYPE
protected java.util.Properties props
protected PrefabGraph[] queries
protected java.util.Map reportMap
protected java.io.File rrdDirectory
protected java.lang.String infoCommand
Constructor Detail |
public ResponseTimeModel(java.lang.String homeDir) throws java.io.IOException
homeDir
- the OpenNMS home directory, see Vault.getHomeDir
.Method Detail |
public java.io.File getRrdDirectory()
public PrefabGraph getQuery(java.lang.String queryName)
public PrefabGraph[] getQueries()
public PrefabGraph[] getQueries(int nodeId)
public PrefabGraph[] getQueries(java.lang.String nodeId)
public PrefabGraph[] getQueries(int nodeId, java.lang.String intf, boolean includeNodeQueries)
public PrefabGraph[] getQueries(java.lang.String nodeId, java.lang.String intf, boolean includeNodeQueries)
public java.lang.String[] getDataSources(int nodeId)
public java.lang.String[] getDataSources(java.lang.String nodeId)
public java.lang.String[] getDataSources(int nodeId, java.lang.String intf, boolean includeNodeQueries)
public java.lang.String[] getDataSources(java.lang.String nodeId, java.lang.String intf, boolean includeNodeQueries)
public java.util.List getDataSourceList(int nodeId)
public java.util.List getDataSourceList(java.lang.String nodeId)
public java.util.List getDataSourceList(int nodeId, java.lang.String intf, boolean includeNodeQueries)
public java.util.List getDataSourceList(java.lang.String nodeId, java.lang.String intf, boolean includeNodeQueries)
public java.lang.String getHumanReadableNameForIfLabel(int nodeId, java.lang.String ifLabel) throws java.sql.SQLException
java.sql.SQLException
public ResponseTimeModel.QueryableNode[] getQueryableNodes() throws java.sql.SQLException
First the list of RRD files is collected. From those filenames, the IP
address is extracted from each. A list of unique IP addresses is created,
discarding the duplicates. At the same time, a mapping of unique IP
address to RRD files is created. Then a database call is made to
determine the node identifier and human-readable label for each node
containing the IP addresses. From that list, an array of data structures,
QueryableNode
s, are created.
java.sql.SQLException
public java.util.ArrayList getQueryableInterfacesForNode(int nodeId) throws java.sql.SQLException
java.sql.SQLException
public java.util.ArrayList getQueryableInterfacesForNode(java.lang.String nodeId) throws java.sql.SQLException
java.sql.SQLException
public boolean isQueryableNode(int nodeId) throws java.sql.SQLException
java.sql.SQLException
public boolean isQueryableNode(java.lang.String nodeId) throws java.sql.SQLException
java.sql.SQLException
public boolean isQueryableInterface(java.lang.String ipAddr)
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |