|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.iaas.statenotifications.PowerStateChangeNotificationHandler
public class PowerStateChangeNotificationHandler
implements a notification handler for sending out notifications about power state changes in resource spreaders
| Field Summary | |
|---|---|
private static PowerStateChangeNotificationHandler |
handlerSingleton
the single object that will handle all notification operations on the same way |
| Constructor Summary | |
|---|---|
private |
PowerStateChangeNotificationHandler()
disables the instantiation of the handler so we really just have a single instance for all handling operations |
| Method Summary | |
|---|---|
static StateDependentEventHandler<PowerBehaviorChangeListener,org.apache.commons.lang3.tuple.Pair<ResourceSpreader,PowerState>> |
getHandlerInstance()
gets the event handler that will manage the notification subscriptions for the particular resource spreader object that asked for the handler. |
void |
sendNotification(PowerBehaviorChangeListener onObject,
org.apache.commons.lang3.tuple.Pair<ResourceSpreader,PowerState> newPowerBehavior)
The event handling mechanism for power state change notifications about resource spreaders |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final PowerStateChangeNotificationHandler handlerSingleton
| Constructor Detail |
|---|
private PowerStateChangeNotificationHandler()
| Method Detail |
|---|
public static StateDependentEventHandler<PowerBehaviorChangeListener,org.apache.commons.lang3.tuple.Pair<ResourceSpreader,PowerState>> getHandlerInstance()
public void sendNotification(PowerBehaviorChangeListener onObject,
org.apache.commons.lang3.tuple.Pair<ResourceSpreader,PowerState> newPowerBehavior)
sendNotification in interface SingleNotificationHandler<PowerBehaviorChangeListener,org.apache.commons.lang3.tuple.Pair<ResourceSpreader,PowerState>>onObject - The listener to send the event tonewPowerBehavior - a data pair containing the resource spreader that changed its
state and the power state that the spreader just switches to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||