|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.cybernode.JSBContainer
public class JSBContainer
The JSBContainer implements support for a ServiceBeanContainer
| Constructor Summary | |
|---|---|
JSBContainer(Configuration config)
Create a new ServiceBeanContainer |
|
| 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[] |
getDelegates(ServiceElement sElem)
|
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()
Terminate the ServiceBeanContainer |
void |
update(ServiceElement[] sElems,
OperationalStringManager opStringMgr)
Invoked to update instantiated service instances of changes in their ServiceElement objects and OperationalStringManager references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSBContainer(Configuration config)
config - The Configuration to use| Method Detail |
|---|
public Configuration getSharedConfiguration()
ServiceBeanContainer
getSharedConfiguration in interface ServiceBeanContainerServiceBeanContainer.getSharedConfiguration()public void setComputeResource(ComputeResource computeResource)
setComputeResource in interface ServiceBeanContainercomputeResource - The ComputeResource to usepublic ComputeResource getComputeResource()
ServiceBeanContainer
getComputeResource in interface ServiceBeanContainerServiceBeanContainer.getComputeResource()public void terminate()
terminate in interface ServiceBeanContainerpublic void terminateServices()
terminateServices in interface ServiceBeanContainerpublic ServiceRecord[] getServiceRecords()
ServiceBeanContainer
getServiceRecords in interface ServiceBeanContainerServiceBeanContainer.getServiceRecords()public int getServiceCounter()
ServiceBeanContainer
getServiceCounter in interface ServiceBeanContainerServiceBeanContainer.getServiceCounter()public int getActivationInProcessCount()
ServiceBeanContainer
getActivationInProcessCount in interface ServiceBeanContainerServiceBeanContainer.getActivationInProcessCount()
public ServiceBeanInstance activate(ServiceElement sElem,
OperationalStringManager opStringMgr,
EventHandler slaEventHandler)
throws JSBInstantiationException
ServiceBeanContainer
activate in interface ServiceBeanContainersElem - 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 ServiceBeanServiceBeanContainer.activate(org.rioproject.core.ServiceElement, org.rioproject.core.OperationalStringManager, org.rioproject.event.EventHandler)
public void update(ServiceElement[] sElems,
OperationalStringManager opStringMgr)
ServiceBeanContainer
update in interface ServiceBeanContainersElems - Array of ServiceElement instances to updateopStringMgr - The OperationalStringManager which is performing
the updateServiceBeanContainer.update(org.rioproject.core.ServiceElement[], org.rioproject.core.OperationalStringManager)public ServiceBeanInstance[] getServiceBeanInstances(ServiceElement element)
ServiceBeanContainerServiceBeanInstance objects for a
ServiceElement
getServiceBeanInstances in interface ServiceBeanContainerelement - 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 returnedServiceBeanContainer.getServiceBeanInstances(org.rioproject.core.ServiceElement)public void setUuid(Uuid uuid)
ServiceBeanContainer
setUuid in interface ServiceBeanContaineruuid - The Uuid for the ServiceBeanContainerpublic Uuid getUuid()
ServiceBeanContainer
getUuid in interface ServiceBeanContainerpublic ServiceBeanDelegate[] getDelegates(ServiceElement sElem)
public void started(Object identifier)
ServiceBeanContainer
started in interface ServiceBeanContaineridentifier - Object which can be used by the ServiceBeanContainer to
identify the serviceServiceBeanContainer.started(Object)public void discarded(Object identifier)
ServiceBeanContainer
discarded in interface ServiceBeanContaineridentifier - Object which can be used by the ServiceBeanContainer to
identify the serviceServiceBeanContainer.discarded(Object)public void remove(Object identifier)
ServiceBeanContainer
remove in interface ServiceBeanContaineridentifier - Object which can be used by the ServiceBeanContainer to
identify the serviceServiceBeanContainer.remove(Object)public void addListener(ServiceBeanContainerListener l)
ServiceBeanContainer
addListener in interface ServiceBeanContainerl - A ServiceBeanContainerListener to be added.ServiceBeanContainer.addListener(org.rioproject.cybernode.ServiceBeanContainerListener)public void removeListener(ServiceBeanContainerListener l)
ServiceBeanContainer
removeListener in interface ServiceBeanContainerl - A ServiceBeanContainerListener to be removed.ServiceBeanContainer.addListener(org.rioproject.cybernode.ServiceBeanContainerListener)public ServiceBeanDelegate getServiceBeanDelegate(Uuid serviceUuid)
ServiceBeanContainer
getServiceBeanDelegate in interface ServiceBeanContainerserviceUuid - The identifier of the service
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||