|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.system.ComputeResource.CapabilityChannel
public class ComputeResource.CapabilityChannel
The CapabilityChannel is an inner class that becomes an Observer to MeasurableCapability components and ends up notifying the ComputeResource to update registered Observer instances if any MeasurableCapability components have changed their state within the interval prescribed for the broadcaster
| Field Summary | |
|---|---|
static long |
DEFAULT_REPORT_INTERVAL
|
| Constructor Summary | |
|---|---|
ComputeResource.CapabilityChannel()
|
|
| Method Summary | |
|---|---|
long |
getReportInterval()
Get the update interval for channelThread notification |
void |
run()
Thread that will update the ComputeResource to notify Observer instances if any MeasurableCapability have updated their state in the interval provided. |
void |
setReportInterval(long reportInterval)
Set the update interval for channelThread notification |
void |
subscribe(MeasurableCapability capability)
Subscribe to a MeasurableCapability |
void |
terminate()
Stop the CapabilityChannel channelThread |
void |
unsubscribe(MeasurableCapability capability)
Unsubscribe from a MeasurableCapability |
void |
update(Observable o,
Object arg)
Notification that concrete implementation(s) of the MeasurableCapability |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_REPORT_INTERVAL
| Constructor Detail |
|---|
public ComputeResource.CapabilityChannel()
| Method Detail |
|---|
public void terminate()
public void setReportInterval(long reportInterval)
reportInterval - The update interval for channelThread notificationpublic long getReportInterval()
public void subscribe(MeasurableCapability capability)
capability - A MeasurableCapabilitypublic void unsubscribe(MeasurableCapability capability)
capability - A MeasurableCapability
public void update(Observable o,
Object arg)
MeasurableCapability have changed their state. As these
notifications arise they will cause a chained reaction to occur, that is
all listeners (Observers) of the ComputeResource object
will be notified as well
- Specified by:
update in interface Observer
public void run()
run in interface Runnable
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||