| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceBeanInstantiator
The ServiceBeanInstantiator specifies the semantics for a service that
 provides instantiation and update support for services described by a   
 ServiceElement object. 
 
 The ServiceBeanInstantiator additionally provides semantics allowing clients to
 obtain infomration about services that have been started and are currently 
 running using the ServiceStatement and 
 ServiceRecord
| Method Summary | |
|---|---|
|  Uuid | getInstantiatorUuid()Get the Uuid which uniquely identifies the ServiceBeanInstantiator | 
|  String | getName()Get a name for the ServiceBeanInstantiator | 
|  ServiceBeanInstance[] | getServiceBeanInstances(ServiceElement element)Get all ServiceBeanInstanceobjects for aServiceElement | 
|  ServiceRecord[] | getServiceRecords(int filter)This method returns an array of ServiceRecordobjects which contain
 information about the service instances this ServiceBeanInstantiator
 has instantiated. | 
|  ServiceStatement[] | getServiceStatements()This method returns an array of ServiceStatementobjects which contain
 information about the ServiceBean instances this ServiceBeanInstantiator
 has instantiated. | 
|  ServiceBeanInstance | instantiate(ServiceProvisionEvent event)This method is invoked as a result of event registration to ProvisionManagerinstances. | 
|  void | update(ServiceElement[] sElements,
       OperationalStringManager opStringMgr)Invoked to update instantiated ServiceBean instances of changes in their ServiceElementobjects andOperationalStringManagerreferences. | 
| Method Detail | 
|---|
ServiceBeanInstance instantiate(ServiceProvisionEvent event)
                                throws JSBInstantiationException,
                                       UnknownEventException,
                                       RemoteException
ProvisionManager instances. The  
 ServiceBeanInstantiator will register for 
 ServiceProvisionEvent notifications.
event - - The ServiceProvisionEvent
JSBInstantiationException - if there are problems loading or
 instantiating the ServiceBean
UnknownEventException - if it does not recognize the Event ID
RemoteException - if communication errors occur
void update(ServiceElement[] sElements,
            OperationalStringManager opStringMgr)
            throws RemoteException
ServiceElement objects and 
 OperationalStringManager references. This 
 method invocation is typically triggered when the 
 OperationalString has been 
 updated, or the OperationalStringManager has been changed, and provides 
 somewhat of batch update mechanism.
 
 The ServiceBeanInstantiator will match the array of 
 ServiceElement objects to instantiated service 
 instances. For each match, the instance 
 will have it's ServiceElement updated with the provided ServiceElement object.
 
ServiceElement updates can trigger changes in running services. ServiceElement attributes (and contained class attributes) which may trigger behavior changes as follows:
SLA instances
 Association instances
 
sElements - Array of ServiceElement instances to updateopStringMgr - The OperationalStringManager which is performing
 the update
RemoteException
ServiceStatement[] getServiceStatements()
                                        throws RemoteException
ServiceStatement objects which contain
 information about the ServiceBean instances this ServiceBeanInstantiator
 has instantiated.
RemoteException
ServiceRecord[] getServiceRecords(int filter)
                                  throws RemoteException
ServiceRecord objects which contain
 information about the service instances this ServiceBeanInstantiator
 has instantiated.
filter - A filter for ServiceRecord retrieval. ServiceRecord
 instances will be returned if the ServiceRecord type matches the filter
 type. The filter can be either ServiceRecord.ACTIVE_SERVICE_RECORD or
 ServiceRecord.INACTIVE_SERVICE_RECORD.
RemoteException
ServiceBeanInstance[] getServiceBeanInstances(ServiceElement element)
                                              throws RemoteException
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 returned
RemoteException
String getName()
               throws RemoteException
RemoteException
Uuid getInstantiatorUuid()
                         throws RemoteException
RemoteException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||