Package com.attivio.sdk.client
Interface ExternalizableStore
-
- All Known Subinterfaces:
SearchProfileApi,TransportDefinitionStore,TriggerApi
- All Known Implementing Classes:
MockTransportDefinitionStore
public interface ExternalizableStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExternalizableStore.ImportOption
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longexportStore(java.io.OutputStream output, java.lang.Long ifModifiedSince)Export the model for the store to a jar file written tooutput.java.lang.StringgetStoreName()Get the name of this store.longgetStoreRevision()Get the current revision number for this store.voidimportStore(java.io.InputStream input, java.lang.Long ifUnmodifiedSince, ExternalizableStore.ImportOption... options)Import the model for the store from a jar file read frominput.
-
-
-
Method Detail
-
getStoreName
java.lang.String getStoreName()
Get the name of this store.This name will be the location that store configuration is synchronized to in the project's conf directory.
-
getStoreRevision
long getStoreRevision() throws AttivioExceptionGet the current revision number for this store.NOTE: revision numbers are not guaranteed to follow any sequence and may represent arbitrary checksums of internal data.
- Throws:
AttivioException
-
exportStore
long exportStore(java.io.OutputStream output, java.lang.Long ifModifiedSince) throws AttivioExceptionExport the model for the store to a jar file written tooutput.- Parameters:
output- TheOutputStreamto write the jar export to.ifModifiedSince- If non-null, will only write export tooutputif the store's current revision does not match this value.- Returns:
- The store revision for the export.
- Throws:
AttivioException
-
importStore
void importStore(java.io.InputStream input, java.lang.Long ifUnmodifiedSince, ExternalizableStore.ImportOption... options) throws AttivioExceptionImport the model for the store from a jar file read frominput.- Parameters:
input- The inputstream that contains the jar.ifUnmodifiedSince- If non-null, will only perform import if the store's current revision matches this value.options- A list ofExternalizableStore.ImportOptions to use when importing to the store.- Throws:
AttivioException
-
-