|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.sas.services.deployment.ServiceDeploymentExporter
Exports an application's foundation services deployment configuration from a SAS Metadata Repository to a UTF-8 encoded XML file.
Construct an instance of this utility by specifying the appropriate service deployment data choosing one of the following approaches:
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ServiceDeploymentExporter(File exportDestinationFile,
Set serviceDeployments,
String repositoryId,
boolean isBeautifyingXML)
Constructs an instance of a runnable service deployment exporter. |
|
ServiceDeploymentExporter(File exportDestinationFile,
String serviceDeploymentXml)
Constructs an instance of a runnable service deployment exporter. |
|
ServiceDeploymentExporter(File exportDestinationFile,
String serviceDeploymentXml,
PropertyChangeListener propertyChangeListener)
Deprecated. Property change listener is no supported. |
|
ServiceDeploymentExporter(SoftwareComponent serviceDeployment,
String repositoryId)
Constructs an instance of a runnable service deployment exporter. |
|
| Method Summary | |
void |
cancel()
Deprecated. This action may not be cancelled. |
void |
cleanup()
Deprecated. since not used |
static MdObjectStore |
getStoreWithTemporaryMetadata(String repositoryId,
SoftwareComponent softwareComponent)
Gets a metadata object store that has been populated with a copy of the foundation service deployment configuration metadata. |
void |
run()
Runs the service deployment export to write the configuration to the specified file. |
void |
setServiceDeployments(Set serviceDeployments)
Defines the set of metadata SoftwareComponent elements for
which their service deployment(s) are to be exported. |
void |
setServiceDeploymentXml(String serviceDeploymentXml)
Gets the XML representing the service deployment configuration. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServiceDeploymentExporter(SoftwareComponent serviceDeployment,
String repositoryId)
throws InitializationException
serviceDeployment - The service deployment that is to be exported.repositoryId - Metadata repository's ID.InitializationException - if unable to export the service deployment
using the specified parameters.
public ServiceDeploymentExporter(File exportDestinationFile,
Set serviceDeployments,
String repositoryId,
boolean isBeautifyingXML)
throws InitializationException
exportDestinationFile - File specifying the destination to which the service deployment
metadata is to be exported.serviceDeployments - Set containing SoftwareComponent elements representing
the service deployment(s) that are to be exported.repositoryId - Metadata repository's ID.isBeautifyingXML - true if the exported XML should
be formatted to increase its legibility or false if
it shouldn't.InitializationException - if unable to export the service deployment
using the specified parameters.
public ServiceDeploymentExporter(File exportDestinationFile,
String serviceDeploymentXml)
throws InitializationException
exportDestinationFile - File specifying the destination to which the service deployment
metadata is to be exported.serviceDeploymentXml - Metadata representation of a service deployment to be exported.InitializationException - if unable to export the service deployment
using the specified parameters.
public ServiceDeploymentExporter(File exportDestinationFile,
String serviceDeploymentXml,
PropertyChangeListener propertyChangeListener)
throws InitializationException
exportDestinationFile - File specifying the destination to which the service deployment
metadata is to be exported.serviceDeploymentXml - Metadata representation of a service deployment to be exported.propertyChangeListener - Optional event listener. If specified this listener will receive
a ServiceDeploymentChangeEvent to provide notification of the
completion status of this operation.InitializationException - if unable to export the service deployment
using the specified parameters.| Method Detail |
public final void run()
run in class Threadpublic final void cancel()
public final void cleanup()
public final void setServiceDeployments(Set serviceDeployments)
throws InitializationException
SoftwareComponent elements for
which their service deployment(s) are to be exported.serviceDeployments - Set containing SoftwareComponent elements representing
the service deployment(s) that are to be exported.InitializationException - if an invalid set of service deployments
is specified.
public final void setServiceDeploymentXml(String serviceDeploymentXml)
throws InitializationException
serviceDeploymentXml - Service deployment XML.InitializationException - if unable to obtain the service
deployment.
public static final MdObjectStore getStoreWithTemporaryMetadata(String repositoryId,
SoftwareComponent softwareComponent)
repositoryId - SAS Metadata Repository's ID.softwareComponent - Metadata SoftwareComponent
representing an application's services deployment configuration.null
is returned if unable to obtain a duplicate.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||