edu.duke.cs.banjo.application
Class Banjo
java.lang.Object
edu.duke.cs.banjo.application.Banjo
- public class Banjo
- extends java.lang.Object
Provides a simple interface to running the Banjo application in a multi-threaded scenario.
(Similar to the "old" Banjo class)
Details:
Provides an application entry point for running the application
from the commandline, using multiple threads.
(Optional) arguments:
1. The name of the settings file.
2. The number of threads.
3. The name of the directory where the settings file is found (defaults
to the application's (current) directory).
Change History:
Created on Mar 3, 2004
9/10/2007 (v2.1) hjs
Code handles shared memory for the fastCache and the log-Gamma table.
(2.2) hjs Add code to check if we found problems during initial validation
of various settings.
- Author:
- Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.
Constructor Summary |
Banjo()
|
Method Summary |
void |
execute(java.lang.String[] _args)
|
static void |
main(java.lang.String[] _args)
|
protected void |
runMultipleInstances(java.lang.String[] _args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxThreads
protected int maxThreads
threadCounter
protected int threadCounter
BanjoInstance
protected java.lang.Object[] BanjoInstance
sharedArgs
protected java.lang.String[] sharedArgs
settings
protected Settings settings
settingsUsedInThread
protected Settings settingsUsedInThread
Banjo
public Banjo()
throws java.lang.Exception
execute
public void execute(java.lang.String[] _args)
throws java.lang.Exception
- Throws:
java.lang.Exception
runMultipleInstances
protected void runMultipleInstances(java.lang.String[] _args)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] _args)
throws java.lang.Exception
- Throws:
java.lang.Exception