|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.drupal.project.computing.DDatabase.AsyncBatchRunner
public static class DDatabase.AsyncBatchRunner
This is thread that upload data through JDBC concurrently. attention: could submit this back to commons.dbutils for reuse.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DDatabase.AsyncBatchRunner(java.sql.Connection connection,
java.lang.String sql)
Equivalent to AsyncBatchRunner(null, threadName, connection, sql, 0) |
|
DDatabase.AsyncBatchRunner(java.sql.Connection connection,
java.lang.String sql,
int batchSize)
Initialize the AsyncBatchRunner. |
|
| Method Summary | |
|---|---|
void |
accomplish()
|
void |
put(java.lang.Object... row)
|
void |
run()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, 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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DDatabase.AsyncBatchRunner(java.sql.Connection connection,
java.lang.String sql)
throws DConnectionException
connection - sql -
DConnectionException
public DDatabase.AsyncBatchRunner(java.sql.Connection connection,
java.lang.String sql,
int batchSize)
throws DConnectionException
connection - The connection to the Drupal database.sql - The full SQL for this AsyncBatchRunner. Use d() to parse any tables enclosed with {}.batchSize -
DConnectionException| Method Detail |
|---|
public void put(java.lang.Object... row)
public void accomplish()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||