com.genesyslab.ail.event
Interface PlaceEventMediaStatusChanged

All Superinterfaces:
ObjectEvent, PlaceEvent, java.io.Serializable

public interface PlaceEventMediaStatusChanged
extends PlaceEvent

This event occurs upon a status change in the monitored place's media.

This event is propagated in the PlaceListener.handlePlaceEvent(com.genesyslab.ail.event.PlaceEvent) method, as shown in the following code snippet.

public class SimplePlaceExample implements PlaceListener
{
    //...
    public void handlePlaceEvent(PlaceEvent event)
    {
        if( event instanceof PlaceEventMediaStatusChanged) {
            PlaceEventMediaStatusChanged evt = (PlaceEventMediaStatusChanged) event;
            //Managing the event information
            //...
        }
    }
    //...
}


Method Summary
 Media getMedia()
          Returns the media whose status changed.
 Media.Reason getReason()
          Returns the reason of this event.
 Media.Status getStatus()
          Returns the new status of the media.
 java.lang.String getStatusReason()
          Returns the reason of the status of the media.
 java.lang.String getStatusReasonDescription()
          Returns the description of the reason of the status of the media.
 
Methods inherited from interface com.genesyslab.ail.event.PlaceEvent
getPlace
 
Methods inherited from interface com.genesyslab.ail.event.ObjectEvent
getSource
 

Method Detail

getMedia

Media getMedia()
Returns the media whose status changed.


getStatus

Media.Status getStatus()
Returns the new status of the media.


getReason

Media.Reason getReason()
Returns the reason of this event.


getStatusReason

java.lang.String getStatusReason()
Returns the reason of the status of the media.


getStatusReasonDescription

java.lang.String getStatusReasonDescription()
Returns the description of the reason of the status of the media.