Followers

Wednesday, January 8, 2014

purge Application Metadata in SOA

purgeMetadata



Description

Purges the unlabeled document's version from the application's repository. All documents will be purged if they are expired, based on Time-To-Live (the olderThan argument). Document versions that are attached to a label and those which are tip (latest version) are not purged. This command is applicable only for repositories that support versioning, that is, database-based repositories.


Syntax

purgeMetadata(application, server, olderThan, [applicationVersion])
Argument Definition
application
The name of the application, used to identify the partition in the repository on which the purge operation will be run.
server
The target server on which this application is deployed.
olderThan
Document versions that are older than this value will be purged.
applicationVersion
Optional. The application version, if multiple versions of the same application are deployed.


Example

The following example purges the document version history for the application mdsapp deployed in the server srg, if the version is older than 10 seconds:
wls:/weblogic/serverConfig> purgeMetadata('mdsapp', 'srg', 10)
Executing operation: purgeMetadata.
Metadata purged:Total number of versions: 10.
Number of versions purged: 0.
wls:/weblogic/serverConfig>

No comments:

Post a Comment