public abstract class Module
extends java.lang.Object
implements java.lang.Runnable
Each module should inherit from this class and implement run() and a constructor that takes the agencyId as a string parameter.
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts up the thread that runs the module by calling the Runnable.run()
method for the Module's subclass.
|
static boolean |
start(java.lang.String classname)
Runs the named module in a separate thread using the default agencyId.
|
static boolean |
start(java.lang.String classname,
java.lang.String agencyId)
Runs the named module in a separate thread.
|
public void start()
public static boolean start(java.lang.String classname)
classname
- public static boolean start(java.lang.String classname, java.lang.String agencyId)
classname
- Full classname of the Module subclass to instantiateagencyId
- ID of the agency