Package org.eclipse.emf.cdo.server
Interface IStore
- All Known Subinterfaces:
IDBStore
,ILissomeStore
,IMEMStore
,IMEMStore
,IMongoDBStore
,InternalStore
- All Known Implementing Classes:
LongIDStore
,Store
public interface IStore
Represents the physical data storage back-end of a CDO
repository
, such as a database or a file
system folder.- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static enum
Enumerates the possible data formats astore
can accept for commit operations.static enum
Enumerates the possible branching options astore
can accept.static enum
Enumerates the possible history recording options astore
can accept. -
Method Summary
Modifier and TypeMethodDescriptioncreateObjectID
(String val) long
Returns the store creation time.org.eclipse.net4j.util.om.monitor.ProgressDistributor
int
Returns the id of the last branch that has been created in this store.long
Returns the time stamp of the last successful commit operation.int
Returns the id of the last local branch that has been created in this store.long
Returns the time stamp of the last successful commit operation to a non-localbranch
.getPersistentProperties
(Set<String> names) Returns a map filled with the property entries for the requested propertynames
if names is notnull
and notempty
, all existing property entries otherwise.Returns a reader that can be used to read from this store in the context of the given session.getType()
getWriter
(ITransaction transaction) Returns a writer that can be used to write to this store in the context of the given view.boolean
Returnstrue
if this store was activated for the first time,false
otherwise.void
removePersistentProperties
(Set<String> names) void
setPersistentProperties
(Map<String, String> properties)
-
Method Details
-
getRepository
IRepository getRepository()- Since:
- 2.0
-
getType
String getType()- Since:
- 2.0
-
getObjectIDTypes
Set<CDOID.ObjectType> getObjectIDTypes()- Since:
- 3.0
-
createObjectID
- Since:
- 4.0
-
getSupportedChangeFormats
Set<IStore.ChangeFormat> getSupportedChangeFormats()- Since:
- 2.0
-
getSupportedRevisionTemporalities
Set<IStore.RevisionTemporality> getSupportedRevisionTemporalities()- Since:
- 2.0
-
getSupportedRevisionParallelisms
Set<IStore.RevisionParallelism> getSupportedRevisionParallelisms()- Since:
- 2.0
-
getRevisionTemporality
IStore.RevisionTemporality getRevisionTemporality()- Since:
- 2.0
-
getRevisionParallelism
IStore.RevisionParallelism getRevisionParallelism()- Since:
- 2.0
-
isFirstStart
boolean isFirstStart()Returnstrue
if this store was activated for the first time,false
otherwise.- Since:
- 4.0
-
getCreationTime
long getCreationTime()Returns the store creation time.- Since:
- 2.0
-
getLastBranchID
int getLastBranchID()Returns the id of the last branch that has been created in this store.- Since:
- 3.0
-
getLastLocalBranchID
int getLastLocalBranchID()Returns the id of the last local branch that has been created in this store.- Since:
- 3.0
-
getLastCommitTime
long getLastCommitTime()Returns the time stamp of the last successful commit operation.- Since:
- 3.0
-
getLastNonLocalCommitTime
long getLastNonLocalCommitTime()Returns the time stamp of the last successful commit operation to a non-localbranch
.- Since:
- 3.0
-
getPersistentProperties
Returns a map filled with the property entries for the requested propertynames
if names is notnull
and notempty
, all existing property entries otherwise.- Since:
- 4.0
-
setPersistentProperties
- Since:
- 4.0
-
removePersistentProperties
- Since:
- 4.0
-
getReader
Returns a reader that can be used to read from this store in the context of the given session.- Parameters:
session
- The session that should be used as a context for read access ornull
. 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 aLifecycleEventAdapter
with it to intercept cleanup on session close. Note however that the session can benull
, for example during startup of the server while the repositories are initialized but before any user session has been opened.- Returns:
- a reader that can be used to read from this store in the context of the given session, never
null
. - Since:
- 2.0
-
getWriter
Returns a writer that can be used to write to this store in the context of the given view. The given view is always marked as a transaction.- Parameters:
transaction
- 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 aLifecycleEventAdapter
with it to intercept cleanup on view close.- Returns:
- a writer that can be used to write to this store in the context of the given view, never
null
. - Since:
- 2.0
-
getIndicatingCommitDistributor
org.eclipse.net4j.util.om.monitor.ProgressDistributor getIndicatingCommitDistributor()- Since:
- 2.0
-