Class JDBCQueryMonitor
- java.lang.Object
-
- org.opennms.netmgt.poller.support.AbstractServiceMonitor
-
- org.opennms.netmgt.poller.monitors.support.ParameterSubstitutingMonitor
-
- org.opennms.netmgt.poller.monitors.JDBCMonitor
-
- org.opennms.netmgt.poller.monitors.JDBCQueryMonitor
-
- All Implemented Interfaces:
ServiceMonitor
public final class JDBCQueryMonitor extends JDBCMonitor
JDBCQueryMonitor class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Fields inherited from class org.opennms.netmgt.poller.monitors.JDBCMonitor
DEFAULT_RETRY, DEFAULT_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description JDBCQueryMonitor()
Constructor for JDBCQueryMonitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollStatus
checkDatabaseStatus(java.sql.Connection con, java.util.Map<java.lang.String,java.lang.Object> parameters)
checkDatabaseStatus-
Methods inherited from class org.opennms.netmgt.poller.monitors.JDBCMonitor
closeStmt, poll
-
Methods inherited from class org.opennms.netmgt.poller.monitors.support.ParameterSubstitutingMonitor
getRuntimeAttributes, getSubstitutedParameters, parseString, resolveKeyedString
-
Methods inherited from class org.opennms.netmgt.poller.support.AbstractServiceMonitor
getEffectiveLocation, getKeyedBoolean, getKeyedInstance, getKeyedInteger, getKeyedLong, getKeyedObject, getKeyedString, getServiceProperties
-
-
-
-
Constructor Detail
-
JDBCQueryMonitor
public JDBCQueryMonitor() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
Constructor for JDBCQueryMonitor.
- Throws:
java.lang.ClassNotFoundException
- if any.java.lang.InstantiationException
- if any.java.lang.IllegalAccessException
- if any.
-
-
Method Detail
-
checkDatabaseStatus
public PollStatus checkDatabaseStatus(java.sql.Connection con, java.util.Map<java.lang.String,java.lang.Object> parameters)
checkDatabaseStatus
- Overrides:
checkDatabaseStatus
in classJDBCMonitor
- Parameters:
con
- aConnection
object.parameters
- aMap
object.- Returns:
- a
PollStatus
object.
-
-