hu.mta.sztaki.lpds.cloud.simulator.notifications
Interface SingleNotificationHandler<T,P>

Type Parameters:
T - the kind of state change for which this handler is prepared to notify about.
P - the kind of data to be passed on to the notified party
All Known Implementing Classes:
PowerStateChangeNotificationHandler, VMStateChangeNotificationHandler

public interface SingleNotificationHandler<T,P>

the handler for a particular kind of notification. the implementer of this interface should be prepared to notify the interested party (T) that a state change has happened and it should send the payload to the interested party.

Author:
"Gabor Kecskemeti, Laboratory of Parallel and Distributed Systems, MTA SZTAKI (c) 2015"

Method Summary
 void sendNotification(T onObject, P payload)
          this function is called by the statedependenteventhandler class when a notification is needed for a particular kind of event.
 

Method Detail

sendNotification

void sendNotification(T onObject,
                      P payload)
this function is called by the statedependenteventhandler class when a notification is needed for a particular kind of event.

Parameters:
onObject - the subscribed object that is expecting to receive the notifications
payload - the data to be sent alongside the notification


Copyright © 2012–2015 University of Innsbruck & MTA SZTAKI. All rights reserved.