***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.deployment.ioc
Class OMRDeploymentContext

com.sas.services.deployment.ioc.OMRDeploymentContext
All Implemented Interfaces:
DeploymentStrategyInterface

public class OMRDeploymentContext

Context that describes how to query SAS Foundation Services metadata that is persisted in a SAS Metadata Repository.

One must specify the following properties when defining this context.

OMR Deployment Context Properties
PropertyDescription
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.

Code Example: Configuring a Context to Query 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:
URLDeploymentContext

Constructor Summary
OMRDeploymentContext(AbstractDeploymentStrategy strategy)
          Constructs a context that describes SAS Foundation Services deployment metadata which is persisted in a SAS Metadata Repository.
 
Method Summary
 java.lang.String getPropertyHost()
          Gets the value for the SAS Metadata Server's host.
 java.lang.String getPropertyPort()
          Gets the value for the SAS Metadata Server's port.
 java.lang.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.
 java.lang.String getPropertyUser()
          Gets the value for the user's ID who intends to connect to a SAS Metadata Server.
 void setPropertyHost(java.lang.String metadataServerHost)
          Sets the value of the the SAS Metadata Server's host.
 void setPropertyPort(java.lang.String metadataServerPort)
          Sets the value for the SAS Metadata Server's port.
 void setPropertyRepository(java.lang.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.
 void setPropertyUser(java.lang.String userID)
          Sets the value of a user's ID who intends to connect to the SAS Metadata Server.
 void setPropertyUserPassword(java.lang.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, setPropertySoftwareComponent
 

Constructor Detail

OMRDeploymentContext

public OMRDeploymentContext(AbstractDeploymentStrategy strategy)
                     throws ServiceException
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 Detail

getPropertyHost

public final java.lang.String getPropertyHost()
Gets the value for the SAS Metadata Server's host.

Returns:
Configuration property value representing a SAS Metadata Server's host. A null will be returned if the specified property is not defined.

setPropertyHost

public final void setPropertyHost(java.lang.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 java.lang.String getPropertyPort()
Gets the value for the SAS Metadata Server's port.

Returns:
Configuration property value representing a SAS Metadata Server's port. A null will be returned if the specified property is not defined.

setPropertyPort

public final void setPropertyPort(java.lang.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 java.lang.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 null will be returned if the specified property is not defined.

setPropertyRepository

public final void setPropertyRepository(java.lang.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 java.lang.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 null will be returned if the specified property is not defined.

setPropertyUser

public final void setPropertyUser(java.lang.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(java.lang.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.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.