Synopsis
public SystemRecord storeObject(java.nio.channels.ReadableByteChannel dataChannel)
public SystemRecord
storeObject(ReadableByteChannel dataChannel,NameValueRecord record)
throws ArchiveException,IOException
Description
Takesa ReadableByteChannel (and an optional NameValueRecord) and returns a
SystemRecordinstance containing the system metadata for the new object.
storeMetadata
Createsa new metadata record in the name-value object archive linked to the data object
identiedby the OID.
Synopsis
public SystemRecord storeMetadata(ObjectIdentifier linkOID,
NameValueRecord record);
throws ArchiveException, java.io.IOException
Description
Takesa NameValueRecord and OID and returns a SystemRecord instance containing the system
metadatafor the new metadata record.
checkIndexed
Checksif the metadata for an object is present in the query engine, and inserts the metadata if it
isnot present.
Synopsis
public int checkIndexed(ObjectIdentifier identifier)
throws ArchiveException, IOException
Description
checkIndexedis intended as way to resolve a store index exception under program control (see
“The5800 System Query Integrity Model” on page 21 for more information).
Oncea store index exception occurs (as indicated by a SystemRecord.isIndexed value of false
aftera store operation) then archive.checkIndexed(oid) can be called repeatedly until it
returnsany non-zero value. This will ensure that the metadata for the object has been inserted
intothe query engine; the object should then start to show up in matching queries.
JavaAPI
SunStorageTek5800 System Client API Reference Manual • June 200832