Class PostgresqlPortMonitor
java.lang.Object
com.aoindustries.noc.monitor.portmon.PortMonitor
com.aoindustries.noc.monitor.portmon.JdbcPortMonitor
com.aoindustries.noc.monitor.portmon.PostgresqlPortMonitor
Monitors a PostgreSQL database.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.noc.monitor.portmon.JdbcPortMonitor
readOnly, TIMEOUT
Fields inherited from class com.aoindustries.noc.monitor.portmon.PortMonitor
canceled, CRLF, ipAddress, port
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresqlPortMonitor
(InetAddress ipAddress, Port port, URIParameters monitoringParameters) Creates a new PostgreSQL monitor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the default JDBC database.protected String
Gets the default JDBC username.protected String
Gets the driver classname.protected String
getJdbcUrl
(InetAddress ipAddress, int port, String database) Methods inherited from class com.aoindustries.noc.monitor.portmon.JdbcPortMonitor
cancel, checkPort, getDefaultQuery
Methods inherited from class com.aoindustries.noc.monitor.portmon.PortMonitor
getPortMonitor, readLine
-
Constructor Details
-
PostgresqlPortMonitor
Creates a new PostgreSQL monitor.
-
-
Method Details
-
getDriver
Description copied from class:JdbcPortMonitor
Gets the driver classname.- Specified by:
getDriver
in classJdbcPortMonitor
-
getJdbcUrl
- Specified by:
getJdbcUrl
in classJdbcPortMonitor
-
getDefaultUsername
Description copied from class:JdbcPortMonitor
Gets the default JDBC username.- Specified by:
getDefaultUsername
in classJdbcPortMonitor
-
getDefaultDatabase
Description copied from class:JdbcPortMonitor
Gets the default JDBC database.- Specified by:
getDefaultDatabase
in classJdbcPortMonitor
-