public class DaemonController extends Object
After the CrawlDaemon has been started, this class can control the CrawlDaemon through webserver communication, thus it can be control from computers other than the one it is executing on. This class has control over pausing, resuming, and killing the CrawlDaemon process. It also has the ability of getting the status on several variables within the CrawlDaemon class. See CrawlDaemon for more info.
.Constructor and Description |
---|
DaemonController(String rmiUrl)
Constructor -- initializes the XmlRpcClient
|
Modifier and Type | Method and Description |
---|---|
long |
getAverageRunTime()
Get the average time for each run of the Crawler controlled by the
CrawlDaemons
|
long |
getDaemonCreationTime()
Gets the time in milliseconds of when the CrawlDaemon was created
|
long |
getMillisCrawling()
Gets the total milliseconds for which the Crawler in CrawlDaemon has been
crawling since the CrawlDaemon was created.
|
int |
getNumCrawls()
Gets the numbers of times the Crawler has been run by the CrawlDaemon
|
long |
getWaitInterval()
Gets the time between the start of each scheduled run.
|
boolean |
isRunning()
Used to determine if the Crawler in the CrawlDaemon is running
|
static void |
main(String[] args)
Driver method -- starts the CrawlDaemonController
|
void |
quit() |
void |
resume()
Wakes the CrawlDaemon up and tells it to start crawling again.
|
public DaemonController(String rmiUrl) throws RemoteException
crawlUrlStr
- The URL location where the CrawlDaemon server is runningInstantiationException
RemoteException
public long getAverageRunTime() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic long getMillisCrawling() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic long getWaitInterval() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic int getNumCrawls() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic boolean isRunning() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic void resume() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverpublic void quit() throws RemoteException
RemoteException
public long getDaemonCreationTime() throws RemoteException
RemoteException
XmlRpcCommunicationException
- Error communicating with serverCopyright © 1999-2014 Apache OODT. All Rights Reserved.