RAS export API example

The com.ibm.ras.example.export package provides examples of how to automate RAS exports.

com.ibm.ras.example.export package

You can use the ExportCreateAsset pluglet to perform a RAS export using an asset created by a client. To perform a RAS export using the default asset created by the export data model, use the ExportDefaultAsset pluglet.

The com.ibm.ras.example.export.package contains the following pluglets that can be used to perform RAS exports:

Pluglet Description Results
ExportCreateAsset Provides an example of how to perform a RAS export using an asset created by the client. The pluglet in the example demonstrates the following operations:
  • Creating an asset for the default profile
  • Acquiring the export data model factory
  • Creating the export data model for an existing asset
  • Configuring the export data model
  • Initializing the asset to a default state
  • Modifying the asset
  • Acquiring the export service
  • Performing an export
When run successfully, a newly packaged asset named ExportCreateAsset.ras is created in the workspace in the \Export\Examples\ExportedAssets folder.
ExportDefaultAsset Provides an example of how to perform a RAS export using the default asset created by the export data model. The pluglet in the example demonstrates the following operations:
  • Acquiring the export data model factory
  • Creating the export data model with a default asset
  • Configuring the export data model
  • Modifying the asset
  • Acquiring the export service
  • Performing an export
When run successfully, a newly packaged asset named ExportDefaultAsset.ras is created in the workspace in the \Export\Examples\ExportedAssets folder.
ExportLoadManifest Provides an example of how to perform a RAS export using an existing manifest. The pluglet in the example demonstrates the following operations:
  • Loading an asset from a manifest using an asset reader
  • Acquiring the export data model factory
  • Creating the export data model for an existing asset
  • Configuring the export data model
  • Modifying the asset
  • Acquiring the export service
  • Performing an export
When run successfully, a newly packaged asset named ExportLoadManifest.ras is created in the workspace in the \Export\Examples\ExportedAssets folder.

Feedback