org.eclipse.emf.cdo.server
Interface IRepository

All Superinterfaces:
CDOCommonRepository, CDOTimeProvider, IAdaptable, IContainer<Object>, ILifecycle, INotifier, IQueryHandlerProvider
All Known Subinterfaces:
InternalFailoverParticipant, InternalRepository, InternalSynchronizableRepository, ISynchronizableRepository

public interface IRepository
extends CDOCommonRepository, IQueryHandlerProvider, IContainer<Object>, ILifecycle

A CDO repository.

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
static interface IRepository.Handler
          A marker interface to indicate valid arguments to addHandler(Handler) and removeHandler(Handler).
static interface IRepository.Props
          Contains symbolic constants that specifiy valid keys of repository properties.
static interface IRepository.ReadAccessHandler
          Provides a way to handle revisions that are to be sent to the client.
static interface IRepository.WriteAccessHandler
          Provides a way to handle commits that are received from a client.
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.CDOCommonRepository
CDOCommonRepository.IDGenerationLocation, CDOCommonRepository.State, CDOCommonRepository.StateChangedEvent, CDOCommonRepository.Type, CDOCommonRepository.TypeChangedEvent
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Field Summary
static String SYSTEM_USER_ID
           
 
Method Summary
 void addCommitInfoHandler(CDOCommitInfoHandler handler)
          Deprecated. As of 4.2 call CDOCommitInfoProvider.addCommitInfoHandler(CDOCommitInfoHandler)
 void addHandler(IRepository.Handler handler)
           
 CDOBranchManager getBranchManager()
           
 CDOCommitInfoHandler[] getCommitInfoHandlers()
          Deprecated. As of 4.2 call CDOCommitInfoProvider.getCommitInfoHandlers()
 CDOCommitInfoManager getCommitInfoManager()
           
 Set<IRepository.Handler> getHandlers()
           
 long getLastCommitTimeStamp()
          Returns the time stamp of the last commit operation.
 ILockingManager getLockingManager()
           
 IDurableLockingManager getLockManager()
          Deprecated. As of 4.1 use getLockingManager().
 CDOPackageRegistry getPackageRegistry()
          Returns the EMF package registry that is used by this repository.
 Map<String,String> getProperties()
           
 IQueryHandlerProvider getQueryHandlerProvider()
           
 CDORevisionManager getRevisionManager()
           
 ISessionManager getSessionManager()
           
 IStore getStore()
           
 void removeCommitInfoHandler(CDOCommitInfoHandler handler)
          Deprecated. As of 4.2 call CDOCommitInfoProvider.removeCommitInfoHandler(CDOCommitInfoHandler)
 void removeHandler(IRepository.Handler handler)
           
 void setInitialPackages(EPackage... initialPackages)
           
 void validateTimeStamp(long timeStamp)
          Validates the given timeStamp against the repository time.
 long waitForCommit(long timeout)
          Blocks the calling thread until the next commit operation has succeeded and returns the last (highest) commit time stamp.
 
Methods inherited from interface org.eclipse.emf.cdo.common.CDOCommonRepository
getCreationTime, getIDGenerationLocation, getName, getObjectIDTypes, getRootResourceID, getState, getStoreType, getType, getUUID, isEnsuringReferentialIntegrity, isSerializingCommits, isSupportingAudits, isSupportingBranches, isSupportingEcore, waitWhileInitial
 
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.emf.cdo.server.IQueryHandlerProvider
getQueryHandler
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Field Detail

SYSTEM_USER_ID

static final String SYSTEM_USER_ID
Since:
3.0
See Also:
Constant Field Values
Method Detail

getStore

IStore getStore()

getProperties

Map<String,String> getProperties()

getPackageRegistry

CDOPackageRegistry getPackageRegistry()
Returns the EMF package registry that is used by this repository.

Since:
2.0

getBranchManager

CDOBranchManager getBranchManager()
Since:
3.0

getRevisionManager

CDORevisionManager getRevisionManager()
Since:
3.0

getCommitInfoManager

CDOCommitInfoManager getCommitInfoManager()
Since:
4.2

getSessionManager

ISessionManager getSessionManager()

getLockManager

@Deprecated
IDurableLockingManager getLockManager()
Deprecated. As of 4.1 use getLockingManager().

Since:
4.0

getLockingManager

ILockingManager getLockingManager()
Since:
4.1

getQueryHandlerProvider

IQueryHandlerProvider getQueryHandlerProvider()
Since:
2.0

getLastCommitTimeStamp

long getLastCommitTimeStamp()
Returns the time stamp of the last commit operation.

Since:
3.0

waitForCommit

long waitForCommit(long timeout)
Blocks the calling thread until the next commit operation has succeeded and returns the last (highest) commit time stamp.

Since:
3.0

validateTimeStamp

void validateTimeStamp(long timeStamp)
                       throws IllegalArgumentException
Validates the given timeStamp against the repository time.

Throws:
IllegalArgumentException - if the given timeStamp is less than the repository creation time or greater than the current repository time.
Since:
2.0

getCommitInfoHandlers

@Deprecated
CDOCommitInfoHandler[] getCommitInfoHandlers()
Deprecated. As of 4.2 call CDOCommitInfoProvider.getCommitInfoHandlers()

Since:
4.1

addCommitInfoHandler

@Deprecated
void addCommitInfoHandler(CDOCommitInfoHandler handler)
Deprecated. As of 4.2 call CDOCommitInfoProvider.addCommitInfoHandler(CDOCommitInfoHandler)

Since:
4.0

removeCommitInfoHandler

@Deprecated
void removeCommitInfoHandler(CDOCommitInfoHandler handler)
Deprecated. As of 4.2 call CDOCommitInfoProvider.removeCommitInfoHandler(CDOCommitInfoHandler)

Since:
4.0

getHandlers

Set<IRepository.Handler> getHandlers()
Since:
4.1

addHandler

void addHandler(IRepository.Handler handler)
Since:
2.0

removeHandler

void removeHandler(IRepository.Handler handler)
Since:
2.0

setInitialPackages

void setInitialPackages(EPackage... initialPackages)
Since:
4.0


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.