|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.queue.DBHandler
public class DBHandler
Field Summary | |
---|---|
protected static boolean |
bDirty
|
protected PESConnector |
connect
|
protected int |
pageSize
|
protected int |
size
|
Constructor Summary | |
---|---|
DBHandler(int size,
IDGenerator gen)
constructor |
Method Summary | |
---|---|
void |
addToDB(MemQ chunk)
thread run method stores pages from chunk to the system store |
void |
emptySystemStore()
Deletes contents of table associated with queue |
PESConnector |
getConnect()
|
void |
initialize(java.lang.String sDBName,
java.lang.String jdbcLogin,
java.lang.String jdbcPassword,
java.lang.String sTblName)
Initializes the system store parameters |
boolean |
isStoreEmpty()
|
void |
terminate()
terminates the system store operation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected PESConnector connect
protected static boolean bDirty
protected int pageSize
Constructor Detail |
---|
public DBHandler(int size, IDGenerator gen) throws java.lang.Exception
size
- threshold if loading pagesize if storinggen
-
java.lang.Exception
Method Detail |
---|
public void initialize(java.lang.String sDBName, java.lang.String jdbcLogin, java.lang.String jdbcPassword, java.lang.String sTblName) throws java.lang.Exception
sDBName
- system store database namejdbcLogin
- username to connect to the dbjdbcPassword
- password to connect to the dbsTblName
- table name
java.lang.Exception
- if system store is not initialized properlypublic void terminate()
public boolean isStoreEmpty()
public void emptySystemStore() throws java.lang.Exception
java.lang.Exception
public void addToDB(MemQ chunk) throws java.lang.Exception
java.lang.Exception
public PESConnector getConnect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |