Rio Project 4.2 API Documentation
org.rioproject.sla
Class SLAPolicyEvent
java.lang.Object
java.util.EventObject
org.rioproject.sla.SLAPolicyEvent
- All Implemented Interfaces:
- Serializable
public class SLAPolicyEvent
- extends EventObject
SLAPolicyHandler implementations create SLAPolicyEvent objects to notify
local SLAPolicyEventListener instances of actions it has taken
- Author:
- Dennis Reedy
- See Also:
- Serialized Form
SLAPolicyEvent
public SLAPolicyEvent(Object source,
SLA sla,
String message)
- Construct a SLAPolicyEvent
- Parameters:
source - The originator of the eventsla - The SLA the policy event is formessage - A message detailing what action occured
SLAPolicyEvent
public SLAPolicyEvent(Object source,
SLA sla,
String message,
Object resultant)
- Construct a SLAPolicyEvent
- Parameters:
source - The originator of the actionsla - The SLA the policy event is formessage - A message detailing what action occuredresultant - An Object that was created/changed/removed as a result
of an action the SLAPolicyHandler took
getSLA
public SLA getSLA()
- Returns:
- Get the SLA
getMessage
public String getMessage()
- Returns:
- Get the message
getWhen
public long getWhen()
- Returns:
- Get when the event was fired
getResultant
public Object getResultant()
- Returns:
- Get the resultant Object
setSLAThresholdEvent
public void setSLAThresholdEvent(SLAThresholdEvent slaThresholdEvent)
- Set the SLAThresholdEvent
- Parameters:
slaThresholdEvent - The SLAThresholdEvent
getSLAThresholdEvent
public SLAThresholdEvent getSLAThresholdEvent()
- Returns:
- Get the SLAThresholdEvent
Copyright © 2006-2011 Rio Project. All Rights Reserved.