|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.sf.jbatchengine.batch.BatchEngine
public class BatchEngine
BatchEngine
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private Adapter |
adapter
|
private static int |
EXIT_VALUE_DEFAULT
|
private static org.apache.log4j.Logger |
log
|
private Process |
process
|
private static Properties |
prop
|
private static boolean |
shouldNotRedirect
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
BatchEngine(int threadNumber)
Constructs a BatchEngine |
| Method Summary | |
|---|---|
private static void |
init(String[] args)
Initializes the BatchEngine and constructs and starts BatchEngine Threads |
private static void |
logUsage(org.apache.commons.cli.Options options)
If the parameters are not correctly set it displays informations about the options to set |
static void |
main(String[] args)
The Main method of BatchEngine |
private static org.apache.commons.cli.CommandLine |
parseCommandLineArgs(String[] args)
Parses the commandline |
void |
run()
|
private void |
terminate()
Shutdown hook to stop the child processes |
| 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 |
|---|
private static transient org.apache.log4j.Logger log
private static boolean shouldNotRedirect
private static Properties prop
private Adapter adapter
private Process process
private static final int EXIT_VALUE_DEFAULT
| Constructor Detail |
|---|
private BatchEngine(int threadNumber)
threadNumber - to indicate thread on logging| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args -
Exceptionpublic void run()
run in interface Runnablerun in class Thread
private static void init(String[] args)
throws org.apache.commons.cli.ParseException,
IOException
args -
org.apache.commons.cli.ParseException
IOException
private static org.apache.commons.cli.CommandLine parseCommandLineArgs(String[] args)
throws org.apache.commons.cli.ParseException
args -
org.apache.commons.cli.ParseExceptionprivate static void logUsage(org.apache.commons.cli.Options options)
options - private void terminate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||