|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.scheduler.bundle.AbstractBundler
org.jppf.server.scheduler.bundle.rl.AbstractRLBundler
public abstract class AbstractRLBundler
Bundler based on a reinforcement learning algorithm.
| Field Summary | |
|---|---|
protected int |
action
Action to take. |
protected int |
bundleSize
The current bundle size. |
protected BundleDataHolder |
dataHolder
Bounded memory of the past performance updates. |
protected int |
prevBundleSize
The previous bundle size. |
| Fields inherited from class org.jppf.server.scheduler.bundle.AbstractBundler |
|---|
bundlerNumber, profile, timestamp |
| Constructor Summary | |
|---|---|
AbstractRLBundler(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 size,
double totalTime)
This method computes the bundle size based on the new state of the server. |
void |
feedback2(int size,
double totalTime)
This method computes the bundle size based on the new state of the server. |
int |
getBundleSize()
Get the current size of bundle. |
BundleDataHolder |
getDataHolder()
Get the bounded memory of the past performance updates. |
void |
setBundleSize(int bundleSize)
set the current size of bundle. |
void |
setup()
Perform context-independant initializations. |
| Methods inherited from class org.jppf.server.scheduler.bundle.AbstractBundler |
|---|
getBundlerNumber, getProfile, getTimestamp, maxSize |
| 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 |
| Field Detail |
|---|
protected int action
protected BundleDataHolder dataHolder
protected int bundleSize
protected int prevBundleSize
| Constructor Detail |
|---|
public AbstractRLBundler(LoadBalancingProfile profile)
profile - the parameters of the algorithm grouped as a performance analysis profile.| Method Detail |
|---|
public int getBundleSize()
Bundler.getBundleSize()public void setBundleSize(int bundleSize)
bundleSize - - the bundle size as an int value.
public void feedback(int size,
double totalTime)
feedback in interface Bundlerfeedback in class AbstractBundlersize - the number of tasks executed.totalTime - the time in milliseconds it took to execute the tasks.AbstractBundler.feedback(int, double)
public void feedback2(int size,
double totalTime)
size - the number of tasks executed.totalTime - the time in milliseconds it took to execute the tasks.AbstractBundler.feedback(int, double)public void setup()
setup in interface Bundlersetup in class AbstractBundlerAbstractBundler.setup()public void dispose()
dispose in interface Bundlerdispose in class AbstractBundlerAbstractBundler.dispose()public BundleDataHolder getDataHolder()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||