Rio Project 4.2 API Documentation



org.rioproject.cybernode
Interface ServiceBeanDelegate

All Known Implementing Classes:
JSBDelegate

public interface ServiceBeanDelegate

Defines the semantics of a class that the Cybernode delegates management of created service instances

Author:
Dennis Reedy

Method Summary
 void advertise()
          Advertise the ServiceBean, making it available to all clients
 ComputeResourceUtilization getComputeResourceUtilization()
          Get the ComputeResourceUtilization
 ServiceBeanInstance getServiceBeanInstance()
          Get the ServiceBeanInstance
 ServiceElement getServiceElement()
          Get the ServiceElement
 ServiceRecord getServiceRecord()
          Get the ServiceRecord
 ServiceBeanInstance load()
          Loads and starts a service, blocking until the service has been started
 void setEventHandler(EventHandler slaEventHandler)
          Set the EventHandler
 void setOperationalStringManager(OperationalStringManager opStringMgr)
          Set the OperationalStringManager
 void setServiceElement(ServiceElement sElem)
          Set the ServiceElement
 void terminate()
          Terminate the ServiceBeanDelegate and the represented service
 boolean update(ServiceElement newElem, OperationalStringManager opMgr)
           
 

Method Detail

setOperationalStringManager

void setOperationalStringManager(OperationalStringManager opStringMgr)
Set the OperationalStringManager

Parameters:
opStringMgr - The OperationalStringManager that has deployed and is managing the service

setServiceElement

void setServiceElement(ServiceElement sElem)
Set the ServiceElement

Parameters:
sElem - The ServiceElement detailing the service and it's properties

setEventHandler

void setEventHandler(EventHandler slaEventHandler)
Set the EventHandler

Parameters:
slaEventHandler - The EventHandler which is used to send SLAThresholdEvent notifications for SLAs that have been declared by the service which match quantitative resources the Cybernode has created

getServiceRecord

ServiceRecord getServiceRecord()
Get the ServiceRecord

Returns:
ServiceRecord

getServiceElement

ServiceElement getServiceElement()
Get the ServiceElement

Returns:
The ServiceElement used by this JSBDelegate

load

ServiceBeanInstance load()
                         throws JSBInstantiationException
Loads and starts a service, blocking until the service has been started

Returns:
The ServiceBeanInstance
Throws:
JSBInstantiationException - if there are erros loading the service bean

getServiceBeanInstance

ServiceBeanInstance getServiceBeanInstance()
Get the ServiceBeanInstance

Returns:
The ServiceBeanInstance

advertise

void advertise()
               throws JSBControlException
Advertise the ServiceBean, making it available to all clients

Throws:
JSBControlException - if the service bean cannot be advertised

update

boolean update(ServiceElement newElem,
               OperationalStringManager opMgr)

getComputeResourceUtilization

ComputeResourceUtilization getComputeResourceUtilization()
Get the ComputeResourceUtilization

Returns:
The ComputeResourceUtilization for the represented service. If the service is contained within the CYbernode, return the ComputeResourceUtilization of the Cybernode. Oherwise reetun the ComputeResourceUtilization of the process hosting the represented service

terminate

void terminate()
Terminate the ServiceBeanDelegate and the represented service


Copyright © Rio Project.

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