org.jppf.server.scheduler.bundle.proportional
Class ProportionalTuneProfile

java.lang.Object
  extended by org.jppf.server.scheduler.bundle.autotuned.AbstractAutoTuneProfile
      extended by org.jppf.server.scheduler.bundle.proportional.ProportionalTuneProfile
All Implemented Interfaces:
Serializable, LoadBalancingProfile

public class ProportionalTuneProfile
extends AbstractAutoTuneProfile

Paremeters profile for a proportional bundler.

Author:
Laurent Cohen
See Also:
Serialized Form

Constructor Summary
ProportionalTuneProfile()
          Initialize this profile with default parameters.
ProportionalTuneProfile(String profileName)
          Initialize this profile with values read from the configuration file.
ProportionalTuneProfile(TypedProperties config)
          Initialize this profile with values read from the configuration file.
 
Method Summary
 LoadBalancingProfile copy()
          Make a copy of this profile.
static ProportionalTuneProfile getDefaultProfile()
          Get the default profile with default parameter values.
 int getPerformanceCacheSize()
          Get the maximum size of the performance samples cache.
 int getProportionalityFactor()
          Get the proportionality factor.
 void setPerformanceCacheSize(int performanceCacheSize)
          Set the maximum size of the performance samples cache.
 void setProportionalityFactor(int proportionalityFactor)
          Set the proportionality factor.
 String toString()
          Return a string representation of this profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProportionalTuneProfile

public ProportionalTuneProfile()
Initialize this profile with default parameters.


ProportionalTuneProfile

public ProportionalTuneProfile(String profileName)
Initialize this profile with values read from the configuration file.

Parameters:
profileName - name of the profile in the configuration file.

ProportionalTuneProfile

public ProportionalTuneProfile(TypedProperties config)
Initialize this profile with values read from the configuration file.

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

copy

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

Returns:
a new AutoTuneProfile instance.
See Also:
LoadBalancingProfile.copy()

getPerformanceCacheSize

public int getPerformanceCacheSize()
Get the maximum size of the performance samples cache.

Returns:
the cache size as an int.

setPerformanceCacheSize

public void setPerformanceCacheSize(int performanceCacheSize)
Set the maximum size of the performance samples cache.

Parameters:
performanceCacheSize - the cache size as an int.

getProportionalityFactor

public int getProportionalityFactor()
Get the proportionality factor.

Returns:
the factor as an int.

setProportionalityFactor

public void setProportionalityFactor(int proportionalityFactor)
Set the proportionality factor.

Parameters:
proportionalityFactor - the factor as an int.

getDefaultProfile

public static ProportionalTuneProfile getDefaultProfile()
Get the default profile with default parameter values.

Returns:
a ProportionalTuneProfile singleton instance.

toString

public String toString()
Return a string representation of this profile.

Overrides:
toString in class Object
Returns:
this profile represented as a string value.
See Also:
Object.toString()


Copyright © 2005-2010 JPPF Team.