|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.services.deployment.AbstractMetadataSource
|
+--com.sas.services.deployment.OMRMetadataSource
SAS Metadata Repository metadata source from which a foundation services deployment can be queried.
| Field Summary | |
static short |
TEMPLATE_ALL_SERVICES
Specifies use of a template that retrieves all services. |
static short |
TEMPLATE_REMOTE_DISCOVERY_SERVICES
Specifies use of a template that retrieves only remote discovery services. |
| Constructor Summary | |
OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName)
Constructs an instance with the specified SAS Metadata Server host, port, identity and password, and name of the foundation service deployment that is to be deployed. |
|
OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName,
Set serviceDeploymentNames)
Constructs an instance with the specified SAS Metadata Server host, port, identity and password, and Set of String elements
representing the foundation service deployments that are to be deployed. |
|
OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName,
String serviceDeploymentName)
Constructs an instance with the specified SAS Metadata Server host, port, identity and password, and name of the foundation service deployment that is to be deployed. |
|
| Method Summary | |
void |
closeOMRConnection()
Deprecated. Use AbstractMetadataSource.destroy() instead. |
boolean |
equals(Object other)
Determines whether or not the other object equals this object. |
protected String |
getDeployFailureMessage()
Gets a message describing this metadata source's inability to deploy services. |
MdOMRConnection |
getMdConnection()
Gets the metadata SAS Metadata Server connnection. |
MdObjectStore |
getMdObjectStore()
Deprecated. Use getMetadataObjectStore() |
MdOMRConnection |
getMdOMRConnection()
Deprecated. Use getMdConnection() |
String |
getMetadata()
Gets metadata representing a foundation services deployment queried from a SAS Metadata Repository. |
MdOMRConnection |
getMetadataConnection()
Gets the connection to the metadata server. |
MdObjectStore |
getMetadataObjectStore()
Gets the metadata SAS Metadata Server connnection. |
String |
getMetadataToDeployServices()
Query a SAS Metadata Repository for metadata describing a foundation services deployment configuration. |
String |
getMetadataToLocateRemoteDiscoveryServices()
Query a SAS Metadata Repository for metadata describing deployment configuration data for remote discovery services. |
String |
getRepositoryId()
Gets SAS Metadata Server repository ID. |
int |
hashCode()
Gets a hash code for this service attribute. |
String |
toString()
Gets a string representation of this SAS Metadata Server metadata source which includes its host and port. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.services.deployment.MetadataSourceInterface |
destroy, getApplicationServiceDeployment, getMdObjectStore, getServiceDeploymentNames, isOKToDestroy, isServiceDeploymentDeployable, isServiceDeploymentDeployable, setApplicationServiceDeployment, setIsOKToClose |
| Field Detail |
public static final short TEMPLATE_ALL_SERVICES
public static final short TEMPLATE_REMOTE_DISCOVERY_SERVICES
| Constructor Detail |
public OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName)
throws InitializationException
Use
this constructor if you want the ServiceLoader utility to
obtain its own metadata connection to SAS Metadata Server.
Use
OMRMetadataSource(String, String, String, String, String, String, Set)
if more than one service deployment is to be deployed.
omrHost - SAS Metadata Server host.omrPort - SAS Metadata Server port.omrIdentity - SAS Metadata Server logon identity.omrIdentityPassword - SAS Metadata Server logon identity's password. The password should
be encoded using SAS001_ENCODING, but unencoded passwords are also supported.
If an encoded password is desired then the password should be encoded using
the following method.
com.sas.util.SasPasswordString.encode(SasPasswordString.SAS001_ENCODING, unencodedPassword).repositoryName - Name of the SAS Metadata Server repository that contains the service deployment.softwareComponentName - The name of the metadata SoftwareComponent that
serves as the root of the service deployment hierarchy.InitializationException - if unable to construct an instance.
public OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName,
String serviceDeploymentName)
throws InitializationException
Use
this constructor if you want the ServiceLoader utility to
obtain its own metadata connection to SAS Metadata Server.
Use
OMRMetadataSource(String, String, String, String, String, String, Set)
if more than one service deployment is to be deployed.
omrHost - SAS Metadata Server host.omrPort - SAS Metadata Server port.omrIdentity - SAS Metadata Server logon identity.omrIdentityPassword - SAS Metadata Server logon identity's password. The password should
be encoded using SAS001_ENCODING, but unencoded passwords are also supported.
If an encoded password is desired then the password should be encoded using
the following method.
com.sas.util.SasPasswordString.encode(SasPasswordString.SAS001_ENCODING, unencodedPassword).repositoryName - Name of the SAS Metadata Server repository that contains the service deployment.softwareComponentName - The name of the metadata SoftwareComponent that
serves as the root of the service deployment hierarchy.serviceDeploymentName - The name of a service deployment to be deployed. The service
deployment name corresponds to the Name attribute of
a metadata Tree that is a subtree of the
SoftwareComponent.InitializationException - if unable to construct an instance.
public OMRMetadataSource(String omrHost,
String omrPort,
String omrIdentity,
String omrIdentityPassword,
String repositoryName,
String softwareComponentName,
Set serviceDeploymentNames)
throws InitializationException
Set of String elements
representing the foundation service deployments that are to be deployed.
Use
this constructor if you want the ServiceLoader utility to
obtain its own metadata connection to SAS Metadata Server.
Use
OMRMetadataSource(String, String, String, String, String, String)
if deploying a single service deployment.
omrHost - SAS Metadata Server host.omrPort - SAS Metadata Server port.omrIdentity - SAS Metadata Server logon identity.omrIdentityPassword - SAS Metadata Server logon identity's password. The password should
be encoded using SAS001_ENCODING, but unencoded passwords are also supported.
If an encoded password is desired then the password should be encoded using
the following method.
com.sas.util.SasPasswordString.encode(SasPasswordString.SAS001_ENCODING, unencodedPassword).repositoryName - Name of the SAS Metadata Server repository that contains the service deployment.softwareComponentName - The name of the metadata SoftwareComponent that
serves as the root of the service deployment hierarchy.serviceDeploymentNames - Set of String names designating the
service deployments that are to be deployed. The service
deployment name corresponds to the Name attribute of
a metadata Tree that is a subtree of the
SoftwareComponent.InitializationException - if unable to construct an instance.| Method Detail |
public final String getRepositoryId()
null if it is
undefined.public final MdOMRConnection getMdOMRConnection()
getMdConnection()
null if
a connection is not defined.
public final MdOMRConnection getMdConnection()
throws ServiceException
ServiceException - if unable to obtain a connection to the metadata server.public final MdObjectStore getMdObjectStore()
getMetadataObjectStore()
getMdObjectStore in class AbstractMetadataSourcenull if
a connection is not defined.
public final MdObjectStore getMetadataObjectStore()
throws InitializationException
null if
a connection is not defined.InitializationException - if unable to connect to the metadata server.
public final MdOMRConnection getMetadataConnection()
throws InitializationException
If a connection is not currently open, then an attempt will be made to open a new connection.
InitializationException - if unable to obtain the connection.
public final String getMetadataToLocateRemoteDiscoveryServices()
throws ServiceException
ServiceException -
public final String getMetadataToDeployServices()
throws ServiceException
ServiceException -
public final String getMetadata()
throws ServiceException
getMetadata in interface MetadataSourceInterfacegetMetadata in class AbstractMetadataSourceServiceException - if unable to obtain metadata
describing a foundation services deployment from a SAS
Metadata Repository.MetadataSourceInterface.getMetadata()public final void closeOMRConnection()
AbstractMetadataSource.destroy() instead.
protected final String getDeployFailureMessage()
getDeployFailureMessage in class AbstractMetadataSourcepublic String toString()
toString in class AbstractMetadataSourcepublic final int hashCode()
hashCode in class AbstractMetadataSourcepublic boolean equals(Object other)
equals in class AbstractMetadataSourceother - Other object.true if the objects are equivalent.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||