Class JobDistributor
- java.lang.Object
-
- com.floragunn.searchsupport.jobs.cluster.JobDistributor
-
- All Implemented Interfaces:
AutoCloseable
public class JobDistributor extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description JobDistributor(String name, String nodeFilter, org.elasticsearch.cluster.service.ClusterService clusterService, DistributedJobStore distributedJobStore)JobDistributor(String name, String nodeFilter, org.elasticsearch.cluster.service.ClusterService clusterService, DistributedJobStore distributedJobStore, NodeComparator<?> nodeComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DistributedJobStoregetDistributedJobStore()booleanisJobSelected(JobConfig jobConfig)booleanisJobSelected(JobConfig jobConfig, int nodeIndex)voidsetDistributedJobStore(DistributedJobStore distributedJobStore)StringtoString()
-
-
-
Constructor Detail
-
JobDistributor
public JobDistributor(String name, String nodeFilter, org.elasticsearch.cluster.service.ClusterService clusterService, DistributedJobStore distributedJobStore)
-
JobDistributor
public JobDistributor(String name, String nodeFilter, org.elasticsearch.cluster.service.ClusterService clusterService, DistributedJobStore distributedJobStore, NodeComparator<?> nodeComparator)
-
-
Method Detail
-
isJobSelected
public boolean isJobSelected(JobConfig jobConfig)
-
isJobSelected
public boolean isJobSelected(JobConfig jobConfig, int nodeIndex)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getDistributedJobStore
public DistributedJobStore getDistributedJobStore()
-
setDistributedJobStore
public void setDistributedJobStore(DistributedJobStore distributedJobStore)
-
-