public class ChangePackageFragmentUploadAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
| Constructor and Description |
|---|
ChangePackageFragmentUploadAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFragment(String proxyId,
List<String> fragment)
Adds a single fragment.
|
void |
clearCompleted(String proxyId)
Removes the completed change package matching the given ID.
|
com.google.common.base.Optional<ChangePackage> |
convertFileBasedToInMemoryChangePackage(String proxyId)
Returns the aggregated change package.
|
com.google.common.base.Optional<FileBasedChangePackage> |
getFileBasedChangePackage(String proxyId)
Returns the temporary file based changepackage for the given proxy id, if present.
|
void |
markAsComplete(String proxyId)
Mark a list of change package as completed.
|
public void addFragment(String proxyId, List<String> fragment) throws ESException
proxyId - the ID identifying the list of fragments this fragment belongs tofragment - the actual fragment to be addedESException - in case the fragment could not be addedpublic void markAsComplete(String proxyId) throws ESException
proxyId - the ID of the set of change package fragments that is supposed to be completedESException - in casepublic com.google.common.base.Optional<ChangePackage> convertFileBasedToInMemoryChangePackage(String proxyId)
markAsComplete(String).proxyId - the ID that identifies a list of change package fragments from which the change package
will be createdChangePackage as an Optionalpublic com.google.common.base.Optional<FileBasedChangePackage> getFileBasedChangePackage(String proxyId)
FileBasedChangePackage.move(String) might be needed.proxyId - the ID that identifies the FileBasedChangePackageOptionalpublic void clearCompleted(String proxyId)
proxyId - the ID of the change package proxyCopyright © 2017. All rights reserved.