|
| 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.URLMetadataSource
URL accessible metadata source for an application's foundation services deployment data.
This class is used to query the metadata XML from a URL accessible source such as a file. Use the Foundation Services Manager plug-in to the SAS Management Console to export an application's foundation services deployment metadata to a UTF-8 encoded XML file which may be used at runtime to deploy services.
Alternatively, one can use the OMRMetadataSource to obtain
foundation services deployment metadata from a SAS Metadata
Repository.
| Constructor Summary | |
URLMetadataSource(InputStream inputStream,
String softwareComponentName)
Constructs an instance with the specified URL metadata source and the SoftwareComponent name. |
|
URLMetadataSource(InputStream inputStream,
String softwareComponentName,
Set serviceDeploymentNames)
Constructs a metadata source that is capable of reading services deployment metadata from an input stream. |
|
URLMetadataSource(InputStream inputStream,
String softwareComponentName,
String serviceDeploymentName)
Constructs an instance with the specified URL metadata source, SoftwareComponent name, and deployment group name. |
|
URLMetadataSource(URL url)
Constructs an instance with the specified URL metadata source and the SoftwareComponent name. |
|
URLMetadataSource(URL url,
String softwareComponentName)
Constructs an instance with the specified URL metadata source and the SoftwareComponent name. |
|
URLMetadataSource(URL url,
String softwareComponentName,
Set serviceDeploymentNames)
Constructs an instance with the specified URL metadata source, SoftwareComponent name(s), and deployment group name(s). |
|
URLMetadataSource(URL url,
String softwareComponentName,
String serviceDeploymentName)
Constructs an instance with the specified URL metadata source, SoftwareComponent name, and deployment group name. |
|
| Method Summary | |
protected String |
getDeployFailureMessage()
Gets a message describing this metadata source's inability to deploy services. |
String |
getMetadata()
Gets foundation service deployment metadata from the metadata source. |
URL |
getURL()
Gets the URL. |
String |
toString()
Gets a string describing this source. |
| 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 |
| Constructor Detail |
public URLMetadataSource(URL url)
SoftwareComponent name.
The SoftwareComponent name is used to restrict
the ServiceComponent elements queried from the OMA
metadata to only those that exist under the specified software component.
Use this constructor if you want all service deployment groups to be
deployed. Use
URLMetadataSource(url, softwareComponentName, serviceDeploymentGroup) to
deploy one deployment group within the software component or
URLMetadataSource(url, softwareComponentName, serviceDeploymentGroups) to
deploy multiple deployment groups within the software component.url - URL to a source that contains the metadata.IllegalArgumentException - if an invalid URL is specified.
public URLMetadataSource(URL url,
String softwareComponentName)
throws InitializationException
SoftwareComponent name.
The SoftwareComponent name is used to restrict
the ServiceComponent elements queried from the OMA
metadata to only those that exist under the specified software component.
Use this constructor if you want all service deployment groups to be
deployed. Use
URLMetadataSource(url, softwareComponentName, serviceDeploymentGroup) to
deploy one deployment group within the software component or
URLMetadataSource(url, softwareComponentName, serviceDeploymentGroups) to
deploy multiple deployment groups within the software component.url - URL to a source that contains the metadata.softwareComponentName - SoftwareComponent name.InitializationException - if a null software component
is specified.IllegalArgumentException - if an invalid URL is specified.
public URLMetadataSource(InputStream inputStream,
String softwareComponentName)
throws InitializationException
SoftwareComponent name.
The SoftwareComponent name is used to restrict
the ServiceComponent elements queried from the OMA
metadata to only those that exist under the specified software component.
Use this constructor if you want all service deployment groups to be
deployed. Use
URLMetadataSource(inputStream, softwareComponentName, serviceDeploymentGroup) to
deploy one deployment group within the software component or
URLMetadataSource(inputStream, softwareComponentName, serviceDeploymentGroups) to
deploy multiple deployment groups within the software component.inputStream - Input stream from which service deployment metadata is to be read.
The input stream will be closed once it has been read.softwareComponentName - SoftwareComponent name.InitializationException - if a null software component
is specified.IllegalArgumentException - if an invalid input stream is specified.
public URLMetadataSource(URL url,
String softwareComponentName,
String serviceDeploymentName)
throws InitializationException
SoftwareComponent name, and deployment group name.
The SoftwareComponent name is used to restrict
the ServiceComponent elements queried from the OMA
metadata to only those that exist under the specified software component.
Use URLMetadataSource(url, softwareComponentName) to
deploy all deployment groups within the software component.url - URL to a source that contains the metadata.softwareComponentName - SoftwareComponent name.serviceDeploymentName - Deployment group name.InitializationException - if a null software component
or deployment group is specified.IllegalArgumentException - if an invalid URL is specified.
public URLMetadataSource(InputStream inputStream,
String softwareComponentName,
String serviceDeploymentName)
throws InitializationException
SoftwareComponent name, and deployment group name.
The SoftwareComponent name is used to restrict
the ServiceComponent elements queried from the OMA
metadata to only those that exist under the specified software component.
Use URLMetadataSource(url, softwareComponentName) to
deploy all deployment groups within the software component.inputStream - Input stream from which service deployment metadata is to be read.
The input stream will be closed once it has been read.softwareComponentName - SoftwareComponent name.serviceDeploymentName - Deployment group name.InitializationException - if a null software component
or deployment group is specified.IllegalArgumentException - if an invalid input stream is specified.
public URLMetadataSource(URL url,
String softwareComponentName,
Set serviceDeploymentNames)
throws InitializationException
SoftwareComponent name(s), and deployment group name(s).url - URL to a source that contains the metadata.softwareComponentName - SoftwareComponent name.serviceDeploymentNames - Deployment group names. A null or empty set will
deploy all services regardless of their deployment group.InitializationException - if a null software component
is specified.IllegalArgumentException - if an invalid URL is specified.
public URLMetadataSource(InputStream inputStream,
String softwareComponentName,
Set serviceDeploymentNames)
throws InitializationException
inputStream - Input stream from which service deployment metadata is to be read.
The input stream will be closed once it has been read.softwareComponentName - SoftwareComponent name.serviceDeploymentNames - Deployment group names. A null or empty set will
deploy all services regardless of their deployment group.InitializationException - if a null software component
is specified.IllegalArgumentException - if an invalid input stream is specified.| Method Detail |
public final URL getURL()
public final String toString()
toString in class AbstractMetadataSource
public final String getMetadata()
throws ServiceException
getMetadata in interface MetadataSourceInterfacegetMetadata in class AbstractMetadataSourceServiceException - if unable to obtain the foundation service
deployment metadata.MetadataSourceInterface.getMetadata()protected final String getDeployFailureMessage()
getDeployFailureMessage in class AbstractMetadataSource
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||