raccoon.tibco.tibrv.hoststatus.db
Class DbHostStatus

java.lang.Object
  extended by raccoon.core.types.AbsComponent
      extended by raccoon.core.types.AbsLoadable
          extended by raccoon.core.types.AbsConfigurableLoadable
              extended by raccoon.tibco.tibrv.hoststatus.db.DbHostStatus
All Implemented Interfaces:
IBaseComponent, IConfigurable, ILoadable, ILogable, IHostStatus

public class DbHostStatus
extends AbsConfigurableLoadable
implements IHostStatus

The database implementation of Host Status.

Since:
Raccoon v1.0
Version:
$Id:$
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable
mConfigurableManager
 
Fields inherited from class raccoon.core.types.AbsLoadable
mIsLoaded
 
Fields inherited from class raccoon.core.types.AbsComponent
mIsInError
 
Constructor Summary
DbHostStatus()
           
 
Method Summary
 void configureParameters()
          Configures the various parameters for this component.
 IConfig getConfig()
           
 java.lang.String getDbConnectionString()
           
 java.lang.String getDbPassword()
           
 int getDbPollInterval()
           
 java.lang.String getDbUserName()
           
 java.lang.String getJdbcDriver()
           
 void load()
          Loads or initializes the component.
 void run()
           
 void setConfig(IConfig pConfig)
           
 void setDbConnectionString(java.lang.String pDbConnectionString)
           
 void setDbPassword(java.lang.String pDbPassword)
           
 void setDbPollInterval(int pDbPollInterval)
           
 void setDbUserName(java.lang.String pDbUserName)
           
 void setJdbcDriver(java.lang.String pJdbcDriver)
           
 void unload()
          Unloads or deactivates the component.
 
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable
isStable, setConfigurableManager, setLogger
 
Methods inherited from class raccoon.core.types.AbsLoadable
getLog, isInError, isInitialised, isRunning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbHostStatus

public DbHostStatus()
Method Detail

getConfig

public IConfig getConfig()

setConfig

public void setConfig(IConfig pConfig)

getDbPollInterval

public int getDbPollInterval()

setDbPollInterval

public void setDbPollInterval(int pDbPollInterval)
                       throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getDbUserName

public java.lang.String getDbUserName()

setDbUserName

public void setDbUserName(java.lang.String pDbUserName)
                   throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getDbPassword

public java.lang.String getDbPassword()

setDbPassword

public void setDbPassword(java.lang.String pDbPassword)
                   throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getJdbcDriver

public java.lang.String getJdbcDriver()

setJdbcDriver

public void setJdbcDriver(java.lang.String pJdbcDriver)
                   throws ResourceNotFoundException
Throws:
ResourceNotFoundException

getDbConnectionString

public java.lang.String getDbConnectionString()

setDbConnectionString

public void setDbConnectionString(java.lang.String pDbConnectionString)
                           throws ResourceNotFoundException
Throws:
ResourceNotFoundException

configureParameters

public void configureParameters()
Configures the various parameters for this component. This method should configure the instance of IConfigurableManager provided during the invocation of AbsConfigurableLoadable.setConfigurableManager(IConfigurableManager).

Specified by:
configureParameters in interface IConfigurable
Overrides:
configureParameters in class AbsConfigurableLoadable

run

public void run()
Specified by:
run in interface IHostStatus

load

public void load()
          throws java.lang.IllegalStateException,
                 LoadableException
Loads or initializes the component.

Specified by:
load in interface ILoadable
Overrides:
load in class AbsConfigurableLoadable
Throws:
LoadableException - if the component couldn't load itself.
java.lang.IllegalStateException - if the component isn't in a state to load itself. for example it is already loaded.

unload

public void unload()
            throws java.lang.IllegalStateException,
                   LoadableException
Unloads or deactivates the component. The invocation of this method should be used to clean up, if necessary, all used resources.

Specified by:
unload in interface ILoadable
Overrides:
unload in class AbsLoadable
Throws:
LoadableException - if the component couldn't unload itself.
java.lang.IllegalStateException - if this component isn't in a state to unload itself.


Copyright null null. All Rights Reserved.