|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread raccoon.tibco.tibrv.hoststatus.db.DbMonitor
public class DbMonitor
The host status utility that is based on database backend.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static java.lang.String |
HOST_STATUS_SUBJECT
The host status message subject |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DbMonitor(java.lang.String pDbConnectionString,
java.lang.String pDbUserName,
java.lang.String pDbPassword,
ILogger pLogger)
Creates the required instance for KPI reporting. |
Method Summary | |
---|---|
void |
createTransport(TransportConfig pKPIConfig,
DbWriter pWriter)
Appends the default listener using the configuration information supplied. |
IConfig |
getConfig()
|
boolean |
isActive()
|
void |
load()
Opens the communication with Rendezvous and loads the listeners. |
void |
run()
|
void |
setConfig(IConfig pConfig)
|
void |
setDbPollInterval(int pDbPollInterval)
|
void |
unload()
Deactivates this instance. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HOST_STATUS_SUBJECT
Constructor Detail |
---|
public DbMonitor(java.lang.String pDbConnectionString, java.lang.String pDbUserName, java.lang.String pDbPassword, ILogger pLogger) 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
Method Detail |
---|
public IConfig getConfig()
public void setConfig(IConfig pConfig)
public void setDbPollInterval(int pDbPollInterval)
public boolean isActive()
public void load() throws java.sql.SQLException, com.tibco.tibrv.TibrvException
java.sql.SQLException
com.tibco.tibrv.TibrvException
public void unload() throws java.sql.SQLException
java.sql.SQLException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void createTransport(TransportConfig pKPIConfig, DbWriter pWriter) throws com.tibco.tibrv.TibrvException
com.tibco.tibrv.TibrvException
- if the transport couldn't be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |