Package org.jppf.load.balancer.impl
Class NodeThreadsProfile
java.lang.Object
org.jppf.load.balancer.AbstractLoadBalancingProfile
org.jppf.load.balancer.impl.NodeThreadsProfile
- All Implemented Interfaces:
Serializable,LoadBalancingProfile
Profile for the "nodethreads" load-balancing algorithm.
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.NodeThreadsProfile(TypedProperties config) Initialize this profile with values read from the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionintGet the multiplicator for the number of threads in the node.voidsetMultiplicator(int multiplicator) Set the multiplicator for the number of threads in the node.
-
Constructor Details
-
NodeThreadsProfile
public NodeThreadsProfile()Default constructor. -
NodeThreadsProfile
Initialize this profile with values read from the specified configuration.- Parameters:
config- contains a mapping of the profile parameters to their value.
-
-
Method Details
-
getMultiplicator
public int getMultiplicator()Get the multiplicator for the number of threads in the node.- Returns:
- the multiplicator size as an int.
-
setMultiplicator
public void setMultiplicator(int multiplicator) Set the multiplicator for the number of threads in the node.- Parameters:
multiplicator- the bundle size as an int.
-