The com.ibm.ras.example.profile.artifact package provides examples of how to programmatically work with RAS artifacts.
You can use the ArtifactDescriptor pluglet to add new artifact descriptor types. To retrieve artifacts from an asset, use the ArtifactRetrieval pluglet. Use the TypeAnalysis pluglet to perform an analysis of the artifacts or the Visiting pluglet to call all the artifacts in an asset.
The com.ibm.ras.example.profile.artifact package contains the following pluglets that can be used to work with artifacts:
Pluglet | Description | Results |
---|---|---|
ArtifactDescriptor | Provides an example of how to add new artifact descriptor
types that are recognized by the type analyzer. The pluglet in the example
demonstrates the following operations:
|
When run successfully, this pluglet provides the
following output in the Console view:
|
ArtifactRetrieval | Provides an example of how to retrieve artifacts from
an asset using an artifact manager and filters. The pluglet in the example
demonstrates the following operations:
|
When run successfully, this pluglet provides the
following output in the Console view:
|
TypeAnalysis | Provides an example of how to perform an analysis of
the artifacts in an asset by using the type analyzer to determine the artifact
types. The pluglet in the example demonstrates the following operations:
|
When run successfully, this pluglet provides the
following output in the Console view:
|
Visiting | Provides an example of how to call all the artifacts
in an asset using the artifact visitor pattern. The pluglet in the example
demonstrates the following operations:
|
When run successfully, this pluglet provides a count of the number of artifacts called, in the Console view. |