|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.pushpull.daemon.DaemonController
public class DaemonController
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 Summary | |
|---|---|
DaemonController(String rmiUrl)
Constructor -- initializes the XmlRpcClient |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaemonController(String rmiUrl)
throws RemoteException
crawlUrlStr - The URL location where the CrawlDaemon server is running
InstantiationException
RemoteException| Method Detail |
|---|
public long getAverageRunTime()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public long getMillisCrawling()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public long getWaitInterval()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public int getNumCrawls()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public boolean isRunning()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public void resume()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public void quit()
throws RemoteException
RemoteException
public long getDaemonCreationTime()
throws RemoteException
RemoteException
XmlRpcCommunicationException - Error communicating with server
public static void main(String[] args)
throws Exception
args - See documentation
Exception - On error! :)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||