Rio Project 4.2 API Documentation



org.rioproject.monitor
Class ServiceProvisionEventHandler

java.lang.Object
  extended by org.rioproject.monitor.ServiceProvisionEventHandler
All Implemented Interfaces:
Remote, ServerProxyTrust, ServiceProvisionListener

public class ServiceProvisionEventHandler
extends Object
implements ServiceProvisionListener, ServerProxyTrust

Class to handle ServiceProvisionEvent notifications

Author:
Dennis Reedy

Constructor Summary
ServiceProvisionEventHandler()
          Create the ServiceProvisionEventHandler utility
 
Method Summary
 int await(long maxTimeout)
          For for the service notifications timeout
 void failed(ServiceElement sElem, boolean resubmitted)
          Notify listener that the Service described by the ServiceElement has not been provision succesfully
 TrustVerifier getProxyVerifier()
           
 ServiceProvisionListener getServiceProvisionListener()
          Get the ServiceProvisionListener proxy
 void setServiceCount(int serviceCount)
          Set the number of notifications
 void succeeded(ServiceBeanInstance jsbInstance)
          Notify listener that the Service described by the ServiceBeanInstance has been provisioned succesfully
 void unexport()
          Unexport this utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceProvisionEventHandler

public ServiceProvisionEventHandler()
                             throws ExportException
Create the ServiceProvisionEventHandler utility

Throws:
ExportException - If the exporter cannot be created
Method Detail

unexport

public void unexport()
Unexport this utility


getServiceProvisionListener

public ServiceProvisionListener getServiceProvisionListener()
Get the ServiceProvisionListener proxy

Returns:
The ServiceProvisionListener proxy

setServiceCount

public void setServiceCount(int serviceCount)
Set the number of notifications

Parameters:
serviceCount - the number of services

await

public int await(long maxTimeout)
For for the service notifications timeout

Parameters:
maxTimeout - The maximum amount of time (in millis) to wait
Returns:
The number of services that have been succesfully provisioned

succeeded

public void succeeded(ServiceBeanInstance jsbInstance)
Description copied from interface: ServiceProvisionListener
Notify listener that the Service described by the ServiceBeanInstance has been provisioned succesfully

Specified by:
succeeded in interface ServiceProvisionListener
Parameters:
jsbInstance - The ServiceBeanInstance

failed

public void failed(ServiceElement sElem,
                   boolean resubmitted)
Description copied from interface: ServiceProvisionListener
Notify listener that the Service described by the ServiceElement has not been provision succesfully

Specified by:
failed in interface ServiceProvisionListener
Parameters:
sElem - The ServiceElement
resubmitted - Whether the Service described by the ServiceElement has been resubmitted for provisioning

getProxyVerifier

public TrustVerifier getProxyVerifier()
Specified by:
getProxyVerifier in interface ServerProxyTrust

Copyright © Rio Project.

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