Package org.opennms.netmgt.jasper.helper
Class MeasurementsHelper
- java.lang.Object
-
- org.opennms.netmgt.jasper.helper.MeasurementsHelper
-
public abstract class MeasurementsHelper extends java.lang.Object
Provides helper methods for theMeasurementDataSource
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getInterfaceDescriptor(java.lang.String snmpifname, java.lang.String snmpifdescr, java.lang.String snmpphysaddr)
Returns the description of the interface (e.g.static java.lang.String
getNodeOrNodeSourceDescriptor(java.lang.String nodeId, java.lang.String foreignSource, java.lang.String foreignId)
Returns the descriptor of the node or node source, depending on the input parameters (e.g.static SpringHelper
getSpringHelper()
static boolean
isRunInOpennmsJvm()
static java.lang.String
marshal(QueryRequest queryRequest)
static QueryRequest
unmarshal(java.lang.String query)
-
-
-
Method Detail
-
getInterfaceDescriptor
public static java.lang.String getInterfaceDescriptor(java.lang.String snmpifname, java.lang.String snmpifdescr, java.lang.String snmpphysaddr)
Returns the description of the interface (e.g. eth0-000000).- Parameters:
snmpifname
-snmpifdescr
-snmpphysaddr
-- Returns:
- the description of the interface (e.g. eth0-000000).
-
getNodeOrNodeSourceDescriptor
public static java.lang.String getNodeOrNodeSourceDescriptor(java.lang.String nodeId, java.lang.String foreignSource, java.lang.String foreignId)
Returns the descriptor of the node or node source, depending on the input parameters (e.g. node[<nodeId>] or nodeSource[<foreignSource>:<foreignId>].- Parameters:
nodeId
-foreignSource
-foreignId
-- Returns:
- the descriptor of the node or node source, depending on the input parameters (e.g. node[<nodeId>] or nodeSource[<foreignSource>:<foreignId>].
-
isRunInOpennmsJvm
public static boolean isRunInOpennmsJvm()
-
getSpringHelper
public static SpringHelper getSpringHelper()
-
unmarshal
public static QueryRequest unmarshal(java.lang.String query) throws net.sf.jasperreports.engine.JRException
- Throws:
net.sf.jasperreports.engine.JRException
-
marshal
public static java.lang.String marshal(QueryRequest queryRequest) throws net.sf.jasperreports.engine.JRException
- Throws:
net.sf.jasperreports.engine.JRException
-
-