|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.ComputeResourceObserver
public class ComputeResourceObserver
The ComputeResourceObserver observes the ComputeResource object associated with a ServiceBean. It provides the following function:
As the ComputeResource object changes, it's overall utilization will be compared to the maximum utilization that may have been specified by the ServiceBean. If that cost exceeds the maximum utilization specified, then a SLAThresholdEvent will be fired
| Constructor Summary | |
|---|---|
ComputeResourceObserver(ComputeResource computeResource,
ServiceBeanContext context,
EventHandler eventHandler)
Construct a new ComputeResourceObserver |
|
| Method Summary | |
|---|---|
void |
disconnect()
Inform the ComputeResource object that this class is no longer interested in updates |
void |
setIgnore(boolean ignore)
Set the ignore property, telling the ComputeResourceObserver to ignore any changes from the ComputeResource |
void |
setSource(Object source)
Set the event source |
void |
update(Observable o,
Object arg)
The ComputeResource has changed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComputeResourceObserver(ComputeResource computeResource,
ServiceBeanContext context,
EventHandler eventHandler)
computeResource - The ComputeResource to observecontext - The ServiceBeanContext for the service beaneventHandler - The EventHandler for firing SLAThresholdEvents| Method Detail |
|---|
public void disconnect()
public void setSource(Object source)
source - The event sourcepublic void setIgnore(boolean ignore)
ignore - If true, ignore changes to the ComputeResource
public void update(Observable o,
Object arg)
update in interface Observero - The Observable objectarg - The argument
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||