org.eclipse.emf.cdo.server
Interface IRepository

All Superinterfaces:
CDOCommonRepository, CDOTimeProvider, IContainer<Object>, INotifier, IQueryHandlerProvider
All Known Subinterfaces:
ISynchronizableRepository

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

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>
 
Field Summary
static String SYSTEM_USER_ID
           
 
Method Summary
 void addCommitInfoHandler(CDOCommitInfoHandler handler)
           
 void addHandler(IRepository.Handler handler)
           
 CDOBranchManager getBranchManager()
           
 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)
           
 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, isSupportingAudits, isSupportingBranches, isSupportingEcore
 
Methods inherited from interface org.eclipse.emf.cdo.common.util.CDOTimeProvider
getTimeStamp
 
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.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

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

addCommitInfoHandler

void addCommitInfoHandler(CDOCommitInfoHandler handler)
Since:
4.0

removeCommitInfoHandler

void removeCommitInfoHandler(CDOCommitInfoHandler handler)
Since:
4.0

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) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.