|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.AdapterImpl org.eclipse.emf.emfstore.internal.server.core.subinterfaces.ChangePackageFragmentUploadAdapter
public class ChangePackageFragmentUploadAdapter
Adapter that is meant to be attached to a session and stores all change package fragments.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Constructor Summary | |
---|---|
ChangePackageFragmentUploadAdapter()
|
Method Summary | |
---|---|
void |
addFragment(String proxyId,
List<AbstractOperation> 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. |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
---|
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangePackageFragmentUploadAdapter()
Method Detail |
---|
public void addFragment(String proxyId, List<AbstractOperation> fragment) throws ESException
proxyId
- the ID identifying the list of fragments this fragment belongs tofragment
- the actual fragment to be added
ESException
- 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 completed
ESException
- 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 created
ChangePackage
as an Optional
public com.google.common.base.Optional<FileBasedChangePackage> getFileBasedChangePackage(String proxyId)
FileBasedChangePackage.move(String)
might be needed.
proxyId
- the ID that identifies the FileBasedChangePackage
Optional
public void clearCompleted(String proxyId)
proxyId
- the ID of the change package proxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |