|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.scheduler.bundle.AbstractBundler
public abstract class AbstractBundler
Abstract implementation of the bundler interface.
| Field Summary | |
|---|---|
protected int |
bundlerNumber
The bundler number for this bundler. |
protected LoadBalancingProfile |
profile
Parameters of the algorithm, grouped as a performance analysis profile. |
protected long |
timestamp
The creation timestamp for this bundler. |
| Constructor Summary | |
|---|---|
AbstractBundler(LoadBalancingProfile profile)
Creates a new instance with the specified parameters profile. |
|
| Method Summary | |
|---|---|
void |
dispose()
Release the resources used by this bundler. |
void |
feedback(int bundleSize,
double totalTime)
This method does nothing and should be overriden in subclasses. |
int |
getBundlerNumber()
Get the bundler number for this bundler. |
LoadBalancingProfile |
getProfile()
Get the parameters of the algorithm, grouped as a performance analysis profile. |
long |
getTimestamp()
Get the timestamp at which this bundler was created. |
protected abstract int |
maxSize()
Get the max bundle size that can be used for this bundler. |
void |
setup()
Perform context-independant initializations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.server.scheduler.bundle.Bundler |
|---|
copy, getBundleSize |
| Field Detail |
|---|
protected int bundlerNumber
protected long timestamp
protected LoadBalancingProfile profile
| Constructor Detail |
|---|
public AbstractBundler(LoadBalancingProfile profile)
profile - the parameters of the load-balancing algorithm,| Method Detail |
|---|
protected abstract int maxSize()
public void feedback(int bundleSize,
double totalTime)
feedback in interface BundlerbundleSize - not used.totalTime - not used.Bundler.feedback(int, double)public long getTimestamp()
getTimestamp in interface BundlerBundler.getTimestamp()public int getBundlerNumber()
public void setup()
setup in interface BundlerBundler.setup()public void dispose()
dispose in interface BundlerBundler.dispose()public LoadBalancingProfile getProfile()
getProfile in interface BundlerLoadBalancingProfile.Bundler.getProfile()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||