|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.RMIDeployableService
public class RMIDeployableService
An RMI deployable service is an object that represents a foundation service
that can
be deployed by the ServiceLoader
utility.
It represents a foundation service which is ultimately defined in terms of an
Open Metadata Architecture (OMA) metadata schema.
During the process of
querying a metadata source for a foundation service deployment the creation of
a
DeployableService
represents a conversion from an OMA metadata
representation into an alternative representation that is more suited for
use in the foundation service deployment domain.
Constructor Summary | |
---|---|
RMIDeployableService(java.lang.String id,
ServiceConfigurationInterface serviceConfiguration,
java.lang.String[] dependencies,
java.util.Set rmiBindings,
AbstractMetadataSource metadataSource)
Constructs an instance that specifies a factory that will be used to instantiate a service and optionally register it with the RMIRegistry. |
Method Summary | |
---|---|
RemoteServiceInterface |
deploy()
Deploys an RMI service by either looking up its stub in an RMI registry or instantiating a service and optionally registering it with RMI. |
RemoteServiceInterface |
deploy(DiscoveryServiceInterface discoveryService)
Deploys an RMI service by either looking up its stub in an RMI registry or instantiating a service and optionally registering it with RMI. |
java.lang.String |
toString()
Gets a string representation of this instance. |
Methods inherited from class com.sas.services.deployment.DeployableService |
---|
compareTo, equals, getDependencies, getId, getServiceConfiguration, getServiceFactory, hashCode, setDependencies |
Constructor Detail |
---|
public RMIDeployableService(java.lang.String id, ServiceConfigurationInterface serviceConfiguration, java.lang.String[] dependencies, java.util.Set rmiBindings, AbstractMetadataSource metadataSource) throws ServiceException
id
- Deployable service's repository ID.serviceConfiguration
- Deployable service's initialization configuration
that will be provided to the service factory.dependencies
- A set of 0..* service repository IDs upon which
this service depends. This service may not be
deployed until these other services are deployed.
A null
parameter value indicates that
there are no other dependencies.rmiBindings
- Set of RMI name bindings
associating service
to one or more RMI registries.metadataSource
- Metadata source which was used to deploy services. It
will be updated with the RMI bindings for any remote
discovery services which are deployed.
ServiceException
- if unable to construct an instance.Method Detail |
---|
public RemoteServiceInterface deploy() throws ServiceException
deploy
in interface DeployInterface
deploy
in class DeployableService
ServiceException
- if unable to deploy the service.DeployInterface.deploy()
public RemoteServiceInterface deploy(DiscoveryServiceInterface discoveryService) throws ServiceException
deploy
in class DeployableService
discoveryService
- The discovery service to which the service should register
if it wants to be located by other services or null
if the deployed service should not be registered.
ServiceException
- if unable to deploy the service.DeployInterface.deploy()
public java.lang.String toString()
toString
in class DeployableService
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |