|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexample.loadbalance.QuotaObserver
public class QuotaObserver
This class prints statistics about the actual quota consumptions. It is
assumed that the network nodes are instances of the
BasicBalance class.
Note that this observer can be replaced by a library class
VectorObserver the following way: class
BasicBalance needs to implement a public method "getQuota", and this
method needs to be configured as "getter".
| Parameter Summary | |
|---|---|
protocol
The protocol to operate on. |
|
| Constructor Summary | |
|---|---|
QuotaObserver(java.lang.String name)
Standard constructor that reads the configuration parameters. |
|
| Method Summary | |
|---|---|
boolean |
execute()
Performs arbitrary modifications or reports arbitrary information over the components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Parameter Detail |
|---|
protocol
| Constructor Detail |
|---|
public QuotaObserver(java.lang.String name)
name - the configuration prefix for this class.| Method Detail |
|---|
public boolean execute()
Control
execute in interface Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||