|
||||||||||
| 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.VMStateChangeNotificationHandler
public class VMStateChangeNotificationHandler
implements a notification handler for sending out notifications about VM state changes
| Field Summary | |
|---|---|
private static VMStateChangeNotificationHandler |
handlerSingleton
the singleton notification sender object that will send out all notifications about a VM state changes on a uniform way |
| Constructor Summary | |
|---|---|
private |
VMStateChangeNotificationHandler()
disables the instantiation of the handler so we really just have a single instance for all handling operations |
| Method Summary | |
|---|---|
static StateDependentEventHandler<VirtualMachine.StateChange,org.apache.commons.lang3.tuple.Triple<VirtualMachine,VirtualMachine.State,VirtualMachine.State>> |
getHandlerInstance()
gets the event handler that will manage the subscriptions for the particular VM object that asked for the handler. |
void |
sendNotification(VirtualMachine.StateChange onObject,
org.apache.commons.lang3.tuple.Triple<VirtualMachine,VirtualMachine.State,VirtualMachine.State> stateData)
The event handling mechanism for VM state change notifications |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final VMStateChangeNotificationHandler handlerSingleton
| Constructor Detail |
|---|
private VMStateChangeNotificationHandler()
| Method Detail |
|---|
public static StateDependentEventHandler<VirtualMachine.StateChange,org.apache.commons.lang3.tuple.Triple<VirtualMachine,VirtualMachine.State,VirtualMachine.State>> getHandlerInstance()
public void sendNotification(VirtualMachine.StateChange onObject,
org.apache.commons.lang3.tuple.Triple<VirtualMachine,VirtualMachine.State,VirtualMachine.State> stateData)
sendNotification in interface SingleNotificationHandler<VirtualMachine.StateChange,org.apache.commons.lang3.tuple.Triple<VirtualMachine,VirtualMachine.State,VirtualMachine.State>>onObject - The listener to send the event tostateData - a data triplet containing the VM and its the past and future
states.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||