|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.cybernode.JSBDelegate
public class JSBDelegate
The JSBDelegate provides loading and management services for a service
which has been instantiated by a ServiceBeanContainer
| Field Summary | |
|---|---|
protected ServiceBeanLoader.Result |
loadResult
Result from loading the service |
| Constructor Summary | |
|---|---|
JSBDelegate(Object identifier,
Uuid serviceID,
ServiceBeanContainer container)
Create a JSBDelegate |
|
| 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 |
protected void |
startServiceBean(ServiceElement sElem,
OperationalStringManager opStringMgr)
Load, instantiate and start the ServiceBean |
void |
terminate()
Terminate the ServiceBeanDelegate. |
boolean |
update(ServiceElement newElem,
OperationalStringManager opMgr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ServiceBeanLoader.Result loadResult
| Constructor Detail |
|---|
public JSBDelegate(Object identifier,
Uuid serviceID,
ServiceBeanContainer container)
identifier - A cookie for internal accountingserviceID - Unique identifier for the ServiceBeancontainer - The ServiceBeanContainer| Method Detail |
|---|
public void setOperationalStringManager(OperationalStringManager opStringMgr)
ServiceBeanDelegate
setOperationalStringManager in interface ServiceBeanDelegateopStringMgr - The OperationalStringManager
that has deployed and is managing the servicepublic void setServiceElement(ServiceElement sElem)
ServiceBeanDelegate
setServiceElement in interface ServiceBeanDelegatesElem - The ServiceElement detailing
the service and it's propertiespublic void setEventHandler(EventHandler slaEventHandler)
ServiceBeanDelegate
setEventHandler in interface ServiceBeanDelegateslaEventHandler - 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
createdpublic ServiceRecord getServiceRecord()
getServiceRecord in interface ServiceBeanDelegatepublic ServiceElement getServiceElement()
getServiceElement in interface ServiceBeanDelegate
public boolean update(ServiceElement newElem,
OperationalStringManager opMgr)
update in interface ServiceBeanDelegate
public ServiceBeanInstance load()
throws JSBInstantiationException
load in interface ServiceBeanDelegateJSBInstantiationException - if there are erros loading the service
beanpublic ServiceBeanInstance getServiceBeanInstance()
getServiceBeanInstance in interface ServiceBeanDelegate
public void advertise()
throws JSBControlException
advertise in interface ServiceBeanDelegateJSBControlException - if the service bean cannot be advertisedpublic ComputeResourceUtilization getComputeResourceUtilization()
ServiceBeanDelegate
getComputeResourceUtilization in interface ServiceBeanDelegatepublic void terminate()
terminate in interface ServiceBeanDelegate
protected void startServiceBean(ServiceElement sElem,
OperationalStringManager opStringMgr)
throws JSBInstantiationException
sElem - The ServiceElementopStringMgr - The OperationalStringManager
JSBInstantiationException - if there are errors creating the
service bean
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||