|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterControllerClient
Method Summary | |
---|---|
void |
addCrawlerLifecycleListener(CrawlerLifecycleListener l)
Adds a crawler lifecycle listener. |
void |
addCrawlJobListener(CurrentCrawlJobListener l)
Adds a crawl job listener. |
Crawler |
createCrawler()
Creates a new instance of the crawler. |
void |
destroy()
Destroys the cluster controller bean which the client is communicating with. |
void |
destroyAllCrawlers()
Issues destroy commands to all the crawlers managed by the controller. |
Crawler |
findCrawlJobParent(java.lang.String uid,
java.net.InetSocketAddress address)
Returns the matching crawler. |
CurrentCrawlJob |
getCurrentCrawlJob(Crawler crawler)
Returns the current job running on the specified crawler. |
int |
getMaxInstances(java.lang.String hostname,
int port)
Returns the maximum number of instances allowed for this container. |
java.util.Collection<Crawler> |
listCrawlers()
Lists all the crawler instances in the cluster. |
boolean |
pauseAllJobs()
|
void |
removeCrawlerLifecycleListener(CrawlerLifecycleListener l)
Removes a crawler lifecycle listener. |
void |
removeCrawlJobListener(CurrentCrawlJobListener l)
Removes a crawl job listener. |
boolean |
resumeAllPausedJobs()
|
void |
setMaxInstances(java.lang.String hostname,
int port,
int maxInstances)
Sets the maximum number of instances that may run on a specified container defined by a host and port. |
Method Detail |
---|
Crawler createCrawler() throws InsufficientCrawlingResourcesException, ClusterException
InsufficientCrawlingResourcesException
- If no crawling machines have capicity for another crawler instance.
ClusterException
java.util.Collection<Crawler> listCrawlers() throws ClusterException
ClusterException
void destroyAllCrawlers() throws ClusterException
ClusterException
void destroy()
Crawler findCrawlJobParent(java.lang.String uid, java.net.InetSocketAddress address) throws ClusterException
uid
- A crawl job's id.address
- The remote address of the crawler (ie not the hcc proxied address)
ClusterException
CurrentCrawlJob getCurrentCrawlJob(Crawler crawler) throws ClusterException
crawler
-
ClusterException
void addCrawlerLifecycleListener(CrawlerLifecycleListener l)
l
- void removeCrawlerLifecycleListener(CrawlerLifecycleListener l)
l
- void addCrawlJobListener(CurrentCrawlJobListener l)
l
- void removeCrawlJobListener(CurrentCrawlJobListener l)
l
- int getMaxInstances(java.lang.String hostname, int port) throws ClusterException
hostname
- port
-
ClusterException
void setMaxInstances(java.lang.String hostname, int port, int maxInstances) throws ClusterException
hostname
- port
- maxInstances
-
ClusterException
boolean pauseAllJobs() throws ClusterException
ClusterControllerException
ClusterException
boolean resumeAllPausedJobs() throws ClusterException
ClusterControllerException
ClusterException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |