*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Class OMRServiceConfigFactory
java.lang.Object
com.sas.services.deployment.AbstractServiceConfigFactory
com.sas.services.deployment.OMRServiceConfigFactory
- All Implemented Interfaces:
ServiceConfigFactoryInterface
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class OMRServiceConfigFactory
extends AbstractServiceConfigFactory
Factory used to manufacture a service configuration using
metadata queried from a SAS metadata repository.
- Since:
- 9.2
-
Field Summary
Fields inherited from class com.sas.services.deployment.AbstractServiceConfigFactory
PROPERTYNAME_INITDATA, PROPERTYROLE_INITIALIZATION -
Constructor Summary
ConstructorsConstructorDescriptionOMRServiceConfigFactory(String repositoryName, com.sas.meta.SASOMI.IOMI omi) Constructs a factory which can be used to manufacture service configurations queried from a SAS metadata repository.OMRServiceConfigFactory(String repositoryName, ConnectionInterface metadataServerConnection) Constructs a factory which can be used to manufacture service configurations queried from a SAS metadata repository. -
Method Summary
Modifier and TypeMethodDescriptioncreateConfigForService(String softwareComponentName, String treeName, String serviceComponentName, MetadataSourceInterface metadataSource, boolean isRMIExportEnabled) Query the service's configuration using a metadata resource adaptor.Methods inherited from class com.sas.services.deployment.AbstractServiceConfigFactory
addKeywordAttributes, addServiceAttributes, createServiceConfig, destroy, getMdFactory, getMdObjectStore, getServiceTypesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OMRServiceConfigFactory
public OMRServiceConfigFactory(String repositoryName, ConnectionInterface metadataServerConnection) throws ServiceException Constructs a factory which can be used to manufacture service configurations queried from a SAS metadata repository.Destroy this object by calling
AbstractServiceConfigFactory.destroy()when it is no longer needed.- Parameters:
repositoryName- The name of the repository from which foundation services metadata is to be queried.metadataServerConnection- A connection to a metadata server.- Throws:
ServiceException- if unable to create a metadata factory using the specified connection or if unable to locate the named repository.- See Also:
-
OMRServiceConfigFactory
public OMRServiceConfigFactory(String repositoryName, com.sas.meta.SASOMI.IOMI omi) throws ServiceException Constructs a factory which can be used to manufacture service configurations queried from a SAS metadata repository.Destroy this object by calling
AbstractServiceConfigFactory.destroy()when it is no longer needed.- Parameters:
repositoryName- The name of the repository from which foundation services metadata is to be queried.omi- A connection to a metadata server.- Throws:
ServiceException- if unable to create a metadata factory using the specified connection or if unable to locate the named repository.IllegalArgumentException- if anullparameter is specified.- See Also:
-
-
Method Details
-
createConfigForService
public ServiceConfigurationInterface createConfigForService(String softwareComponentName, String treeName, String serviceComponentName, MetadataSourceInterface metadataSource, boolean isRMIExportEnabled) throws ServiceException Query the service's configuration using a metadata resource adaptor. If an identity is not explicitly specified, then use a pre-configured identity obtained from the JAAS login-config.xml.- Specified by:
createConfigForServicein interfaceServiceConfigFactoryInterface- Specified by:
createConfigForServicein classAbstractServiceConfigFactory- Parameters:
softwareComponentName- The name of the SAS Foundation Services deployment. This is theSoftwareComponent.Name.treeName- The name of the service deployment group. This is theTree.Name.serviceComponentName- The name of the service component. This is theServiceComponent.Name.metadataSource- Metadata source.isRMIExportEnabled-trueif remote objects should be exported to the RMI system orfalseif they shouldn't.- Returns:
- Service configuration
- Throws:
ServiceException- if unable to get the service configuration. The ServiceException may wrap an exception that provides details concerning the cause of the failure.IllegalStateException- if this method is called after this object has been destroyed.
-