|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.deployment.ServiceLoader
Service deployment utility that loads services based upon an Open Metadata Architecture (OMA) compliant schema. This loader may be used to deploy services or to look up remote discovery services to which previously deployed services may be registered.
In the case of service deployment, if a discovery service is specified then deployed services will be registered with the discovery service to facilitate future lookup based upon their service types and optionally service attributes.
Once services are deployed they can be discovered using the
DiscoveryService.
| Method Summary | |
static void |
deployServices(MetadataSourceInterface metadataSource)
Gets a set of deployable services from the specified metadata source and registers instantiated services with the local discovery service. |
static void |
deployServices(MetadataSourceInterface metadataSource,
DiscoveryServiceInterface discoveryService)
Gets a set of deployable services from the specified metadata source. |
static void |
lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSource)
Gets a set of DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process and binds them to the local
discovery service. |
static void |
lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSource,
DiscoveryServiceInterface discoveryService)
Gets a set of DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process. |
static void |
lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSourceLookup,
DiscoveryServiceInterface discoveryService,
LookupPolicyInterface lookupPolicy)
Gets a set of DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process. |
static MetadataSourceInterface |
newMetadataSource(Properties properties)
Deprecated. Use MetadataSourceFactory.newMetadataSource(Properties) instead. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSource,
DiscoveryServiceInterface discoveryService)
throws ServiceException,
ServiceLookupFailedException
DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process.
ServiceComponent elements associated
with the specified SoftwareComponent that are
RMI registries.NamedService name bindings associated
with each RMI registry.ServiceComponent elements bound to the
RMI registry that satisfy service type
com.sas.services.discovery.FindServiceInterfacemetadataSource - A source for the metadata such as an initialized
instance of an OMRMetadataSource or URLMetadataSource.
Note that if an OMR metadata source is specified that its
connection will be closed by this method unless the metadata
source's preference to be closed has been toggled off.discoveryService - A discovery service to which deployed services
will be registered.ServiceException - if unable to lookup remote discovery services.ServiceLookupFailedException - if 1..* remote discovery service
lookups fail.
public static final void lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSource)
throws ServiceException,
ServiceLookupFailedException
DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process and binds them to the local
discovery service.
ServiceComponent elements associated
with the specified SoftwareComponent that are
RMI registries.NamedService name bindings associated
with each RMI registry.ServiceComponent elements bound to the
RMI registry that satisfy service type
com.sas.services.discovery.FindServiceInterfacemetadataSource - A source for the metadata such as an initialized
instance of an OMRMetadataSource or URLMetadataSource.
Note that if an OMR metadata source is specified that its
connection will be closed by this method unless the metadata
source's preference to be closed has been toggled off.ServiceException - if unable to lookup remote discovery services.ServiceLookupFailedException - if 1..* remote discovery service
lookups fail.
public static final void lookupRemoteDiscoveryServices(MetadataSourceInterface metadataSourceLookup,
DiscoveryServiceInterface discoveryService,
LookupPolicyInterface lookupPolicy)
throws ServiceException,
ServiceLookupFailedException
DeployableService elements representing
remote discovery services that may be available if previously
deployed by foundation bootstrap process.
ServiceComponent elements associated
with the specified SoftwareComponent that are
RMI registries.NamedService name bindings associated
with each RMI registry.ServiceComponent elements bound to the
RMI registry that satisfy service type
com.sas.services.discovery.FindServiceInterfacemetadataSourceLookup - A source for the metadata such as an initialized
instance of an OMRMetadataSource or URLMetadataSource.
Note that if an OMR metadata source is specified that its
connection will be closed by this method unless the metadata
source's preference to be closed has been toggled off.discoveryService - A discovery service to which deployed services
will be registered.lookupPolicy - null if the lookup should not
be re-attempted in the event that it fails or an implementation
of a lookup policy that will be used to specify whether or
not subsequent attempts occur. Lookup policy implementations
include LookupPolicyAttempts
and LookupPolicyTimeout.ServiceException - if unable to lookup remote discovery services.ServiceLookupFailedException - if 1..* remote discovery service
lookups fail.
public static final MetadataSourceInterface newMetadataSource(Properties properties)
throws InitializationException
MetadataSourceFactory.newMetadataSource(Properties) instead.
The syntax of these files is described in the package documentation.
The following links provide sample properties files.
properties - Properties describing how to access the metadata source.InitializationException - if unable to create a new metadata source.MetadataSourceFactory
public static final void deployServices(MetadataSourceInterface metadataSource)
throws ServiceException
local discovery service.metadataSource - Metadata source from which services will be
queried.ServiceException - if unable to deploy the services.
public static final void deployServices(MetadataSourceInterface metadataSource,
DiscoveryServiceInterface discoveryService)
throws ServiceException
metadataSource - Metadata source from which services will be queried.
Note that if an OMR metadata source is specified that its
connection will be closed by this method unless the metadata
source's preference to be closed has been toggled off.discoveryService - The discovery service to which loaded services
will be registered. As services are deployed
they will be registered with this
discovery service.ServiceException - if unable to deploy the services.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||