Package com.attivio.sdk.client
Interface ContentStoreClient
-
- All Known Implementing Classes:
LazyContentStoreClient
,MockContentStoreClient
@Deprecated public interface ContentStoreClient
Deprecated.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. TheContentPointer
streams 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
IngestClient
interface.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_NAMESPACE
Deprecated.static java.lang.String
GET_EXTERNAL_URI
Deprecated.Used for control channel in HA/FT solutions.static java.lang.String
OK_STORE_RESPONSE
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
contains(java.lang.String id)
Deprecated.True if the content store has a stream for this id.void
delete(java.lang.String id)
Deprecated.Delete a record by id from the content store.void
deleteAll()
Deprecated.Delete all content in the content store.long
getTotalRecords()
Deprecated.Get the total number of records in the content store.ContentPointer
retrieve(java.lang.String id)
Deprecated.Retrieve a ContentPointer in the ContentStore.void
setNamespace(java.lang.String namespace)
Deprecated.Sets the namespace all ids will be stored in.ContentPointer
store(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
id
is not in the store. - Throws:
AttivioException
-
delete
void delete(java.lang.String id) throws AttivioException
Deprecated.Delete a record by id from the content store.- Throws:
AttivioException
-
deleteAll
void deleteAll() throws AttivioException
Deprecated.Delete all content in the content store.- Throws:
AttivioException
-
getTotalRecords
long getTotalRecords() throws AttivioException
Deprecated.Get the total number of records in the content store.- Throws:
AttivioException
-
contains
boolean contains(java.lang.String id) throws AttivioException
Deprecated.True if the content store has a stream for this id.- Throws:
AttivioException
-
-