public interface ServiceBeanInstantiator
ServiceElement
object.
The ServiceBeanInstantiator additionally provides semantics allowing clients to
obtain information about services that have been started and are currently
running using the ServiceStatement
and
ServiceRecord
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInetAddress()
Get the IP address of the ServiceBeanInstantiator
|
net.jini.id.Uuid |
getInstantiatorUuid()
Get the Uuid which uniquely identifies the ServiceBeanInstantiator
|
String |
getName()
Get a name for the ServiceBeanInstantiator
|
ServiceBeanInstance[] |
getServiceBeanInstances(ServiceElement element)
Get all
ServiceBeanInstance objects for a ServiceElement |
ServiceRecord[] |
getServiceRecords(int filter)
This method returns an array of
ServiceRecord objects which contain
information about the service instances this ServiceBeanInstantiator
has instantiated. |
ServiceStatement |
getServiceStatement(ServiceElement sElem)
This method returns a
ServiceStatement for the
ServiceElement |
ServiceStatement[] |
getServiceStatements()
This method returns an array of
ServiceStatement objects which contain
information about the ServiceBean instances this ServiceBeanInstantiator
has instantiated. |
DeployedService |
instantiate(ServiceProvisionEvent event)
This method is invoked as a result of event registration to
ProvisionManager instances. |
void |
update(ServiceElement[] sElements,
OperationalStringManager opStringMgr)
Invoked to update instantiated ServiceBean instances of changes in
their
ServiceElement objects and
OperationalStringManager references. |
DeployedService instantiate(ServiceProvisionEvent event) throws ServiceBeanInstantiationException, net.jini.core.event.UnknownEventException, RemoteException
ProvisionManager
instances. The
ServiceBeanInstantiator will register for
ServiceProvisionEvent
notifications.event
- - The ServiceProvisionEventServiceBeanInstantiationException
- f there are problems loading or
instantiating the ServiceBeannet.jini.core.event.UnknownEventException
- if it does not recognize the Event IDRemoteException
- if communication errors occurvoid 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 a 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 updateRemoteException
- If communication errors happenServiceStatement[] getServiceStatements() throws RemoteException
ServiceStatement
objects which contain
information about the ServiceBean instances this ServiceBeanInstantiator
has instantiated.RemoteException
- If communication errors happenServiceStatement getServiceStatement(ServiceElement sElem) throws RemoteException
ServiceStatement
for the
ServiceElement
sElem
- The ServiceElement to get the ServiceStatement for.
If this argument should is null, an IllegalArgumentException is thrown.RemoteException
- If communication errors happenServiceRecord[] 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
- If communication errors happenServiceBeanInstance[] 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 returnedRemoteException
- If communication errors happenString getName() throws RemoteException
RemoteException
- If communication errors happennet.jini.id.Uuid getInstantiatorUuid() throws RemoteException
RemoteException
- If communication errors happenInetAddress getInetAddress() throws RemoteException
InetAddress
RemoteException
- If communication errors happenCopyright © 2007–2018 Rio Project. All rights reserved.