Package org.opennms.netmgt.jasper.helper
Class MeasurementsHelper
- java.lang.Object
-
- org.opennms.netmgt.jasper.helper.MeasurementsHelper
-
public abstract class MeasurementsHelper extends Object
Provides helper methods for theMeasurementDataSource
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getInterfaceDescriptor(String snmpifname, String snmpifdescr, String snmpphysaddr)
Returns the description of the interface (e.g.static String
getNodeOrNodeSourceDescriptor(String nodeId, String foreignSource, 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 String
marshal(QueryRequest queryRequest)
static QueryRequest
unmarshal(String query)
-
-
-
Method Detail
-
getInterfaceDescriptor
public static String getInterfaceDescriptor(String snmpifname, String snmpifdescr, 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 String getNodeOrNodeSourceDescriptor(String nodeId, String foreignSource, 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(String query) throws net.sf.jasperreports.engine.JRException
- Throws:
net.sf.jasperreports.engine.JRException
-
marshal
public static String marshal(QueryRequest queryRequest) throws net.sf.jasperreports.engine.JRException
- Throws:
net.sf.jasperreports.engine.JRException
-
-