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
Modifier and TypeInterfaceDescriptionstatic interface
static interface
A mix-in interface forelements
of arepository
that need to be notified when the repository is fully activated andsessions
can 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.TypeChangedEvent
Nested 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.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
InternalCDOBranchManager.BranchLoader.BranchInfo, InternalCDOBranchManager.BranchLoader.SubBranchInfo
Nested 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_BRANCH
Fields inherited from interface org.eclipse.emf.cdo.server.IRepository
SYSTEM_USER_ID
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOperationAuthorizer
(org.eclipse.net4j.util.security.operations.OperationAuthorizer<ISession> operationAuthorizer) void
commit
(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.void
endCommit
(long timeStamp) Notifies the repository of the completion of a commit.ensureChunk
(InternalCDORevision revision, EStructuralFeature feature, int chunkStart, int chunkEnd) void
ensureChunks
(InternalCDORevision revision) void
executeOutsideStartCommit
(Runnable runnable) void
failCommit
(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) long
Same as callinggetPackageRegistry(true)
.getPackageRegistry
(boolean considerCommitContext) getStore()
void
handleLobs
(long fromTime, long toTime, CDOLobHandler handler) void
handleRevisions
(EClass eClass, CDOBranch branch, boolean exactBranch, long timeStamp, boolean exactTime, CDORevisionHandler handler) void
initMainBranch
(InternalCDOBranchManager branchManager, long timeStamp) void
Deprecated.As of 4.3 useinitSystemPackages()
.void
initSystemPackages
(boolean firstStart) boolean
void
loadLob
(byte[] id, OutputStream out) lock
(InternalView view, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, List<CDORevisionKey> keys, boolean recursive, long timeout) void
notifyReadAccessHandlers
(InternalSession session, CDORevision[] revisions, List<CDORevision> additionalRevisions) void
notifyWriteAccessHandlers
(ITransaction transaction, IStoreAccessor.CommitContext commitContext, boolean beforeCommit, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) void
void
replicate
(CDOReplicationContext context) replicateRaw
(CDODataOutput out, int lastReplicatedBranchID, long lastReplicatedCommitTime) void
void
sendCommitNotification
(InternalSession sender, CDOCommitInfo commitInfo) Deprecated.void
sendCommitNotification
(InternalSession sender, CDOCommitInfo commitInfo, boolean clearResourcePathCache) Deprecated.void
setBranchManager
(InternalCDOBranchManager branchManager) void
setCommitConflictResolver
(ICommitConflictResolver commitConflictResolver) void
setContainer
(org.eclipse.net4j.util.container.IManagedContainer container) void
setLastCommitTimeStamp
(long commitTimeStamp) void
void
setOptimisticLockingTimeout
(long optimisticLockingTimeout) void
setProperties
(Map<String, String> properties) void
setProtector
(IRepositoryProtector protector) void
setQueryHandlerProvider
(IQueryHandlerProvider queryHandlerProvider) void
setRevisionManager
(InternalCDORevisionManager revisionManager) void
setRootResourceID
(CDOID rootResourceID) void
setSessionManager
(InternalSessionManager sessionManager) void
setSkipInitialization
(boolean skipInitialization) void
void
setStore
(InternalStore store) void
setTimeProvider
(CDOTimeProvider timeProvider) void
void
setUnitManager
(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, waitWhileInitial
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.CDORevisionUnchunker
ensureChunks
Methods inherited from interface org.eclipse.emf.cdo.common.util.CDOTimeProvider
getTimeStamp
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
getExecutorService
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Methods inherited from interface org.eclipse.net4j.util.container.IManagedContainerProvider
getContainer
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader
createBranch, loadBranch, loadBranches, loadSubBranches
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader2
deleteBranch, renameBranch
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader3
renameBranch
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader4
changeTag, loadTags
Methods inherited from interface org.eclipse.emf.cdo.spi.common.branch.InternalCDOBranchManager.BranchLoader5
deleteBranches
Methods inherited from interface org.eclipse.emf.cdo.spi.common.commit.InternalCDOCommitInfoManager.CommitInfoLoader
loadCommitData, loadCommitInfos
Methods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageLoader
loadPackages
Methods inherited from interface org.eclipse.emf.cdo.spi.common.model.InternalCDOPackageRegistry.PackageProcessor
processPackage
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader
loadRevisionByVersion, loadRevisions
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader2
loadObjectLifetime
Methods inherited from interface org.eclipse.emf.cdo.spi.common.revision.InternalCDORevisionManager.RevisionLoader3
loadRevisions
Methods inherited from interface org.eclipse.net4j.util.properties.IPropertiesContainer
properties
Methods inherited from interface org.eclipse.emf.cdo.server.IQueryHandlerProvider
getQueryHandler
Methods inherited from interface org.eclipse.emf.cdo.server.IRepository
addCommitInfoHandler, addHandler, getCommitConflictResolver, getCommitInfoHandlers, getHandlers, getLastCommitTimeStamp, getProperties, getProtector, getQueryHandlerProvider, removeCommitInfoHandler, removeHandler, setInitialPackages, validateTimeStamp, waitForCommit
Methods inherited from interface org.eclipse.net4j.util.security.operations.OperationAuthorizer
authorizeOperation
-
Method Details
-
setName
-
setType
-
setState
-
getStore
InternalStore getStore()- Specified by:
getStore
in interfaceIRepository
-
setStore
-
setProperties
-
getBranchManager
InternalCDOBranchManager getBranchManager()- Specified by:
getBranchManager
in 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:
getPackageRegistry
in interfaceIRepository
-
getPackageRegistry
-
getRevisionManager
InternalCDORevisionManager getRevisionManager()- Specified by:
getRevisionManager
in interfaceIRepository
-
setRevisionManager
-
getCommitInfoManager
InternalCDOCommitInfoManager getCommitInfoManager()- Specified by:
getCommitInfoManager
in interfaceIRepository
-
setCommitConflictResolver
- Since:
- 4.8
-
getSessionManager
InternalSessionManager getSessionManager()- Specified by:
getSessionManager
in interfaceIRepository
-
setSessionManager
-
getLockingManager
InternalLockManager getLockingManager()- Specified by:
getLockingManager
in interfaceIRepository
- Since:
- 4.1
-
setProtector
- Since:
- 4.20
-
getUnitManager
InternalUnitManager getUnitManager()- Specified by:
getUnitManager
in 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 returnedlong
array 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:
handleRevisions
in 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:
getLockManager
in 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()
.