Package org.eclipse.emf.cdo.spi.server
Interface InternalRepository
- All Superinterfaces:
CDOCommonRepository,CDORevisionUnchunker,CDOTimeProvider,IAdaptable,org.eclipse.net4j.util.container.IContainer<Object>,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.container.IManagedContainerProvider,org.eclipse.net4j.util.event.INotifier,InternalCDOBranchManager.BranchLoader,InternalCDOBranchManager.BranchLoader2,InternalCDOBranchManager.BranchLoader3,InternalCDOBranchManager.BranchLoader4,InternalCDOBranchManager.BranchLoader5,InternalCDOCommitInfoManager.CommitInfoLoader,InternalCDOPackageRegistry.PackageLoader,InternalCDOPackageRegistry.PackageProcessor,InternalCDORevisionManager.RevisionLoader,InternalCDORevisionManager.RevisionLoader2,InternalCDORevisionManager.RevisionLoader3,org.eclipse.net4j.util.properties.IPropertiesContainer,IQueryHandlerProvider,IRepository,org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession>
- All Known Subinterfaces:
InternalFailoverParticipant,InternalSynchronizableRepository
public interface InternalRepository
extends IRepository, InternalCDOPackageRegistry.PackageProcessor, InternalCDOPackageRegistry.PackageLoader, InternalCDOBranchManager.BranchLoader5, InternalCDORevisionManager.RevisionLoader3, InternalCDOCommitInfoManager.CommitInfoLoader, CDORevisionUnchunker, org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession>, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider, org.eclipse.net4j.util.container.IManagedContainerProvider
If the meaning of this type isn't clear, there really should be more of a description here...
- Since:
- 3.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceA mix-in interface forelementsof arepositorythat need to be notified when the repository is fully activated andsessionscan be opened.Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.CDOCommonRepository
CDOCommonRepository.CommitInfoStorage, CDOCommonRepository.IDGenerationLocation, CDOCommonRepository.ListOrdering, CDOCommonRepository.State, CDOCommonRepository.StateChangedEvent, CDOCommonRepository.Type, CDOCommonRepository.TypeChangedEventNested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends Object>Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
InternalCDOBranchManager.BranchLoader.BranchInfo, InternalCDOBranchManager.BranchLoader.SubBranchInfoNested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IRepository
IRepository.Handler, IRepository.Props, IRepository.ReadAccessHandler, IRepository.WriteAccessHandler -
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
NEW_BRANCH, NEW_LOCAL_BRANCHFields inherited from interface org.eclipse.emf.cdo.server.IRepository
SYSTEM_USER_ID -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperationAuthorizer(org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession> operationAuthorizer) voidcommit(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) createCommitContext(InternalTransaction transaction) long[]createCommitTimeStamp(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Returns a commit time stamp that is guaranteed to be unique in this repository.voidendCommit(long timeStamp) Notifies the repository of the completion of a commit.ensureChunk(InternalCDORevision revision, EStructuralFeature feature, int chunkStart, int chunkEnd) voidensureChunks(InternalCDORevision revision) voidexecuteOutsideStartCommit(Runnable runnable) voidfailCommit(long timeStamp) Notifies the repository of the failure of a commit.long[]forceCommitTimeStamp(long timestamp, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) LikecreateCommitTimeStamp(OMMonitor), but forces the repository to use the timestamp value passed in as the argument.getChangeSet(CDOBranchPoint startPoint, CDOBranchPoint endPoint) Deprecated.getMergeData(CDORevisionAvailabilityInfo targetInfo, CDORevisionAvailabilityInfo sourceInfo, CDORevisionAvailabilityInfo targetBaseInfo, CDORevisionAvailabilityInfo sourceBaseInfo, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) getMergeData2(CDORevisionAvailabilityInfo targetInfo, CDORevisionAvailabilityInfo sourceInfo, CDORevisionAvailabilityInfo targetBaseInfo, CDORevisionAvailabilityInfo sourceBaseInfo, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) longSame as callinggetPackageRegistry(true).getPackageRegistry(boolean considerCommitContext) getStore()voidhandleLobs(long fromTime, long toTime, CDOLobHandler handler) voidhandleRevisions(EClass eClass, CDOBranch branch, boolean exactBranch, long timeStamp, boolean exactTime, CDORevisionHandler handler) voidinitMainBranch(InternalCDOBranchManager branchManager, long timeStamp) voidDeprecated.As of 4.3 useinitSystemPackages().voidinitSystemPackages(boolean firstStart) booleanvoidloadLob(byte[] id, OutputStream out) lock(InternalView view, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, List<CDORevisionKey> keys, boolean recursive, long timeout) voidnotifyReadAccessHandlers(InternalSession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) voidnotifyWriteAccessHandlers(ITransaction transaction, IStoreAccessor.CommitContext commitContext, boolean beforeCommit, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) voidvoidreplicate(CDOReplicationContext context) replicateRaw(CDODataOutput out, int lastReplicatedBranchID, long lastReplicatedCommitTime) voidvoidsendCommitNotification(InternalSession sender, CDOCommitInfo commitInfo) Deprecated.voidsendCommitNotification(InternalSession sender, CDOCommitInfo commitInfo, boolean clearResourcePathCache) Deprecated.voidsetBranchManager(InternalCDOBranchManager branchManager) voidsetCommitConflictResolver(ICommitConflictResolver commitConflictResolver) voidsetContainer(org.eclipse.net4j.util.container.IManagedContainer container) voidsetLastCommitTimeStamp(long commitTimeStamp) voidvoidsetOptimisticLockingTimeout(long optimisticLockingTimeout) voidsetProperties(Map<String, String> properties) voidsetProtector(IRepositoryProtector protector) voidsetQueryHandlerProvider(IQueryHandlerProvider queryHandlerProvider) voidsetRevisionManager(InternalCDORevisionManager revisionManager) voidsetRootResourceID(CDOID rootResourceID) voidsetSessionManager(InternalSessionManager sessionManager) voidsetSkipInitialization(boolean skipInitialization) voidvoidsetStore(InternalStore store) voidsetTimeProvider(CDOTimeProvider timeProvider) voidvoidsetUnitManager(InternalUnitManager unitManager) unlock(InternalView view) unlock(InternalView view, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, List<CDOID> ids, boolean recursive) Methods inherited from interface org.eclipse.emf.cdo.common.CDOCommonRepository
getCommitInfoStorage, getCreationTime, getIDGenerationLocation, getName, getObjectIDTypes, getRootResourceID, getState, getStoreType, getType, getUUID, isAuthenticating, isAuthorizingOperations, isEnsuringReferentialIntegrity, isSerializingCommits, isSupportingAudits, isSupportingBranches, isSupportingEcore, isSupportingLoginPeeks, isSupportingUnits, waitWhileInitialMethods inherited from interface org.eclipse.emf.cdo.spi.common.revision.CDORevisionUnchunker
ensureChunksMethods inherited from interface org.eclipse.emf.cdo.common.util.CDOTimeProvider
getTimeStampMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods inherited from interface org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
getExecutorServiceMethods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActiveMethods inherited from interface org.eclipse.net4j.util.container.IManagedContainerProvider
getContainerMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListenerMethods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
createBranch, loadBranch, loadBranches, loadSubBranchesMethods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader2
deleteBranch, renameBranchMethods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader3
renameBranchMethods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader4
changeTag, loadTagsMethods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader5
deleteBranchesMethods inherited from interface org.eclipse.emf.cdo.spi.common.commit.InternalCDOCommitInfoManager.CommitInfoLoader
loadCommitData, loadCommitInfosMethods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageLoader
loadPackagesMethods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageProcessor
processPackageMethods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader
loadRevisionByVersion, loadRevisionsMethods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader2
loadObjectLifetimeMethods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader3
loadRevisionsMethods inherited from interface org.eclipse.net4j.util.properties.IPropertiesContainer
propertiesMethods inherited from interface org.eclipse.emf.cdo.server.IQueryHandlerProvider
getQueryHandlerMethods inherited from interface org.eclipse.emf.cdo.server.IRepository
addCommitInfoHandler, addHandler, getCommitConflictResolver, getCommitInfoHandlers, getHandlers, getLastCommitTimeStamp, getProperties, getProtector, getQueryHandlerProvider, removeCommitInfoHandler, removeHandler, setInitialPackages, validateTimeStamp, waitForCommitMethods inherited from interface org.eclipse.net4j.util.security.operations.OperationAuthorizer
authorizeOperation
-
Method Details
-
setName
-
setType
-
setState
-
getStore
InternalStore getStore()- Specified by:
getStorein interfaceIRepository
-
setStore
-
setProperties
-
getBranchManager
InternalCDOBranchManager getBranchManager()- Specified by:
getBranchManagerin interfaceIRepository
-
setBranchManager
-
getTimeProvider
CDOTimeProvider getTimeProvider()- Since:
- 4.6
-
setTimeProvider
- Since:
- 4.6
-
getPackageRegistryCommitLock
Semaphore getPackageRegistryCommitLock()- Since:
- 4.1
-
getPackageRegistry
InternalCDOPackageRegistry getPackageRegistry()Same as callinggetPackageRegistry(true).- Specified by:
getPackageRegistryin interfaceIRepository
-
getPackageRegistry
-
getRevisionManager
InternalCDORevisionManager getRevisionManager()- Specified by:
getRevisionManagerin interfaceIRepository
-
setRevisionManager
-
getCommitInfoManager
InternalCDOCommitInfoManager getCommitInfoManager()- Specified by:
getCommitInfoManagerin interfaceIRepository
-
setCommitConflictResolver
- Since:
- 4.8
-
getSessionManager
InternalSessionManager getSessionManager()- Specified by:
getSessionManagerin interfaceIRepository
-
setSessionManager
-
getLockingManager
InternalLockManager getLockingManager()- Specified by:
getLockingManagerin interfaceIRepository- Since:
- 4.1
-
setProtector
- Since:
- 4.20
-
getUnitManager
InternalUnitManager getUnitManager()- Specified by:
getUnitManagerin interfaceIRepository- Since:
- 4.5
-
setUnitManager
- Since:
- 4.5
-
getQueryManager
InternalQueryManager getQueryManager() -
setQueryHandlerProvider
-
addOperationAuthorizer
void addOperationAuthorizer(org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession> operationAuthorizer) - Since:
- 4.15
-
setContainer
void setContainer(org.eclipse.net4j.util.container.IManagedContainer container) - Since:
- 4.3
-
getCommitManager
InternalCommitManager getCommitManager() -
createCommitContext
-
createCommitTimeStamp
long[] createCommitTimeStamp(org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Returns a commit time stamp that is guaranteed to be unique in this repository. At index 1 of the returnedlongarray is the previous commit time.- Since:
- 4.0
-
forceCommitTimeStamp
long[] forceCommitTimeStamp(long timestamp, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) LikecreateCommitTimeStamp(OMMonitor), but forces the repository to use the timestamp value passed in as the argument. This should be called only to force the timestamp of the first commit of a new repository to be equal to its creation time.- Since:
- 4.0
-
endCommit
void endCommit(long timeStamp) Notifies the repository of the completion of a commit. The value passed in must be a value obtained earlier throughcreateCommitTimeStamp(OMMonitor)- Since:
- 4.0
-
failCommit
void failCommit(long timeStamp) Notifies the repository of the failure of a commit. The value passed in must be a value obtained earlier throughcreateCommitTimeStamp(OMMonitor)- Since:
- 4.0
-
executeOutsideStartCommit
- Since:
- 4.5
-
commit
void commit(InternalCommitContext commitContext, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) - Since:
- 4.2
-
sendCommitNotification
- Since:
- 4.3
-
setRootResourceID
-
setLastCommitTimeStamp
void setLastCommitTimeStamp(long commitTimeStamp) - Since:
- 4.0
-
ensureChunks
- Since:
- 4.1
-
ensureChunk
IStoreAccessor ensureChunk(InternalCDORevision revision, EStructuralFeature feature, int chunkStart, int chunkEnd) -
notifyReadAccessHandlers
void notifyReadAccessHandlers(InternalSession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) -
notifyWriteAccessHandlers
void notifyWriteAccessHandlers(ITransaction transaction, IStoreAccessor.CommitContext commitContext, boolean beforeCommit, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) -
replicate
-
replicateRaw
CDOReplicationInfo replicateRaw(CDODataOutput out, int lastReplicatedBranchID, long lastReplicatedCommitTime) throws IOException - Throws:
IOException
-
getChangeSet
-
getMergeData2
CDOSessionProtocol.MergeDataResult getMergeData2(CDORevisionAvailabilityInfo targetInfo, CDORevisionAvailabilityInfo sourceInfo, CDORevisionAvailabilityInfo targetBaseInfo, CDORevisionAvailabilityInfo sourceBaseInfo, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) - Since:
- 4.6
-
queryLobs
- Since:
- 4.0
-
handleLobs
- Throws:
IOException- Since:
- 4.0
-
loadLob
- Throws:
IOException- Since:
- 4.0
-
handleRevisions
void handleRevisions(EClass eClass, CDOBranch branch, boolean exactBranch, long timeStamp, boolean exactTime, CDORevisionHandler handler) - Specified by:
handleRevisionsin interfaceInternalCDORevisionManager.RevisionLoader- Since:
- 4.0
-
isSkipInitialization
boolean isSkipInitialization()- Since:
- 4.0
-
setSkipInitialization
void setSkipInitialization(boolean skipInitialization) - Since:
- 4.0
-
initSystemPackages
void initSystemPackages(boolean firstStart) - Since:
- 4.3
-
initMainBranch
- Since:
- 4.0
-
lock
CDOSessionProtocol.LockObjectsResult lock(InternalView view, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, List<CDORevisionKey> keys, boolean recursive, long timeout) - Since:
- 4.1
-
unlock
CDOSessionProtocol.UnlockObjectsResult unlock(InternalView view, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, List<CDOID> ids, boolean recursive) - Since:
- 4.1
-
unlock
- Since:
- 4.15
-
getOptimisticLockingTimeout
long getOptimisticLockingTimeout()- Since:
- 4.2
-
setOptimisticLockingTimeout
void setOptimisticLockingTimeout(long optimisticLockingTimeout) - Since:
- 4.3
-
getLockManager
Deprecated.As of 4.1 usegetLockingManager().- Specified by:
getLockManagerin interfaceIRepository
-
sendCommitNotification
Deprecated.- Since:
- 4.0
-
sendCommitNotification
@Deprecated void sendCommitNotification(InternalSession sender, CDOCommitInfo commitInfo, boolean clearResourcePathCache) Deprecated.- Since:
- 4.2
-
getMergeData
@Deprecated Set<CDOID> getMergeData(CDORevisionAvailabilityInfo targetInfo, CDORevisionAvailabilityInfo sourceInfo, CDORevisionAvailabilityInfo targetBaseInfo, CDORevisionAvailabilityInfo sourceBaseInfo, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) Deprecated.- Since:
- 4.0
-
initSystemPackages
Deprecated.As of 4.3 useinitSystemPackages().- Since:
- 4.0
-
getLockingManager().