*** This interface provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Interface MetadataSourceInterface
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractMetadataSource,OMRMetadataSource,URLMetadataSource
@SASScope("ALL")
@BinaryCompatibilityOnly
public interface MetadataSourceInterface
extends Serializable
Interface specifying methods used to deploy foundation services from a metadata
source.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys the metadata source.StringGets the name of the application service deployment.com.sas.metadata.remote.MdObjectStoreGets the metadata object store.StringGets XML formatted metadata.PropertiesGets the properties which define this metadata source's configuration.Set<String> Gets the set of service deployment names that are to be deployed.booleanisServiceDeploymentDeployable(String applicationServiceDeployment) Determines whether the specified service deployment is can be deployed.booleanisServiceDeploymentDeployable(String applicationServiceDeployment, com.sas.metadata.remote.Tree serviceDeploymentGroup) Determines whether or not the specified application service deployment's service deployment group can be deployed.voidsetApplicationServiceDeployment(String softwareComponentName) Sets the name of the application service deployment.voidsetProperties(Properties properties) Sets the properties which define this metadata source's configuration.
-
Method Details
-
getMetadata
Gets XML formatted metadata.- Returns:
- XML formatted metadata obtained from the metadata source.
- Throws:
ServiceException- if unable to acquire metadata from the source.
-
isServiceDeploymentDeployable
boolean isServiceDeploymentDeployable(String applicationServiceDeployment) Determines whether the specified service deployment is can be deployed.- Parameters:
applicationServiceDeployment- An application's foundation services deployment which is represented using a metadataSoftwareComponent.- Returns:
trueif it is OK to deploy this appliation's service deployment orfalseif it isn't.
-
isServiceDeploymentDeployable
boolean isServiceDeploymentDeployable(String applicationServiceDeployment, com.sas.metadata.remote.Tree serviceDeploymentGroup) Determines whether or not the specified application service deployment's service deployment group can be deployed.- Parameters:
applicationServiceDeployment- An application's foundation services deployment which is represented using a metadataSoftwareComponent.serviceDeploymentGroup- Service deployment group defined under the application's service deployment.- Returns:
trueif it is OK to deploy this service deployment orfalseif it isn't.
-
getApplicationServiceDeployment
String getApplicationServiceDeployment()Gets the name of the application service deployment.- Returns:
- Application's service deployment name.
-
setApplicationServiceDeployment
void setApplicationServiceDeployment(String softwareComponentName) Sets the name of the application service deployment.- Parameters:
softwareComponentName- An application's foundation services deployment which is represented using a metadataSoftwareComponent.
-
getServiceDeploymentNames
Set<String> getServiceDeploymentNames()Gets the set of service deployment names that are to be deployed. A service deployment name corresponds to the metadataSoftwareComponentelement'sNameattribute.If a set of service deployment names is not currently defined then a set will be lazily instantiated and returned with no elements.
- Returns:
- Set of
Stringnames of the service deployments that are to be deployed. Note that this set may not contain any elements, but it is guaranteed to be non-null.
-
destroy
void destroy()Destroys the metadata source. This method should be called when this metadata source is no longer needed to release any resources it may be holding. -
getMdObjectStore
com.sas.metadata.remote.MdObjectStore getMdObjectStore()Gets the metadata object store.- Returns:
- Metadata object store or
nullif an object store is not available.
-
getProperties
Properties getProperties()Gets the properties which define this metadata source's configuration.- Returns:
- Properties which define this metadata source's configuration.
-
setProperties
void setProperties(Properties properties) Sets the properties which define this metadata source's configuration.- Parameters:
properties- Properties which define this metadata source's configuration.
-