Package com.attivio.sdk.client
Interface ContentStoreClient
-
- All Known Implementing Classes:
LazyContentStoreClient,MockContentStoreClient
@Deprecated public interface ContentStoreClientDeprecated.Client for accessing a storage service. The client can be used to send / receiver large data structures such as files or byte arrays that can be accessed via streams. TheContentPointerstreams stored via the client can then be accessed by id from other code without having to load the entire stream into memory.Generally speaking the ContentStoreClient is used via the helper methods on the
IngestClientinterface.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_NAMESPACEDeprecated.static java.lang.StringGET_EXTERNAL_URIDeprecated.Used for control channel in HA/FT solutions.static java.lang.StringOK_STORE_RESPONSEDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontains(java.lang.String id)Deprecated.True if the content store has a stream for this id.voiddelete(java.lang.String id)Deprecated.Delete a record by id from the content store.voiddeleteAll()Deprecated.Delete all content in the content store.longgetTotalRecords()Deprecated.Get the total number of records in the content store.ContentPointerretrieve(java.lang.String id)Deprecated.Retrieve a ContentPointer in the ContentStore.voidsetNamespace(java.lang.String namespace)Deprecated.Sets the namespace all ids will be stored in.ContentPointerstore(java.lang.String id, InputStreamBuilder input)Deprecated.Store a ContentPointer in the ContentStore.
-
-
-
Field Detail
-
GET_EXTERNAL_URI
static final java.lang.String GET_EXTERNAL_URI
Deprecated.Used for control channel in HA/FT solutions.- See Also:
- Constant Field Values
-
OK_STORE_RESPONSE
static final java.lang.String OK_STORE_RESPONSE
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_NAMESPACE
static final java.lang.String DEFAULT_NAMESPACE
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setNamespace
void setNamespace(java.lang.String namespace)
Deprecated.Sets the namespace all ids will be stored in. Defaults to "content".- Parameters:
namespace-
-
store
ContentPointer store(java.lang.String id, InputStreamBuilder input) throws AttivioException
Deprecated.Store a ContentPointer in the ContentStore.- Throws:
AttivioException
-
retrieve
ContentPointer retrieve(java.lang.String id) throws AttivioException
Deprecated.Retrieve a ContentPointer in the ContentStore.- Parameters:
id-- Returns:
- the ContentPointer or null if
idis not in the store. - Throws:
AttivioException
-
delete
void delete(java.lang.String id) throws AttivioExceptionDeprecated.Delete a record by id from the content store.- Throws:
AttivioException
-
deleteAll
void deleteAll() throws AttivioExceptionDeprecated.Delete all content in the content store.- Throws:
AttivioException
-
getTotalRecords
long getTotalRecords() throws AttivioExceptionDeprecated.Get the total number of records in the content store.- Throws:
AttivioException
-
contains
boolean contains(java.lang.String id) throws AttivioExceptionDeprecated.True if the content store has a stream for this id.- Throws:
AttivioException
-
-