|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceBeanContainer
The ServiceBeanContainer defines the semantics required to instantiate service instances described by a ServiceElement
| Method Summary | |
|---|---|
ServiceBeanInstance |
activate(ServiceElement sElem,
OperationalStringManager opStringMgr,
EventHandler slaEventHandler)
Load and start a service defined by provided attributes |
void |
addListener(ServiceBeanContainerListener l)
Adds a listener to the set of listeners for this ServiceBeanContainer, provided that it is not the same as some listener already in the set. |
void |
discarded(Object identifier)
Informs the ServiceBeanContainer that a service has been discarded |
int |
getActivationInProcessCount()
Get the number of services that are currently being activated |
ComputeResource |
getComputeResource()
This method is used to get the computeResource attribute. |
ServiceBeanDelegate |
getServiceBeanDelegate(Uuid serviceUuid)
Get the ServiceBeanDelegate for a service Uuid |
ServiceBeanInstance[] |
getServiceBeanInstances(ServiceElement element)
Get all ServiceBeanInstance objects for a
ServiceElement |
int |
getServiceCounter()
Get the amount of active services for this ServiceBeanContainer |
ServiceRecord[] |
getServiceRecords()
Get all ServiceRecord instances for service instances that have been activated by the ServiceBeanContainer |
Configuration |
getSharedConfiguration()
Get the shared configuration which can be used to delegate Configuration information to |
Uuid |
getUuid()
Get the Uuid |
void |
remove(Object identifier)
Informs the ServiceBeanContainer to remove a service |
void |
removeListener(ServiceBeanContainerListener l)
Removes a listener from the set of listeners for this ServiceBeanContainer, provided that the listener is in the set of known listeners |
void |
setComputeResource(ComputeResource computeResource)
Set the computeResource property. |
void |
setUuid(Uuid uuid)
Set the Uuid |
void |
started(Object identifier)
Informs the ServiceBeanContainer that a service has been started |
void |
terminate()
Terminate the ServiceBeanContainer. |
void |
terminateServices()
This will terminate all ServiceBeans running in the ServiceBeanContainer |
void |
update(ServiceElement[] sElems,
OperationalStringManager opStringMgr)
Invoked to update instantiated service instances of changes in their ServiceElement objects and OperationalStringManager references. |
| Method Detail |
|---|
Configuration getSharedConfiguration()
AggregateConfigvoid setComputeResource(ComputeResource computeResource)
computeResource - The ComputeResource Object to useComputeResource getComputeResource()
void started(Object identifier)
identifier - Object which can be used by the ServiceBeanContainer to
identify the servicevoid discarded(Object identifier)
identifier - Object which can be used by the ServiceBeanContainer to
identify the servicevoid remove(Object identifier)
identifier - Object which can be used by the ServiceBeanContainer to
identify the serviceint getServiceCounter()
ServiceBeanInstance activate(ServiceElement sElem,
OperationalStringManager opStringMgr,
EventHandler slaEventHandler)
throws JSBInstantiationException
sElem - The ServiceElementopStringMgr - The OperationalStringManager
that has deployed and is managing the serviceslaEventHandler - 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
JSBInstantiationException - If there are problems loading or
instantiating the ServiceBean
void update(ServiceElement[] sElems,
OperationalStringManager opStringMgr)
sElems - Array of ServiceElement instances to updateopStringMgr - The OperationalStringManager which is performing
the updateServiceRecord[] getServiceRecords()
ServiceBeanInstance[] getServiceBeanInstances(ServiceElement element)
ServiceBeanInstance objects for a
ServiceElement
element - The ServiceElement to obtain ServiceBeanInstance objects
for.
element parameter is null return all
ServiceBeanInstance objects. A new array is allocated each time.
If there are no matching ServiceBeanInstance objects a zero-length array
is returnedvoid setUuid(Uuid uuid)
uuid - The Uuid for the ServiceBeanContainerUuid getUuid()
int getActivationInProcessCount()
void addListener(ServiceBeanContainerListener l)
l - A ServiceBeanContainerListener to be added.void removeListener(ServiceBeanContainerListener l)
l - A ServiceBeanContainerListener to be removed.ServiceBeanDelegate getServiceBeanDelegate(Uuid serviceUuid)
serviceUuid - The identifier of the service
void terminate()
void terminateServices()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||