*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment.ioc
Class OMRDeploymentContext
java.lang.Object
com.sas.services.deployment.DeploymentDescriptorContext
com.sas.services.deployment.ioc.OMRDeploymentContext
- All Implemented Interfaces:
DeploymentStrategyInterface
@SASScope("ALL")
@BinaryCompatibilityOnly
public class OMRDeploymentContext
extends DeploymentDescriptorContext
Context that describes how to query SAS Foundation Services metadata
that is persisted in a SAS Metadata Repository.
Code Example: Configuring a Context to Query Services Metadata from a SAS Metadata Repository
One must specify the following properties when defining this context.
| Property | Description |
|---|---|
MetadataSourceFactory.PROPERTY_SOFTWARECOMPONENT |
Service deployment's name (i.e. SoftwareComponent.Name) |
MetadataSourceFactory.PROPERTY_METADATASERVER_HOST |
Metadata server's host |
MetadataSourceFactory.PROPERTY_METADATASERVER_PORT |
Metadata server's port |
MetadataSourceFactory.PROPERTY_METADATASERVER_REPOSITORY |
Metadata server repository name |
MetadataSourceFactory.PROPERTY_METADATASERVER_USERID |
Metadata server logon ID |
MetadataSourceFactory.PROPERTY_METADATASERVER_USERPASSWORD |
Metadata server logon password |
Example 1: Configuring a Context
This example creates a context which will be used to query SAS Foundation Services metadata from a SAS Metadata repository.
// specify configuration properties necessary to query
// SAS Foundation Services deployment metadata
// from a SAS Metadata Server repository
OMRDeploymentContext context = new OMRDeploymentContext();
// name of the SAS Foundation Services deployment
// (e.g. the SoftwareComponent.Name)
context.setPropertySoftwareComponent("Local Services");
// SAS Metadata Server's host, port, and repository
// which will be queried to read the
// SAS Foundation Services deployment metadata
context.setPropertyHost("acme.com");
context.setPropertyPort("8216");
context.setPropertyRepository("Foundation");
// user id/password used to connect to the SAS Metadata Server
// to read the SAS Foundation Services deployment metadata
context.setPropertyUser("myUserID");
// Encode your password using SasPasswordString for additional security
context.setPropertyUserPassword("myUserPassword");- Since:
- 9.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a context that describes SAS Foundation Services deployment metadata which is persisted in a SAS Metadata Repository. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the value for the SAS Metadata Server's host.final StringGets the value for the SAS Metadata Server's port.final StringGets the value for the name of a repository in a SAS Metadata Server that is to be queried for SAS Foundation Services metadata.final StringGets the value for the user's ID who intends to connect to a SAS Metadata Server.final voidsetPropertyHost(String metadataServerHost) Sets the value of the the SAS Metadata Server's host.final voidsetPropertyPort(String metadataServerPort) Sets the value for the SAS Metadata Server's port.final voidsetPropertyRepository(String metadataRepository) Sets the value of a name of a repository in a SAS Metadata Server which is to be queried for SAS Foundation Services metadata.final voidsetPropertyUser(String userID) Sets the value of a user's ID who intends to connect to the SAS Metadata Server.final voidsetPropertyUserPassword(String userID) Sets the value of a user's ID who intends to connect to the SAS Metadata Server.Methods inherited from class com.sas.services.deployment.DeploymentDescriptorContext
createDocument, createFile, createFiles, getProperty, getPropertySoftwareComponent, reconfigure, setProperty, setPropertySoftwareComponentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OMRDeploymentContext
Constructs a context that describes SAS Foundation Services deployment metadata which is persisted in a SAS Metadata Repository.- Parameters:
strategy- Deployment strategy.- Throws:
ServiceException- if unable to create a context.
-
-
Method Details
-
getPropertyHost
public final String getPropertyHost()Gets the value for the SAS Metadata Server's host.- Returns:
- Configuration property value representing a
SAS Metadata Server's host.
A
nullwill be returned if the specified property is not defined.
-
setPropertyHost
public final void setPropertyHost(String metadataServerHost) Sets the value of the the SAS Metadata Server's host.- Parameters:
metadataServerHost- Configuration property value representing a SAS Metadata Server host.
-
getPropertyPort
public final String getPropertyPort()Gets the value for the SAS Metadata Server's port.- Returns:
- Configuration property value representing a
SAS Metadata Server's port.
A
nullwill be returned if the specified property is not defined.
-
setPropertyPort
public final void setPropertyPort(String metadataServerPort) Sets the value for the SAS Metadata Server's port.- Parameters:
metadataServerPort- Configuration property value representing a SAS Metadata Server port.
-
getPropertyRepository
public final String getPropertyRepository()Gets the value for the name of a repository in a SAS Metadata Server that is to be queried for SAS Foundation Services metadata.- Returns:
- Configuration property value representing a
name of a repository in a SAS Metadata Server.
A
nullwill be returned if the specified property is not defined.
-
setPropertyRepository
public final void setPropertyRepository(String metadataRepository) Sets the value of a name of a repository in a SAS Metadata Server which is to be queried for SAS Foundation Services metadata.- Parameters:
metadataRepository- Configuration property value representing a name of a repository in a SAS Metadata Server.
-
getPropertyUser
public final String getPropertyUser()Gets the value for the user's ID who intends to connect to a SAS Metadata Server.- Returns:
- Configuration property value representing a
user's ID who intends to connect to a SAS Metadata Server.
A
nullwill be returned if the specified property is not defined.
-
setPropertyUser
public final void setPropertyUser(String userID) Sets the value of a user's ID who intends to connect to the SAS Metadata Server.- Parameters:
userID- Configuration property value representing a user's ID who wants to connect to a SAS Metadata Server.
-
setPropertyUserPassword
public final void setPropertyUserPassword(String userID) Sets the value of a user's ID who intends to connect to the SAS Metadata Server.- Parameters:
userID- Configuration property value representing a user's ID who wants to connect to a SAS Metadata Server.
-