Package org.jppf.load.balancer
Interface ContextAwareness
- All Known Implementing Classes:
AbstractAdaptiveBundler,AbstractBundler,AutoTunedBundler,AutotunedDelegatingBundler,FixedSizeBundler,NodeThreadsBundler,ProportionalBundler,RL2Bundler
public interface ContextAwareness
Bundler implementations should implement this interface if they wish to have access to a node's context.
- Author:
- Martin JANDA
-
Method Summary
Modifier and TypeMethodDescriptionGet the corresponding node's context information.voidsetJPPFContext(JPPFContext context) Set the corresponding node's context information.
-
Method Details
-
getJPPFContext
JPPFContext getJPPFContext()Get the corresponding node's context information.- Returns:
- a
JPPFContextinstance.
-
setJPPFContext
Set the corresponding node's context information. This method is called beforeBundler.setup()with context instance. And withnullafterBundler.dispose().- Parameters:
context- aJPPFContextinstance.
-