Package org.duracloud.sync.endpoint
Class DuraStoreChunkSyncEndpoint
- java.lang.Object
-
- org.duracloud.sync.endpoint.DuraStoreSyncEndpoint
-
- org.duracloud.sync.endpoint.DuraStoreChunkSyncEndpoint
-
- All Implemented Interfaces:
SyncEndpoint
public class DuraStoreChunkSyncEndpoint extends DuraStoreSyncEndpoint
-
-
Constructor Summary
Constructors Constructor Description DuraStoreChunkSyncEndpoint(ContentStore contentStore, String username, String spaceId, boolean syncDeletes, boolean jumpStart, long maxFileSize)DuraStoreChunkSyncEndpoint(ContentStore contentStore, String username, String spaceId, boolean syncDeletes, long maxFileSize, boolean syncUpdates, boolean renameUpdates, boolean jumpStart, String updateSuffix, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddUpdateContent(String contentId, MonitoredFile syncFile)voiddeleteContent(String spaceId, String contentId)Removes content from the endpoint.protected Map<String,String>getContentProperties(String spaceId, String contentId)Iterator<String>getFilesList()Retrieves a listing of all files available at the endpoint.protected StringgetManifestId(String contentId)-
Methods inherited from class org.duracloud.sync.endpoint.DuraStoreSyncEndpoint
addEndPointListener, createProps, doAddContent, getContentStore, getSpaceId, getUsername, removeEndPointListener, syncFile, syncFileAndReturnDetailedResult
-
-
-
-
Constructor Detail
-
DuraStoreChunkSyncEndpoint
public DuraStoreChunkSyncEndpoint(ContentStore contentStore, String username, String spaceId, boolean syncDeletes, boolean jumpStart, long maxFileSize)
-
DuraStoreChunkSyncEndpoint
public DuraStoreChunkSyncEndpoint(ContentStore contentStore, String username, String spaceId, boolean syncDeletes, long maxFileSize, boolean syncUpdates, boolean renameUpdates, boolean jumpStart, String updateSuffix, String prefix)
-
-
Method Detail
-
getContentProperties
protected Map<String,String> getContentProperties(String spaceId, String contentId)
- Overrides:
getContentPropertiesin classDuraStoreSyncEndpoint
-
deleteContent
public void deleteContent(String spaceId, String contentId) throws ContentStoreException
Description copied from interface:SyncEndpointRemoves content from the endpoint.- Specified by:
deleteContentin interfaceSyncEndpoint- Overrides:
deleteContentin classDuraStoreSyncEndpoint- Throws:
ContentStoreException
-
addUpdateContent
protected void addUpdateContent(String contentId, MonitoredFile syncFile)
- Overrides:
addUpdateContentin classDuraStoreSyncEndpoint
-
getFilesList
public Iterator<String> getFilesList()
Description copied from interface:SyncEndpointRetrieves a listing of all files available at the endpoint. This list is to be used for comparison with the local system.- Specified by:
getFilesListin interfaceSyncEndpoint- Overrides:
getFilesListin classDuraStoreSyncEndpoint- Returns:
- Iterator allowing access to complete file listing
-
-