org.eclipse.emf.spi.cdo
Interface CDOSessionProtocol
- All Superinterfaces:
- CDOProtocol, InternalCDOBranchManager.BranchLoader, InternalCDOCommitInfoManager.CommitInfoLoader, InternalCDOPackageRegistry.PackageLoader, InternalCDORevisionManager.RevisionLoader
- public interface CDOSessionProtocol
- extends CDOProtocol, InternalCDOPackageRegistry.PackageLoader, InternalCDOBranchManager.BranchLoader, InternalCDORevisionManager.RevisionLoader, InternalCDOCommitInfoManager.CommitInfoLoader
- Since:
- 2.0
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
Method Summary |
boolean |
cancelQuery(int queryId)
|
String |
changeLockArea(CDOView view,
boolean create)
|
void |
changeSubscription(int viewId,
List<CDOID> ids,
boolean subscribeMode,
boolean clear)
|
void |
closeView(int viewID)
|
CDOSessionProtocol.CommitTransactionResult |
commitDelegation(CDOBranch branch,
String userID,
String comment,
CDOCommitData commitData,
Map<CDOID,EClass> detachedObjectTypes,
Collection<CDOLob<?>> lobs,
OMMonitor monitor)
Deprecated. Not called anymore. Use #commitDelegation(InternalCDOCommitContext, OMMonitor) instead. |
CDOSessionProtocol.CommitTransactionResult |
commitDelegation(InternalCDOTransaction.InternalCDOCommitContext context,
OMMonitor monitor)
|
CDOSessionProtocol.CommitTransactionResult |
commitTransaction(InternalCDOTransaction.InternalCDOCommitContext context,
OMMonitor monitor)
|
CDOSessionProtocol.CommitTransactionResult |
commitTransaction(int transactionID,
String comment,
boolean releaseLocks,
CDOIDProvider idProvider,
CDOCommitData commitData,
Collection<CDOLob<?>> lobs,
OMMonitor monitor)
Deprecated. Not called anymore. Use #commitTransaction(InternalCDOCommitContext, OMMonitor) instead. |
CDOSessionProtocol.CommitTransactionResult |
commitXATransactionCancel(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
|
CDOSessionProtocol.CommitTransactionResult |
commitXATransactionPhase1(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
|
CDOSessionProtocol.CommitTransactionResult |
commitXATransactionPhase2(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
|
CDOSessionProtocol.CommitTransactionResult |
commitXATransactionPhase3(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
|
CDOSessionProtocol.LockObjectsResult |
delegateLockObjects(String lockAreaID,
List<CDORevisionKey> revisionKeys,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
boolean recursive,
long timeout)
|
CDOSessionProtocol.UnlockObjectsResult |
delegateUnlockObjects(String lockAreaID,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType,
boolean recursive)
|
void |
disablePassiveUpdate()
|
void |
enableLockNotifications(int viewID,
boolean enable)
|
CDOLockState[] |
getLockStates(int viewID,
Collection<CDOID> ids)
|
List<CDORemoteSession> |
getRemoteSessions(InternalCDORemoteSessionManager manager,
boolean subscribe)
|
CDOSessionProtocol.RepositoryTimeResult |
getRepositoryTime()
|
void |
handleRevisions(EClass eClass,
CDOBranch branch,
boolean exactBranch,
long timeStamp,
boolean exactTime,
CDORevisionHandler handler)
|
boolean |
isObjectLocked(CDOView view,
CDOObject object,
IRWLockManager.LockType lockType,
boolean byOthers)
|
CDOChangeSetData[] |
loadChangeSets(CDOBranchPointRange... ranges)
|
Object |
loadChunk(InternalCDORevision revision,
EStructuralFeature feature,
int accessIndex,
int fetchIndex,
int fromIndex,
int toIndex)
|
void |
loadLob(CDOLobInfo info,
Object outputStreamOrWriter)
|
Set<CDOID> |
loadMergeData(CDORevisionAvailabilityInfo targetInfo,
CDORevisionAvailabilityInfo sourceInfo,
CDORevisionAvailabilityInfo targetBaseInfo,
CDORevisionAvailabilityInfo sourceBaseInfo)
|
CDOSessionProtocol.LockObjectsResult |
lockObjects(List<InternalCDORevision> viewedRevisions,
int viewID,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
long timeout)
Deprecated. Not called anymore. Use #lockObjects2(List, int, CDOBranch, LockType, boolean, long) instead. |
CDOSessionProtocol.LockObjectsResult |
lockObjects2(List<CDORevisionKey> revisionKeys,
int viewID,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
boolean recursive,
long timeout)
|
void |
openView(int viewID,
boolean readOnly,
CDOBranchPoint branchPoint)
|
CDOBranchPoint |
openView(int viewID,
boolean readOnly,
String durableLockingID)
|
void |
query(CDOView view,
AbstractQueryIterator<?> queryResult)
|
List<byte[]> |
queryLobs(Set<byte[]> ids)
|
CDOSessionProtocol.RefreshSessionResult |
refresh(long lastUpdateTime,
Map<CDOBranch,Map<CDOID,InternalCDORevision>> viewedRevisions,
int initialChunkSize,
boolean enablePassiveUpdates)
|
void |
replicateRepository(CDOReplicationContext context,
OMMonitor monitor)
|
void |
replicateRepositoryRaw(CDORawReplicationContext context,
OMMonitor monitor)
|
Set<Integer> |
sendRemoteMessage(CDORemoteSessionMessage message,
List<CDORemoteSession> recipients)
|
void |
setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode)
|
void |
setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode mode)
|
void |
switchTarget(int viewID,
CDOBranchPoint branchPoint,
List<InternalCDOObject> invalidObjects,
List<CDORevisionKey> allChangedObjects,
List<CDOIDAndVersion> allDetachedObjects,
OMMonitor monitor)
|
void |
unlockObjects(CDOView view,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType)
Deprecated. Not called anymore. Use #unlockObjects2(CDOView, Collection, LockType, boolean) instead. |
CDOSessionProtocol.UnlockObjectsResult |
unlockObjects2(CDOView view,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType,
boolean recursive)
|
boolean |
unsubscribeRemoteSessions()
|
getRepositoryTime
CDOSessionProtocol.RepositoryTimeResult getRepositoryTime()
disablePassiveUpdate
void disablePassiveUpdate()
- Since:
- 3.0
setPassiveUpdateMode
void setPassiveUpdateMode(CDOCommonSession.Options.PassiveUpdateMode mode)
- Since:
- 3.0
setLockNotificationMode
void setLockNotificationMode(CDOCommonSession.Options.LockNotificationMode mode)
- Since:
- 4.1
refresh
CDOSessionProtocol.RefreshSessionResult refresh(long lastUpdateTime,
Map<CDOBranch,Map<CDOID,InternalCDORevision>> viewedRevisions,
int initialChunkSize,
boolean enablePassiveUpdates)
- Since:
- 3.0
loadChunk
Object loadChunk(InternalCDORevision revision,
EStructuralFeature feature,
int accessIndex,
int fetchIndex,
int fromIndex,
int toIndex)
- Parameters:
accessIndex
- Index of the item access at the client (with modifications)fetchIndex
- Index of the item access at the server (without any modifications)fromIndex
- Load objects at the client from fromIndex (inclusive)toIndex
- Load objects at the client to toIndex (inclusive)
openView
void openView(int viewID,
boolean readOnly,
CDOBranchPoint branchPoint)
- Since:
- 4.0
openView
CDOBranchPoint openView(int viewID,
boolean readOnly,
String durableLockingID)
- Since:
- 4.0
switchTarget
void switchTarget(int viewID,
CDOBranchPoint branchPoint,
List<InternalCDOObject> invalidObjects,
List<CDORevisionKey> allChangedObjects,
List<CDOIDAndVersion> allDetachedObjects,
OMMonitor monitor)
- Since:
- 4.0
closeView
void closeView(int viewID)
changeSubscription
void changeSubscription(int viewId,
List<CDOID> ids,
boolean subscribeMode,
boolean clear)
query
void query(CDOView view,
AbstractQueryIterator<?> queryResult)
- Since:
- 4.0
cancelQuery
boolean cancelQuery(int queryId)
lockObjects
@Deprecated
CDOSessionProtocol.LockObjectsResult lockObjects(List<InternalCDORevision> viewedRevisions,
int viewID,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
long timeout)
throws InterruptedException
- Deprecated. Not called anymore. Use
#lockObjects2(List, int, CDOBranch, LockType, boolean, long)
instead.
- Throws:
InterruptedException
- Since:
- 4.0
lockObjects2
CDOSessionProtocol.LockObjectsResult lockObjects2(List<CDORevisionKey> revisionKeys,
int viewID,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
boolean recursive,
long timeout)
throws InterruptedException
- Throws:
InterruptedException
- Since:
- 4.1
delegateLockObjects
CDOSessionProtocol.LockObjectsResult delegateLockObjects(String lockAreaID,
List<CDORevisionKey> revisionKeys,
CDOBranch viewedBranch,
IRWLockManager.LockType lockType,
boolean recursive,
long timeout)
throws InterruptedException
- Throws:
InterruptedException
- Since:
- 4.1
unlockObjects
@Deprecated
void unlockObjects(CDOView view,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType)
- Deprecated. Not called anymore. Use
#unlockObjects2(CDOView, Collection, LockType, boolean)
instead.
- Since:
- 3.0
unlockObjects2
CDOSessionProtocol.UnlockObjectsResult unlockObjects2(CDOView view,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType,
boolean recursive)
- Since:
- 4.1
delegateUnlockObjects
CDOSessionProtocol.UnlockObjectsResult delegateUnlockObjects(String lockAreaID,
Collection<CDOID> objectIDs,
IRWLockManager.LockType lockType,
boolean recursive)
- Since:
- 4.1
isObjectLocked
boolean isObjectLocked(CDOView view,
CDOObject object,
IRWLockManager.LockType lockType,
boolean byOthers)
- Since:
- 3.0
changeLockArea
String changeLockArea(CDOView view,
boolean create)
- Since:
- 4.0
queryLobs
List<byte[]> queryLobs(Set<byte[]> ids)
- Since:
- 4.0
loadLob
void loadLob(CDOLobInfo info,
Object outputStreamOrWriter)
throws IOException
- Throws:
IOException
- Since:
- 4.0
commitTransaction
@Deprecated
CDOSessionProtocol.CommitTransactionResult commitTransaction(int transactionID,
String comment,
boolean releaseLocks,
CDOIDProvider idProvider,
CDOCommitData commitData,
Collection<CDOLob<?>> lobs,
OMMonitor monitor)
- Deprecated. Not called anymore. Use
#commitTransaction(InternalCDOCommitContext, OMMonitor)
instead.
- Since:
- 4.0
commitTransaction
CDOSessionProtocol.CommitTransactionResult commitTransaction(InternalCDOTransaction.InternalCDOCommitContext context,
OMMonitor monitor)
- Since:
- 4.1
commitDelegation
@Deprecated
CDOSessionProtocol.CommitTransactionResult commitDelegation(CDOBranch branch,
String userID,
String comment,
CDOCommitData commitData,
Map<CDOID,EClass> detachedObjectTypes,
Collection<CDOLob<?>> lobs,
OMMonitor monitor)
- Deprecated. Not called anymore. Use
#commitDelegation(InternalCDOCommitContext, OMMonitor)
instead.
- Since:
- 4.0
commitDelegation
CDOSessionProtocol.CommitTransactionResult commitDelegation(InternalCDOTransaction.InternalCDOCommitContext context,
OMMonitor monitor)
- Since:
- 4.1
commitXATransactionPhase1
CDOSessionProtocol.CommitTransactionResult commitXATransactionPhase1(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
- Since:
- 3.0
commitXATransactionPhase2
CDOSessionProtocol.CommitTransactionResult commitXATransactionPhase2(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
- Since:
- 3.0
commitXATransactionPhase3
CDOSessionProtocol.CommitTransactionResult commitXATransactionPhase3(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
- Since:
- 3.0
commitXATransactionCancel
CDOSessionProtocol.CommitTransactionResult commitXATransactionCancel(InternalCDOXATransaction.InternalCDOXACommitContext xaContext,
OMMonitor monitor)
- Since:
- 3.0
getRemoteSessions
List<CDORemoteSession> getRemoteSessions(InternalCDORemoteSessionManager manager,
boolean subscribe)
sendRemoteMessage
Set<Integer> sendRemoteMessage(CDORemoteSessionMessage message,
List<CDORemoteSession> recipients)
- Since:
- 3.0
unsubscribeRemoteSessions
boolean unsubscribeRemoteSessions()
- Since:
- 3.0
replicateRepository
void replicateRepository(CDOReplicationContext context,
OMMonitor monitor)
- Since:
- 4.0
replicateRepositoryRaw
void replicateRepositoryRaw(CDORawReplicationContext context,
OMMonitor monitor)
- Since:
- 4.0
loadChangeSets
CDOChangeSetData[] loadChangeSets(CDOBranchPointRange... ranges)
- Since:
- 3.0
loadMergeData
Set<CDOID> loadMergeData(CDORevisionAvailabilityInfo targetInfo,
CDORevisionAvailabilityInfo sourceInfo,
CDORevisionAvailabilityInfo targetBaseInfo,
CDORevisionAvailabilityInfo sourceBaseInfo)
- Since:
- 4.0
handleRevisions
void handleRevisions(EClass eClass,
CDOBranch branch,
boolean exactBranch,
long timeStamp,
boolean exactTime,
CDORevisionHandler handler)
- Since:
- 4.0
getLockStates
CDOLockState[] getLockStates(int viewID,
Collection<CDOID> ids)
- Since:
- 4.1
enableLockNotifications
void enableLockNotifications(int viewID,
boolean enable)
- Since:
- 4.1
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.