Package org.eclipse.emf.cdo.server
Class CDOServerUtil
java.lang.Object
org.eclipse.emf.cdo.server.CDOServerUtil
Various static methods that may help with CDO
repositories
and server-side views
.- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An abstractread-access handler
that grants or denies access to singlerevisions
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addRepository
(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository) static ISynchronizableRepository
static ISynchronizableRepository
createFailoverParticipant
(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer) static ISynchronizableRepository
createFailoverParticipant
(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer, boolean master) static ISynchronizableRepository
createFailoverParticipant
(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer, boolean master, boolean allowBackupCommits) static ISynchronizableRepository
createOfflineClone
(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer) static IRepository
static IRepositorySynchronizer
createRepositorySynchronizer
(CDOSessionConfigurationFactory remoteSessionConfigurationFactory) static ISessionManager
static void
static void
execute
(CDOSession context, Consumer<ISession> consumer) static IRepository
getRepository
(String uuid) static IRepository
getRepository
(CDOSession session) static IRepository
getRepository
(org.eclipse.net4j.util.container.IManagedContainer container, String name) static Element
getRepositoryConfig
(String repositoryName) static ISession
getServerSession
(CDOSession session) static ISession
getServerSession
(CDOView view) static ITransaction
getServerTransaction
(CDOTransaction transaction) static IView
getServerView
(CDOView view) static CDOView
openView
(ISession session, CDOBranchPoint branchPoint) static CDOView
openView
(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled) Deprecated.static CDOView
openView
(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled, CDORevisionProvider revisionProvider) Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(ISession, CDOBranchPoint, CDORevisionProvider)
.static CDOView
openView
(ISession session, CDOBranchPoint branchPoint, CDORevisionProvider revisionProvider) static CDOView
openView
(IStoreAccessor.CommitContext commitContext) static CDOView
openView
(IStoreAccessor.CommitContext commitContext, boolean legacyModeEnabled) Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(IStoreAccessor.CommitContext)
.static CDOView
static CDOView
Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(IView)
.static void
prepareContainer
(org.eclipse.net4j.util.container.IManagedContainer container)
-
Method Details
-
prepareContainer
public static void prepareContainer(org.eclipse.net4j.util.container.IManagedContainer container) - Since:
- 4.20
-
openView
public static CDOView openView(ISession session, CDOBranchPoint branchPoint, CDORevisionProvider revisionProvider) - Since:
- 4.2
-
openView
- Since:
- 4.2
-
openView
- Since:
- 4.2
-
openView
- Since:
- 4.2
-
openView
@Deprecated public static CDOView openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled, CDORevisionProvider revisionProvider) Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(ISession, CDOBranchPoint, CDORevisionProvider)
.- Since:
- 4.0
-
openView
@Deprecated public static CDOView openView(ISession session, CDOBranchPoint branchPoint, boolean legacyModeEnabled) Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(ISession, CDOBranchPoint)
.- Since:
- 4.0
-
openView
Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(IView)
.- Since:
- 4.0
-
openView
@Deprecated public static CDOView openView(IStoreAccessor.CommitContext commitContext, boolean legacyModeEnabled) Deprecated.As of 4.2 the legacy mode is always enabled, useopenView(IStoreAccessor.CommitContext)
.- Since:
- 4.0
-
getServerTransaction
- Since:
- 4.13
-
getServerView
- Since:
- 4.13
-
getServerSession
- Since:
- 4.11
-
getServerSession
- Since:
- 4.13
-
createSessionManager
- Since:
- 3.0
-
createRepository
-
createRepositorySynchronizer
public static IRepositorySynchronizer createRepositorySynchronizer(CDOSessionConfigurationFactory remoteSessionConfigurationFactory) - Since:
- 3.0
-
createOfflineClone
public static ISynchronizableRepository createOfflineClone(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer) - Since:
- 3.0
-
createFailoverParticipant
public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer, boolean master, boolean allowBackupCommits) - Since:
- 4.0
-
createFailoverParticipant
public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer, boolean master) - Since:
- 3.0
-
createFailoverParticipant
public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String, String> props, IRepositorySynchronizer synchronizer) - Since:
- 4.0
-
createFailoverParticipant
public static ISynchronizableRepository createFailoverParticipant(String name, IStore store, Map<String, String> props) - Since:
- 4.0
-
addRepository
public static void addRepository(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository) -
getRepository
public static IRepository getRepository(org.eclipse.net4j.util.container.IManagedContainer container, String name) -
getRepository
- Since:
- 4.13
-
getRepository
- Since:
- 4.13
-
getRepositoryConfig
public static Element getRepositoryConfig(String repositoryName) throws ParserConfigurationException, SAXException, IOException -
execute
- Since:
- 4.13
-
execute
- Since:
- 4.13
-
openView(ISession, CDOBranchPoint)
.