org.jppf.server.scheduler.bundle.fixedsize
Class FixedSizeProfile

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.fixedsize.FixedSizeProfile
All Implemented Interfaces:
Serializable, LoadBalancingProfile

public class FixedSizeProfile
extends Object
implements LoadBalancingProfile

Profile for the fixed bundle size load-balancing algorithm.

Author:
Laurent Cohen
See Also:
Serialized Form

Constructor Summary
FixedSizeProfile()
          Default constructor.
FixedSizeProfile(TypedProperties config)
          Initialize this profile with values read from the specified configuration.
 
Method Summary
 LoadBalancingProfile copy()
          Make a copy of this profile.
 int getSize()
          Get the bundle size.
 void setSize(int size)
          Set the bundle size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizeProfile

public FixedSizeProfile()
Default constructor.


FixedSizeProfile

public FixedSizeProfile(TypedProperties config)
Initialize this profile with values read from the specified configuration.

Parameters:
config - contains a mapping of the profile parameters to their value.
Method Detail

copy

public LoadBalancingProfile copy()
Make a copy of this profile.

Specified by:
copy in interface LoadBalancingProfile
Returns:
a newly created FixedSizeProfile instance.
See Also:
LoadBalancingProfile.copy()

getSize

public int getSize()
Get the bundle size.

Returns:
the bundle size as an int.

setSize

public void setSize(int size)
Set the bundle size.

Parameters:
size - - the bundle size as an int.


Copyright © 2005-2010 JPPF Team.