Rio Project 4.2 API Documentation



org.rioproject.sla
Class SLAThresholdEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.jini.core.event.RemoteEvent
          extended by org.rioproject.event.RemoteServiceEvent
              extended by org.rioproject.watch.ThresholdEvent
                  extended by org.rioproject.sla.SLAThresholdEvent
All Implemented Interfaces:
Serializable

public class SLAThresholdEvent
extends ThresholdEvent
implements Serializable

The SLAThresholdEvent extends ThresholdEvent and represents a threshold being crossed for a Service

Author:
Dennis Reedy
See Also:
Serialized Form

Field Summary
static long ID
          Unique ID
 
Fields inherited from class org.rioproject.watch.ThresholdEvent
BREACHED, CLEARED
 
Fields inherited from class org.rioproject.event.RemoteServiceEvent
date
 
Fields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source
 
Constructor Summary
SLAThresholdEvent(Object source, ServiceElement sElem, Calculable calculable, SLA sla, String slaPolicyHandlerDescription, String hostAddress, int type)
          Creates new SLAThresholdEvent
SLAThresholdEvent(Object source, ServiceElement sElem, ServiceBeanInstance instance, Calculable calculable, SLA sla, String slaPolicyHandlerDescription, String hostAddress, int type)
          Creates new SLAThresholdEvent
 
Method Summary
static EventDescriptor getEventDescriptor()
          Helper method to return the EventDescriptor for this event
 String getHostAddress()
          Getter for property hostAddress
 ServiceBeanInstance getServiceBeanInstance()
          Get the ServiceBeanInstance
 ServiceElement getServiceElement()
          Getter for property sElem
 SLA getSLA()
          Getter for property sla
 String getSLAPolicyHandlerDescription()
          Getter for property slaPolicyHandlerDescription
 void setHostAddress(String hostAddress)
          Setter for property hostAddress
 void setServiceElement(ServiceElement sElem)
          Setter for property sElem
 void setSLA(SLA sla)
          Setter for property sla
 void setSLAPolicyHandlerDescription(String slaPolicyHandlerDescription)
          Setter for property slaPolicyHandlerDescription
 
Methods inherited from class org.rioproject.watch.ThresholdEvent
getCalculable, getDetail, getThresholdValues, getType, setCalculable, setDetail, setThresholdValues, setType
 
Methods inherited from class org.rioproject.event.RemoteServiceEvent
getDate, setEventID, setHandback, setSequenceNumber
 
Methods inherited from class net.jini.core.event.RemoteEvent
getID, getRegistrationObject, getSequenceNumber
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final long ID
Unique ID

See Also:
Constant Field Values
Constructor Detail

SLAThresholdEvent

public SLAThresholdEvent(Object source,
                         ServiceElement sElem,
                         Calculable calculable,
                         SLA sla,
                         String slaPolicyHandlerDescription,
                         String hostAddress,
                         int type)
Creates new SLAThresholdEvent

Parameters:
source - The event source
sElem - The ServiceElement for the service
calculable - New value of property calculable
sla - The sla
slaPolicyHandlerDescription - = Description of the SLAPolicyHandler
hostAddress - The TCP/IP address of the ComputeResource
type - The type of event, breached or cleared

SLAThresholdEvent

public SLAThresholdEvent(Object source,
                         ServiceElement sElem,
                         ServiceBeanInstance instance,
                         Calculable calculable,
                         SLA sla,
                         String slaPolicyHandlerDescription,
                         String hostAddress,
                         int type)
Creates new SLAThresholdEvent

Parameters:
source - The event source
sElem - The ServiceElement for the service
instance - The ServiceBeanInstance
calculable - New value of property calculable
sla - The sla
slaPolicyHandlerDescription - = Description of the SLAPolicyHandler
hostAddress - The TCP/IP address of the ComputeResource
type - The type of event, breached or cleared
Method Detail

getServiceElement

public ServiceElement getServiceElement()
Getter for property sElem

Returns:
Value of property sElem

setServiceElement

public void setServiceElement(ServiceElement sElem)
Setter for property sElem

Parameters:
sElem - New value of property sElem

getSLA

public SLA getSLA()
Getter for property sla

Returns:
Value of property sla

setSLA

public void setSLA(SLA sla)
Setter for property sla

Parameters:
sla - New value of property sla

getSLAPolicyHandlerDescription

public String getSLAPolicyHandlerDescription()
Getter for property slaPolicyHandlerDescription

Returns:
Value of property slaPolicyHandlerDescription

setSLAPolicyHandlerDescription

public void setSLAPolicyHandlerDescription(String slaPolicyHandlerDescription)
Setter for property slaPolicyHandlerDescription

Parameters:
slaPolicyHandlerDescription - New value of property slaPolicyHandlerDescription

getHostAddress

public String getHostAddress()
Getter for property hostAddress

Returns:
Value of property hostAddress

setHostAddress

public void setHostAddress(String hostAddress)
Setter for property hostAddress

Parameters:
hostAddress - New value of property hostAddress

getServiceBeanInstance

public ServiceBeanInstance getServiceBeanInstance()
Get the ServiceBeanInstance

Returns:
The ServiceBeanInstance

getEventDescriptor

public static EventDescriptor getEventDescriptor()
Helper method to return the EventDescriptor for this event

Returns:
The EventDescriptor for this event

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.