public class ControllerMain extends AbstractController
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
static ScrapingServer |
scrapingServer
The scraping server.
|
Constructor and Description |
---|
ControllerMain(SplashScreen splashScreen,
java.lang.String fileToImport)
The class constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
blockScrapingServer() |
static void |
exitApp()
Exits the application.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init(SplashScreen splash,
java.lang.String fileToImport)
Used to initialize the class externally.
|
static void |
main(java.lang.String[] args)
The entry point.
|
static boolean |
startScrapingServer() |
static void |
stopApplication()
Called by JNT when screen-scraper is stopped, when running as an NT service.
|
static void |
stopServers()
Stops all of the servers.
|
createChildTriad, createChildTriad, createChildTriad, getChildController, getChildControllersIterator, getIdentifier, getModel, getNumChildControllers, getParentController, getView, removeAllChildControllers, removeChildController, setIdentifier, setModel, setParentController, setView
public static org.apache.log4j.Logger log
public static ScrapingServer scrapingServer
public ControllerMain(SplashScreen splashScreen, java.lang.String fileToImport)
fileToImport
- The path to a scraping session or script to be imported when the app starts.public void init(SplashScreen splash, java.lang.String fileToImport)
fileToImport
- The path to a scraping session or script to be imported when the app starts.public static void exitApp()
public static void stopApplication()
public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractController
ape
- An AppEvent
.public static void main(java.lang.String[] args)
args
- The command line argumentspublic static void stopServers()
public static void blockScrapingServer()
public static boolean startScrapingServer()