Sun StorageTek 5800 System SDK Reference Manual

Example Application Summary

Table 2–1 summarizes the Java and C example applications provided with the 5800 system SDK. All code examples are command-line applications.

For detailed information about the Java example applications, see Java Example Applications.

For detailed information about the C example applications, see C Example Applications.

Table 2–1 5800 system Client SDK Example Applications

Application 

Java Version  

C Version  

StoreFile – Enables you to specify a file from the command line to store on a 5800 system server as data. You can also specify metadata to include with the file.

StoreFile

StoreFile

CheckIndexed – Checks if the metadata for an object is present in the query engine, and inserts it if not.

CheckIndexed

CheckIndexed

RetrieveData – Enables you to retrieve data from the 5800 system server by Object ID. The data object is sent to standard output or to a file specified on the command line.

RetrieveData

RetrieveData

RetrieveMetadata – Enables you to retrieve a metadata record from the 5800 system server associated with the supplied OID. The metadata record is printed to standard output.

RetrieveMetadata

RetrieveMetadata

AddMetadata – Enables you to specify name-value pairs from the command line to store on a 5800 system server as a metadata record.

AddMetadata

AddMetadata

DeleteRecord – Deletes a record from the 5800 system server for an OID supplied on the command line.

DeleteRecord

DeleteRecord

Query – Queries a 5800 system server for specified metadata. The query string is provided on the command line. Query can print out the results as a list of name-value pairs or as a list of OIDs. You can specify the maximum number of results returned.

Query

Query

RetrieveSchema – Retrieves the schema from a 5800 system server, printing it to standard output.

RetrieveSchema

RetrieveSchema

GetDate– Gets the date.

GetDate

N/A