protected class JCRLocalBoxDrive.EventsSync extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BoxAPI |
api
Box API.
|
protected Map<String,org.exoplatform.clouddrive.jcr.JCRLocalCloudFile> |
applied
Applied items in latest state mapped by item id.
|
protected int |
appliedCounter
Counter of applied events in this Sync.
|
protected org.exoplatform.clouddrive.box.BoxAPI.EventsIterator |
events
Events from Box to apply.
|
protected Set<String> |
history
Currently applied history of the drive storage.
|
protected com.box.sdk.BoxEvent |
lastPostponed |
protected Long |
localStreamPosition |
protected Set<String> |
newHistory
New history with currently applied event ids.
|
protected com.box.sdk.BoxEvent |
nextEvent |
protected LinkedList<com.box.sdk.BoxEvent> |
postponed
Queue of events postponed due to not existing parent or source.
|
protected int |
postponedNumber |
protected int |
prevPostponedNumber |
protected int |
readCounter
Counter of events read from Box service.
|
protected Set<String> |
removedIds
Ids of removed items.
|
protected Long |
savedStreamPosition |
protected Map<String,com.box.sdk.BoxItem.Info> |
undeleted
Undeleted events by item id.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalBoxDrive.EventsSync()
Create command for Box synchronization.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile |
applied(String itemId) |
protected void |
apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local) |
protected com.box.sdk.BoxFolder |
fetchChilds(String fileId,
javax.jcr.Node parent) |
protected boolean |
hasNextEvent() |
protected boolean |
hasPostponed() |
protected com.box.sdk.BoxEvent |
nextEvent() |
protected void |
postpone(com.box.sdk.BoxEvent event) |
protected void |
preSaveChunk() |
protected com.box.sdk.BoxEvent |
readEvent() |
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile |
remove(String itemId,
String itemPath) |
protected void |
syncFiles() |
protected void |
undelete(com.box.sdk.BoxItem.Info item) |
protected com.box.sdk.BoxItem.Info |
undeleted(String itemId) |
protected final BoxAPI api
protected final LinkedList<com.box.sdk.BoxEvent> postponed
protected final Map<String,org.exoplatform.clouddrive.jcr.JCRLocalCloudFile> applied
protected final Map<String,com.box.sdk.BoxItem.Info> undeleted
protected org.exoplatform.clouddrive.box.BoxAPI.EventsIterator events
protected com.box.sdk.BoxEvent nextEvent
protected com.box.sdk.BoxEvent lastPostponed
protected int prevPostponedNumber
protected int postponedNumber
protected int appliedCounter
protected int readCounter
protected Long savedStreamPosition
protected Long localStreamPosition
protected JCRLocalBoxDrive.EventsSync()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.DriveRemovedExceptionprotected void syncFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected void preSaveChunk()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected com.box.sdk.BoxFolder fetchChilds(String fileId, javax.jcr.Node parent) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected com.box.sdk.BoxEvent readEvent()
throws org.exoplatform.clouddrive.CloudDriveException
org.exoplatform.clouddrive.CloudDriveExceptionprotected boolean hasNextEvent()
throws org.exoplatform.clouddrive.CloudDriveException
org.exoplatform.clouddrive.CloudDriveExceptionprotected com.box.sdk.BoxEvent nextEvent()
throws NoSuchElementException,
org.exoplatform.clouddrive.CloudDriveException
NoSuchElementExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void postpone(com.box.sdk.BoxEvent event)
protected boolean hasPostponed()
protected com.box.sdk.BoxItem.Info undeleted(String itemId)
protected void undelete(com.box.sdk.BoxItem.Info item)
protected void apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile applied(String itemId)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.