|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.tibco.tibrv.hoststatus.db.DbPoller
public class DbPoller
Database configuration polling class.
Constructor Summary | |
---|---|
DbPoller(java.lang.String pDbConnectionString,
java.lang.String pDbUserName,
java.lang.String pDbPassword)
Connects to the database. |
Method Summary | |
---|---|
java.util.Iterator |
iterConfig()
|
void |
load()
Creates the polling thread and continuously polls the database. |
boolean |
pollConfig()
Queries the database for any configuration change. |
void |
unload()
Stops polling the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbPoller(java.lang.String pDbConnectionString, java.lang.String pDbUserName, java.lang.String pDbPassword) throws java.sql.SQLException
pDbConnectionString
- the name of the machine hosting the database.pDbUserName
- the user name for the password.pDbPassword
- the password associated to the user.
java.sql.SQLException
- if the prepared statement couldn't be created.Method Detail |
---|
public void load() throws java.sql.SQLException
java.sql.SQLException
public boolean pollConfig() throws java.sql.SQLException
java.sql.SQLException
- if the configuration couldn't be retrieved.public java.util.Iterator iterConfig()
public void unload() throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |