
Public Member Functions | |
| LoadingFactor (ClusterQueueImpl clusterQueueImpl, int producThreshold, int consumThreshold, boolean autoEvalThreshold, long validityPeriod) | |
| void | setRateOfFlow (float rateOfFlow) |
| float | getRateOfFlow () |
| void | setWait () |
| float | evalRateOfFlow (int pendingMessages, int pendingRequests) |
| void | factorCheck (Hashtable clusters, int pendingMessages, int pendingRequests) |
| boolean | isOverloaded () |
| String | toString () |
Public Attributes | |
| ClusterQueueImpl | clusterQueueImpl |
| int | producThreshold = -1 |
| int | consumThreshold = -1 |
| boolean | autoEvalThreshold = false |
| long | validityPeriod = -1 |
Definition at line 38 of file LoadingFactor.java.
| float org.objectweb.joram.mom.dest.LoadingFactor.evalRateOfFlow | ( | int | pendingMessages, | |
| int | pendingRequests | |||
| ) |
eval the rate of flow (means). if rateOfFlow > 1 the queue are more pending requests than pending messages. else if rateOfFlow < 1 the queue are more pending messages than pending requests. This value is set in all QueueClusterNot notification.
| pendingMessages | ||
| pendingRequests |
Definition at line 206 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.LoadingFactor.factorCheck(), org.objectweb.joram.mom.dest.ClusterQueueImpl.lBMessageHope(), and org.objectweb.joram.mom.dest.ClusterQueueImpl.postProcess().
| void org.objectweb.joram.mom.dest.LoadingFactor.factorCheck | ( | Hashtable | clusters, | |
| int | pendingMessages, | |||
| int | pendingRequests | |||
| ) |
this method eval the rate of flow and activity. if necessary send "give or hope" messages, and update threshol.
| clusters | ||
| pendingMessages | ||
| pendingRequests |
Definition at line 243 of file LoadingFactor.java.
References org.objectweb.joram.mom.dest.LoadingFactor.evalRateOfFlow(), org.objectweb.joram.mom.dest.LoadingFactor.isOverloaded(), and org.objectweb.joram.mom.dest.LoadingFactor.validityPeriod.
Referenced by org.objectweb.joram.mom.dest.ClusterQueueImpl.postProcess(), org.objectweb.joram.mom.dest.ClusterQueueImpl.receiveRequest(), and org.objectweb.joram.mom.dest.ClusterQueueImpl.wakeUpNot().
Here is the call graph for this function:

| boolean org.objectweb.joram.mom.dest.LoadingFactor.isOverloaded | ( | ) |
true if cluster queue is overloaded. depends on activity.
Definition at line 289 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.LoadingFactor.factorCheck().
reference to clusterQueueImpl
Definition at line 85 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.LoadingFactor.LoadingFactor().
producer threshold
Definition at line 87 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.ClusterQueueImpl.postProcess(), and org.objectweb.joram.mom.dest.ClusterQueueImpl.setProducThreshold().
consumer threshold
Definition at line 89 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.ClusterQueueImpl.receiveRequest(), org.objectweb.joram.mom.dest.ClusterQueueImpl.setConsumThreshold(), and org.objectweb.joram.mom.dest.LoadingFactor.toString().
| boolean org.objectweb.joram.mom.dest.LoadingFactor.autoEvalThreshold = false |
automatic eval threshold
Definition at line 91 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.ClusterQueueImpl.setAutoEvalThreshold(), and org.objectweb.joram.mom.dest.LoadingFactor.toString().
validity period
Definition at line 93 of file LoadingFactor.java.
Referenced by org.objectweb.joram.mom.dest.LoadingFactor.factorCheck(), org.objectweb.joram.mom.dest.LoadingFactor.setWait(), and org.objectweb.joram.mom.dest.ClusterQueueImpl.setWaitAfterClusterReq().
1.5.0