Package org.jppf.load.balancer
Interface JobAwareness
- All Known Implementing Classes:
AbstractAdaptiveBundler,AutoTunedBundler,ProportionalBundler,RL2Bundler
public interface JobAwareness
Bundler implementations should implement this interface if they wish to have access to a job's information.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptiongetJob()Get the current job for which load-balancing is being performed.voidsetJob(JPPFDistributedJob job) Set the current job for which load-balancing is being performed.
-
Method Details
-
getJob
JPPFDistributedJob getJob()Get the current job for which load-balancing is being performed.- Returns:
- a
JPPFDistributedJobinstance.
-
setJob
Set the current job for which load-balancing is being performed. This method should never be called directly, as it is set automatically be the JPPF load balancing framework.- Parameters:
job- aJPPFDistributedJobinstance.
-