|
| 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.ServiceDeploymentImporter
Utility to import metadata representing foundation service deployment(s) from a utf-8 encoded file into a SAS Metadata Repository.
Construct an instance of this utility by specifying the metadata XML that is to be imported into a SAS Metadata Repository.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ServiceDeploymentImporter(String repositoryId,
ServiceDeploymentImportFile[] serviceDeploymentImportFiles,
OperationMonitorInterface operationMonitor)
Constructs an instance of a runnable service deployment exporter. |
|
ServiceDeploymentImporter(String repositoryId,
ServiceDeploymentImportFile serviceDeploymentImportFile,
OperationMonitorInterface operationMonitor)
Constructs an instance of a runnable service deployment importer. |
|
| Method Summary | |
void |
cancel()
Processes a request to cancel this task. |
void |
cleanup()
Performs housekeeping to clean up upon the completion of this task. |
static void |
importServiceDeployment(String metadata,
boolean isWellFormed)
Populates the object store with the specified metadata. |
static void |
importServiceDeploymentFromFile(ServiceDeploymentImportFile serviceDeploymentImportFile,
String metadataRepositoryID)
Imports metadata describing a foundation service deployment configuration from a file into the metadata object store. |
void |
run()
Runs the service deployment import to load an application's foundation service deployment metadata into OMR. |
static void |
verifyDeploymentIsImportable(String repositoryId,
String serviceDeploymentName)
Constructs an XMLSelect based upon the specified software component(s). |
static void |
verifyServiceDeploymentsAreImportable(String repositoryId,
Set serviceDeploymentsToImport)
Constructs an XMLSelect based upon the specified software component(s). |
| 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 ServiceDeploymentImporter(String repositoryId,
ServiceDeploymentImportFile serviceDeploymentImportFile,
OperationMonitorInterface operationMonitor)
throws InitializationException
Use the Foundation Services Manager, SAS Management Console plug-in, to export a foundation services deployment to a file. This file can then be imported into a SAS Metadata Repository, so long as the service deployment name specified in the file is unique within the repository.
repositoryId - Metadata repository's ID.serviceDeploymentImportFile - A file containing importable foundation service deployment metadata.operationMonitor - An operation monitor or null if the
operation won't be monitored.InitializationException - if unable to import the service deployment
using the specified parameters.
public ServiceDeploymentImporter(String repositoryId,
ServiceDeploymentImportFile[] serviceDeploymentImportFiles,
OperationMonitorInterface operationMonitor)
throws InitializationException
repositoryId - Metadata repository's ID.serviceDeploymentImportFiles - An array of 1..* of files containing importable foundation service
deployment metadata.operationMonitor - An operation monitor or null if the
operation won't be monitored.InitializationException - if unable to import the service deployment
using the specified parameters.| Method Detail |
public final void run()
run in class Thread
public static final void importServiceDeploymentFromFile(ServiceDeploymentImportFile serviceDeploymentImportFile,
String metadataRepositoryID)
throws ServiceDeploymentImportException
serviceDeploymentImportFile - Local file containing metadata that is to be imported into
the metadata object store.metadataRepositoryID - The ID of the SAS Metadata Repository to which the
service deployment metadata is to be imported.ServiceDeploymentImportException - if unable to import
foundation services deployment metadata from the file into
a SAS Metadata Repository specified by the active workspace.
public static final void importServiceDeployment(String metadata,
boolean isWellFormed)
throws ServiceDeploymentImportException
importServiceDeploymentFromFile(ServiceDeploymentImportFile, String) instead.metadata - Metadata that is to be populated into
the metadata object store.isWellFormed - false if the specified metadata XML
needs a root element in order to be well formed
or true if the metadata XML already
has a root element.ServiceDeploymentImportException - if unable to
import the application's foundation services deployment
into the SAS Metadata Repository.public final void cancel()
public final void cleanup()
public static final void verifyDeploymentIsImportable(String repositoryId,
String serviceDeploymentName)
throws ServiceDeploymentImportException
SoftwareComponent elements with a ClassIdentifier value
representing a foundation service deployment will be selected. If the set
is non-empty then
only those SoftwareComponent elements will be selected based
on a matching Name value.repositoryId - The metadata repository's ID.serviceDeploymentName - The name of the foundation service deployment that is to be imported.ServiceDeploymentImportException - if one or more foundation service
deployments that are candidates for import into OMR are already
defined in OMR.
public static final void verifyServiceDeploymentsAreImportable(String repositoryId,
Set serviceDeploymentsToImport)
throws ServiceDeploymentImportException
SoftwareComponent elements with a ClassIdentifier value
representing a foundation service deployment will be selected. If the set
is non-empty then
only those SoftwareComponent elements will be selected based
on a matching Name value.repositoryId - Repository ID in OMR.serviceDeploymentsToImport - Set of metadata String elements representing the
names of the foundation service deployments that are to be imported.ServiceDeploymentImportException - if one or more foundation service
deployments that are candidates for import into OMR are already
defined in OMR.
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||