public class TimedAppRunner extends Object
It requires a directory of config files for each TimedApp that it will queue up. This directory is specified on the commandline as a string arg.
Modifier and Type | Field and Description |
---|---|
static ClassConstants |
CLASS_CONSTANTS
Description of the Field
|
static String[] |
CONSTNAMES
Description of the Field
|
private static File |
dirFile_
The directory(File) for the Timed App Config files.
|
private static Vector |
fileName_
The filenames of the apps being timed.
|
private static long |
initTime_
The Initail start Time for this Run.
|
private static boolean |
recursedDirectory_
Flags if the timedApp config directory is recursed.
|
private static String |
timedAppDirectory_
Description of the Field
|
private static Vector |
timedApps_
A Vector of the timed apps being controlled.
|
static String |
usage_
Description of the Field
|
Constructor and Description |
---|
TimedAppRunner()
Constructor for the TimedAppRunner object
|
Modifier and Type | Method and Description |
---|---|
private static void |
executeLoop()
Loops through all the TimedApps that have been instantiated and thread
off a new Thread for each to handle their timing/waiting and executing.
|
static boolean |
initDir(String dirFileName,
boolean recurse)
Goes through the properties files in the directory spec'd by tthe
passed in dir filename and instantiates the TimedApps.
|
private static boolean |
initDirFile(String s)
Initializes the dirFile field with a new File represented by the passed
in String.
|
static void |
main(String[] args)
The main program for the TimedAppRunner class
|
private static boolean |
recurseInitDir(String s,
boolean recurse)
Description of the Method
|
public static final String[] CONSTNAMES
public static final String usage_
public static final ClassConstants CLASS_CONSTANTS
private static String timedAppDirectory_
private static Vector timedApps_
private static boolean recursedDirectory_
private static long initTime_
public TimedAppRunner()
public static void main(String[] args)
args
- The command line argumentsprivate static void executeLoop()
public static boolean initDir(String dirFileName, boolean recurse)
dirFileName
- the filename of the dir tolook in for the
properties filesrecurse
- Description of Parameterprivate static boolean initDirFile(String s)
s
- Description of Parameterprivate static boolean recurseInitDir(String s, boolean recurse)
s
- Description of Parameterrecurse
- Description of ParameterWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses