Package org.opennms.netmgt.collectd.jdbc
Class JdbcAgentState
- java.lang.Object
-
- org.opennms.netmgt.collectd.jdbc.JdbcAgentState
-
public class JdbcAgentState extends Object
-
-
Constructor Summary
Constructors Constructor Description JdbcAgentState(InetAddress address, Map<String,Object> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(Connection con)
void
closeResultSet(ResultSet resultset)
void
closeStmt(Statement statement)
Statement
createStatement(Connection con)
void
didCheckGroupAvailability(String groupName)
ResultSet
executeJdbcQuery(Statement stmt, JdbcQuery query)
String
getAddress()
String
getDataSourceName()
Connection
getJdbcConnection()
boolean
getUseDataSourceName()
boolean
groupIsAvailable(String groupName)
void
setAddress(String address)
void
setDataSourceName(String dataSourceName)
void
setGroupIsAvailable(String groupName, boolean available)
void
setupDatabaseConnections(Map<String,Object> parameters)
protected void
setupJdbcUrl(Map<String,Object> parameters)
void
setUseDataSourceName(boolean useDataSourceName)
boolean
shouldCheckAvailability(String groupName, int recheckInterval)
-
-
-
Constructor Detail
-
JdbcAgentState
public JdbcAgentState(InetAddress address, Map<String,Object> parameters)
-
-
Method Detail
-
getJdbcConnection
public Connection getJdbcConnection() throws JdbcCollectorException
- Throws:
JdbcCollectorException
-
createStatement
public Statement createStatement(Connection con)
-
closeConnection
public void closeConnection(Connection con)
-
closeStmt
public void closeStmt(Statement statement)
-
closeResultSet
public void closeResultSet(ResultSet resultset)
-
getAddress
public String getAddress()
-
setAddress
public void setAddress(String address)
-
groupIsAvailable
public boolean groupIsAvailable(String groupName)
-
setGroupIsAvailable
public void setGroupIsAvailable(String groupName, boolean available)
-
shouldCheckAvailability
public boolean shouldCheckAvailability(String groupName, int recheckInterval)
-
didCheckGroupAvailability
public void didCheckGroupAvailability(String groupName)
-
getDataSourceName
public String getDataSourceName()
-
setDataSourceName
public void setDataSourceName(String dataSourceName)
-
getUseDataSourceName
public boolean getUseDataSourceName()
-
setUseDataSourceName
public void setUseDataSourceName(boolean useDataSourceName)
-
-