|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.spi.server.Store

If the meaning of this type isn't clear, there really should be more of a description here...
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.spi.server.InternalStore |
|---|
InternalStore.NoChangeSets, InternalStore.NoCommitInfos, InternalStore.NoDurableLocking, InternalStore.NoExternalReferences, InternalStore.NoFeatureMaps, InternalStore.NoHandleRevisions, InternalStore.NoLargeObjects, InternalStore.NoQueryXRefs, InternalStore.NoRawAccess |
| Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.IStore |
|---|
IStore.CanHandleClientAssignedIDs, IStore.ChangeFormat, IStore.RevisionParallelism, IStore.RevisionTemporality |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle |
|---|
ILifecycle.DeferrableActivation |
| Field Summary | |
|---|---|
static long |
UNSPECIFIED_DATE
Deprecated. Use CDOBranchPoint.UNSPECIFIED_DATE |
| Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
USE_LABEL |
| Constructor Summary | |
|---|---|
Store(String type)
|
|
Store(String type,
Set<CDOID.ObjectType> objectIDTypes,
Set<IStore.ChangeFormat> supportedChangeFormats,
Set<IStore.RevisionTemporality> supportedRevisionTemporalities,
Set<IStore.RevisionParallelism> supportedRevisionParallelisms)
|
|
| Method Summary | ||
|---|---|---|
static IStoreAccessor.QueryResourcesContext.ExactMatch |
createExactMatchContext(CDOID folderID,
String name,
CDOBranchPoint branchPoint)
|
|
protected abstract IStoreAccessor |
createReader(ISession session)
Creates and returns a new IStoreAccessor instance. |
|
InternalCDORevision |
createRevision(EClass eClass,
CDOID id)
|
|
protected abstract IStoreAccessor |
createWriter(ITransaction transaction)
Creates and returns a new IStoreAccessor instance. |
|
ProgressDistributor |
getIndicatingCommitDistributor()
|
|
int |
getLastBranchID()
Returns the id of the last branch that has been created in this store. |
|
long |
getLastCommitTime()
Returns the time stamp of the last successful commit operation. |
|
int |
getLastLocalBranchID()
Returns the id of the last local branch that has been created in this store. |
|
long |
getLastNonLocalCommitTime()
Returns the time stamp of the last successful commit operation to a non-local branch. |
|
int |
getNextBranchID()
|
|
int |
getNextLocalBranchID()
|
|
Set<CDOID.ObjectType> |
getObjectIDTypes()
|
|
IStoreAccessor |
getReader(ISession session)
Returns a reader that can be used to read from this store in the context of the given session. |
|
protected abstract StoreAccessorPool |
getReaderPool(ISession session,
boolean forReleasing)
Returns a pool that may contain IStoreAccessor instances that are compatible with
the given session. |
|
InternalRepository |
getRepository()
|
|
IStore.RevisionParallelism |
getRevisionParallelism()
|
|
IStore.RevisionTemporality |
getRevisionTemporality()
|
|
Set<IStore.ChangeFormat> |
getSupportedChangeFormats()
|
|
Set<IStore.RevisionParallelism> |
getSupportedRevisionParallelisms()
|
|
Set<IStore.RevisionTemporality> |
getSupportedRevisionTemporalities()
|
|
String |
getType()
|
|
IStoreAccessor |
getWriter(ITransaction transaction)
Returns a writer that can be used to write to this store in the context of the given view. |
|
protected abstract StoreAccessorPool |
getWriterPool(IView view,
boolean forReleasing)
Returns a pool that may contain IStoreAccessor instances that are compatible with
the given session. |
|
static String |
idToString(CDOID id)
|
|
boolean |
isDropAllDataOnActivate()
|
|
protected void |
releaseAccessor(StoreAccessorBase accessor)
|
|
protected static
|
set(T... elements)
|
|
void |
setDropAllDataOnActivate(boolean dropAllDataOnActivate)
|
|
void |
setLastBranchID(int lastBranchID)
|
|
void |
setLastCommitTime(long lastCommitTime)
|
|
void |
setLastLocalBranchID(int lastLocalBranchID)
|
|
void |
setLastNonLocalCommitTime(long lastNonLocalCommitTime)
|
|
protected void |
setObjectIDTypes(Set<CDOID.ObjectType> objectIDTypes)
|
|
void |
setRepository(IRepository repository)
|
|
void |
setRevisionParallelism(IStore.RevisionParallelism revisionParallelism)
|
|
void |
setRevisionTemporality(IStore.RevisionTemporality revisionTemporality)
|
|
static CDOID |
stringToID(String string)
|
|
| Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
| Methods inherited from class org.eclipse.net4j.util.event.Notifier |
|---|
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.cdo.spi.server.InternalStore |
|---|
isLocal, setCreationTime |
| Methods inherited from interface org.eclipse.emf.cdo.server.IStore |
|---|
createObjectID, getCreationTime, getPersistentProperties, isFirstStart, removePersistentProperties, setPersistentProperties |
| 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 |
|---|
@Deprecated public static final long UNSPECIFIED_DATE
| Constructor Detail |
|---|
public Store(String type,
Set<CDOID.ObjectType> objectIDTypes,
Set<IStore.ChangeFormat> supportedChangeFormats,
Set<IStore.RevisionTemporality> supportedRevisionTemporalities,
Set<IStore.RevisionParallelism> supportedRevisionParallelisms)
public Store(String type)
| Method Detail |
|---|
public final String getType()
getType in interface IStorepublic Set<CDOID.ObjectType> getObjectIDTypes()
getObjectIDTypes in interface IStoreprotected void setObjectIDTypes(Set<CDOID.ObjectType> objectIDTypes)
public Set<IStore.ChangeFormat> getSupportedChangeFormats()
getSupportedChangeFormats in interface IStorepublic Set<IStore.RevisionTemporality> getSupportedRevisionTemporalities()
getSupportedRevisionTemporalities in interface IStorepublic final Set<IStore.RevisionParallelism> getSupportedRevisionParallelisms()
getSupportedRevisionParallelisms in interface IStorepublic IStore.RevisionTemporality getRevisionTemporality()
getRevisionTemporality in interface IStorepublic void setRevisionTemporality(IStore.RevisionTemporality revisionTemporality)
setRevisionTemporality in interface InternalStorepublic IStore.RevisionParallelism getRevisionParallelism()
getRevisionParallelism in interface IStorepublic void setRevisionParallelism(IStore.RevisionParallelism revisionParallelism)
setRevisionParallelism in interface InternalStorepublic InternalRepository getRepository()
getRepository in interface IStoregetRepository in interface InternalStorepublic void setRepository(IRepository repository)
setRepository in interface InternalStorepublic boolean isDropAllDataOnActivate()
isDropAllDataOnActivate in interface InternalStorepublic void setDropAllDataOnActivate(boolean dropAllDataOnActivate)
setDropAllDataOnActivate in interface InternalStorepublic int getLastBranchID()
IStore
getLastBranchID in interface IStorepublic void setLastBranchID(int lastBranchID)
setLastBranchID in interface InternalStorepublic int getNextBranchID()
getNextBranchID in interface InternalStorepublic int getLastLocalBranchID()
IStore
getLastLocalBranchID in interface IStorepublic void setLastLocalBranchID(int lastLocalBranchID)
setLastLocalBranchID in interface InternalStorepublic int getNextLocalBranchID()
getNextLocalBranchID in interface InternalStorepublic long getLastCommitTime()
IStore
getLastCommitTime in interface IStorepublic void setLastCommitTime(long lastCommitTime)
setLastCommitTime in interface InternalStorepublic long getLastNonLocalCommitTime()
IStorebranch.
getLastNonLocalCommitTime in interface IStorepublic void setLastNonLocalCommitTime(long lastNonLocalCommitTime)
setLastNonLocalCommitTime in interface InternalStorepublic IStoreAccessor getReader(ISession session)
IStore
getReader in interface IStoresession - The session that should be used as a context for read access or null. The store implementor
is free to interpret and use the session in a manner suitable for him or ignore it at all. It is meant
only as a hint. Implementor can use it as a key into a cache and/or register a
LifecycleEventAdapter with it to intercept
cleanup on session close. Note however that the session can be null, for example during
startup of the server while the repositories are initialized but before any user session has been opened.
null.public IStoreAccessor getWriter(ITransaction transaction)
IStore
getWriter in interface IStoretransaction - The view that must be used as a context for write access. The store implementor is free to interpret and
use the view in a manner suitable for him or ignore it at all. It is meant only as a hint. Implementor can
use it as a key into a cache and/or register a
LifecycleEventAdapter with it to intercept
cleanup on view close.
null.public ProgressDistributor getIndicatingCommitDistributor()
getIndicatingCommitDistributor in interface IStore
public InternalCDORevision createRevision(EClass eClass,
CDOID id)
protected void releaseAccessor(StoreAccessorBase accessor)
protected abstract StoreAccessorPool getReaderPool(ISession session,
boolean forReleasing)
pool that may contain IStoreAccessor instances that are compatible with
the given session. The implementor may return null to indicate that no pooling occurs. It's also left
to the implementors choice how to determine the appropriate pool instance to be used for the given session, for
example it could always return the same pool instance, regardless of the given session.
If the implementor of this method decides to create pools that are only compatible with certain sessions or views,
then it is his responsibility to listen to REMOVED events sent by either the
ISessionManager (indicating that a session is closed) or any of its sessions (indicating that a view is
closed). Note: Closing a session implies that all contained views are closed sliently without
firing respective events!
session - The context which the pool must be compatible with. Must not be null.forReleasing - Enables lazy pool creation. The implementor is not supposed to create a new pool if false is
passed. If true is passed it's up to the implementor whether to create a new pool or not.
protected abstract StoreAccessorPool getWriterPool(IView view,
boolean forReleasing)
pool that may contain IStoreAccessor instances that are compatible with
the given session. The implementor may return null to indicate that no pooling occurs. It's also left
to the implementors choice how to determine the appropriate pool instance to be used for the given session, for
example it could always return the same pool instance, regardless of the given session.
If the implementor of this method decides to create pools that are only compatible with certain sessions or views,
then it is his responsibility to listen to REMOVED events sent by either the
ISessionManager (indicating that a session is closed) or any of its sessions (indicating that a view is
closed). Note: Closing a session implies that all contained views are closed sliently without
firing respective events!
view - The context which the pool must be compatible with. Must not be null.forReleasing - Enables lazy pool creation. The implementor is not supposed to create a new pool if false is
passed. If true is passed it's up to the implementor whether to create a new pool or not.protected abstract IStoreAccessor createReader(ISession session)
IStoreAccessor instance. The caller of this method is responsible for
activating the new instance.
protected abstract IStoreAccessor createWriter(ITransaction transaction)
IStoreAccessor instance. The caller of this method is responsible for
activating the new instance.
protected static <T> Set<T> set(T... elements)
public static String idToString(CDOID id)
public static CDOID stringToID(String string)
public static IStoreAccessor.QueryResourcesContext.ExactMatch createExactMatchContext(CDOID folderID,
String name,
CDOBranchPoint branchPoint)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||