public class ExampleTakeCPUDemandProbe extends BasicEventProbe<ASimpleActiveResource,Double,javax.measure.quantity.Duration> implements Observer
SI.SECOND) by taking the demand emitted from an
active resource (event source), e.g., a CPU. This class uses ASimpleActiveResource
as an example active resource.| Constructor and Description |
|---|
ExampleTakeCPUDemandProbe(ASimpleActiveResource activeResource)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
update(Observable eventSource,
Object event)
Receives a new demand event from the active resource (event source).
|
addObserver, getMetricDesciption, isCompatibleWith, removeObserverpublic ExampleTakeCPUDemandProbe(ASimpleActiveResource activeResource)
activeResource - The event source is an active resource (e.g., a CPU), thus, able to emit demand
events.public void update(Observable eventSource, Object event)