|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.ioc.OMRDeploymentContext
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.
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 |
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");
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 |
---|
public OMRDeploymentContext(AbstractDeploymentStrategy strategy) throws ServiceException
strategy
- Deployment strategy.
ServiceException
- if unable to create a context.Method Detail |
---|
public final java.lang.String getPropertyHost()
null
will be returned if the specified property is
not defined.public final void setPropertyHost(java.lang.String metadataServerHost)
metadataServerHost
- Configuration property value representing a
SAS Metadata Server host.public final java.lang.String getPropertyPort()
null
will be returned if the specified property is
not defined.public final void setPropertyPort(java.lang.String metadataServerPort)
metadataServerPort
- Configuration property value representing a
SAS Metadata Server port.public final java.lang.String getPropertyRepository()
null
will be returned if the specified property is
not defined.public final void setPropertyRepository(java.lang.String metadataRepository)
metadataRepository
- Configuration property value representing a
name of a repository in a SAS Metadata Server.public final java.lang.String getPropertyUser()
null
will be returned if the specified property is
not defined.public final void setPropertyUser(java.lang.String userID)
userID
- Configuration property value representing a user's ID
who wants to connect to a SAS Metadata Server.public final void setPropertyUserPassword(java.lang.String userID)
userID
- Configuration property value representing a user's ID
who wants to connect to a SAS Metadata Server.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |