|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.joram.mom.dest.LoadingFactor
public class LoadingFactor
| Nested Class Summary | |
|---|---|
static class |
LoadingFactor.ConsumerStatus
|
static class |
LoadingFactor.ProducerStatus
|
static class |
LoadingFactor.Status
|
| Field Summary | |
|---|---|
boolean |
autoEvalThreshold
automatic eval threshold |
ClusterQueueImpl |
clusterQueueImpl
reference to clusterQueueImpl |
int |
consumThreshold
consumer threshold |
static org.objectweb.util.monolog.api.Logger |
logger
logger |
int |
producThreshold
producer threshold |
long |
validityPeriod
validity period |
| Constructor Summary | |
|---|---|
LoadingFactor(ClusterQueueImpl clusterQueueImpl,
int producThreshold,
int consumThreshold,
boolean autoEvalThreshold,
long validityPeriod)
|
|
| Method Summary | |
|---|---|
float |
evalRateOfFlow(int pendingMessages,
int pendingRequests)
Evaluates the average rate of flow. |
void |
factorCheck(java.util.Hashtable clusters,
int pendingMessages,
int pendingRequests)
This method evaluates the rate of flow and activity. |
float |
getRateOfFlow()
|
boolean |
isOverloaded()
true if cluster queue is overloaded. |
void |
setRateOfFlow(float rateOfFlow)
|
void |
setWait()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static org.objectweb.util.monolog.api.Logger logger
public ClusterQueueImpl clusterQueueImpl
public int producThreshold
public int consumThreshold
public boolean autoEvalThreshold
public long validityPeriod
| Constructor Detail |
|---|
public LoadingFactor(ClusterQueueImpl clusterQueueImpl,
int producThreshold,
int consumThreshold,
boolean autoEvalThreshold,
long validityPeriod)
| Method Detail |
|---|
public void setRateOfFlow(float rateOfFlow)
public float getRateOfFlow()
public void setWait()
public float evalRateOfFlow(int pendingMessages,
int pendingRequests)
pendingMessages - the number of pending messages.pendingRequests - the number of pending requests.
public void factorCheck(java.util.Hashtable clusters,
int pendingMessages,
int pendingRequests)
clusters - pendingMessages - pendingRequests - public boolean isOverloaded()
public java.lang.String toString()
toString in class java.lang.Object
|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||