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(Connection con, Map<String,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 ClassNotFoundException, InstantiationException, IllegalAccessException
Constructor for JDBCQueryMonitor.
- Throws:
ClassNotFoundException
- if any.InstantiationException
- if any.IllegalAccessException
- if any.
-
-
Method Detail
-
checkDatabaseStatus
public PollStatus checkDatabaseStatus(Connection con, Map<String,Object> parameters)
checkDatabaseStatus
- Overrides:
checkDatabaseStatus
in classJDBCMonitor
- Parameters:
con
- aConnection
object.parameters
- aMap
object.- Returns:
- a
PollStatus
object.
-
-