Rio Project 4.2 API Documentation



org.rioproject.monitor
Class ProvisionFailureEvent

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.monitor.ProvisionFailureEvent
All Implemented Interfaces:
Serializable

public class ProvisionFailureEvent
extends RemoteServiceEvent
implements Serializable

This class is used to communicate to interested registrants that a provision attempt for a particular service was unsuccessful

Author:
Dennis Reedy
See Also:
Serialized Form

Field Summary
static long ID
          Unique Event ID
 
Fields inherited from class org.rioproject.event.RemoteServiceEvent
date
 
Fields inherited from class net.jini.core.event.RemoteEvent
eventID, handback, seqNum, source
 
Constructor Summary
ProvisionFailureEvent(Object source, ServiceElement sElem, String reason, Throwable exception)
          Create a ProvisionFailureEvent with attributes
 
Method Summary
static EventDescriptor getEventDescriptor()
           
 String getReason()
          Get the reason why provisioning failed
 ServiceElement getServiceElement()
          Get the ServiceElement attribute
 Throwable getThrowable()
          Get the Throwable attribute
 String toString()
           
 
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
 
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 Event ID

See Also:
Constant Field Values
Constructor Detail

ProvisionFailureEvent

public ProvisionFailureEvent(Object source,
                             ServiceElement sElem,
                             String reason,
                             Throwable exception)
Create a ProvisionFailureEvent with attributes

Parameters:
source - The originator of the event
sElem - The ServiceElement
reason - Reason for the failure
exception - An associated Exception (if any)
Method Detail

getServiceElement

public ServiceElement getServiceElement()
Get the ServiceElement attribute

Returns:
The ServiceElement

getReason

public String getReason()
Get the reason why provisioning failed

Returns:
Reason for the failure

getThrowable

public Throwable getThrowable()
Get the Throwable attribute

Returns:
An associated Exception

getEventDescriptor

public static EventDescriptor getEventDescriptor()

toString

public String toString()
Overrides:
toString in class EventObject

Copyright © Rio Project.

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