|
|||||||||||
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(String sDBName,
String jdbcLogin,
String jdbcPassword,
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 Exception
size
- threshold if loading pagesize if storinggen
-
Exception
Method Detail |
---|
public void initialize(String sDBName, String jdbcLogin, String jdbcPassword, String sTblName) throws Exception
sDBName
- system store database namejdbcLogin
- username to connect to the dbjdbcPassword
- password to connect to the dbsTblName
- table name
Exception
- if system store is not initialized properlypublic void terminate()
public boolean isStoreEmpty()
public void emptySystemStore() throws Exception
Exception
public void addToDB(MemQ chunk) throws Exception
Exception
public PESConnector getConnect()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |