Package org.eclipse.emf.cdo.lm.server
Class AbstractLifecycleManager
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.emf.cdo.lm.server.AbstractLifecycleManager
- All Implemented Interfaces:
LMPackage.Literals
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.event.INotifier.INotifier2
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
- Direct Known Subclasses:
XMLLifecycleManager
public abstract class AbstractLifecycleManager
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements LMPackage.Literals
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
final class
static final class
final class
final class
static interface
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
Fields inherited from interface org.eclipse.emf.cdo.lm.LMPackage.Literals
BASE_POINT, BASELINE, BASELINE___GET_BASE_TIME_STAMP, BASELINE___GET_BRANCH_POINT, BASELINE___GET_NAME, BASELINE__FLOATING, BASELINE__STREAM, CHANGE, CHANGE__BASE, CHANGE__BRANCH, CHANGE__DELIVERIES, CHANGE__IMPACT, CHANGE__LABEL, DELIVERY, DELIVERY__CHANGE, DELIVERY__MERGE_SOURCE, DELIVERY__MERGE_TARGET, DEPENDENCY, DEPENDENCY__TARGET, DEPENDENCY__VERSION_RANGE, DROP, DROP___GET_BASED_STREAMS, DROP___IS_RELEASE, DROP__BRANCH_POINT, DROP__LABEL, DROP__TYPE, DROP_TYPE, DROP_TYPE__NAME, DROP_TYPE__PROCESS, DROP_TYPE__RELEASE, FIXED_BASELINE, FIXED_BASELINE___GET_BASED_CHANGES, FIXED_BASELINE__DEPENDENCIES, FIXED_BASELINE__VERSION, FLOATING_BASELINE, FLOATING_BASELINE___GET_BASE, FLOATING_BASELINE___GET_BRANCH, FLOATING_BASELINE___GET_DELIVERIES, FLOATING_BASELINE__CLOSED, IMPACT, MODULE, MODULE__NAME, MODULE__STREAMS, MODULE__SYSTEM, MODULE__TYPE, MODULE_ELEMENT, MODULE_ELEMENT___GET_MODULE, MODULE_TYPE, MODULE_TYPE__NAME, MODULE_TYPE__PROCESS, PROCESS, PROCESS__DROP_TYPES, PROCESS__INITIAL_MODULE_VERSION, PROCESS__MODULE_DEFINITION_PATH, PROCESS__MODULE_TYPES, PROCESS__SYSTEM, PROCESS_ELEMENT, PROCESS_ELEMENT___GET_PROCESS, STREAM, STREAM___GET_BASED_CHANGES, STREAM___GET_BRANCH_POINT__LONG, STREAM___GET_FIRST_RELEASE, STREAM___GET_LAST_RELEASE, STREAM___GET_RELEASES, STREAM___INSERT_CONTENT__BASELINE, STREAM__ALLOWED_CHANGES, STREAM__BASE, STREAM__CODE_NAME, STREAM__CONTENTS, STREAM__DEVELOPMENT_BRANCH, STREAM__MAINTENANCE_BRANCH, STREAM__MAINTENANCE_TIME_STAMP, STREAM__MAJOR_VERSION, STREAM__MINOR_VERSION, STREAM__MODE, STREAM__MODULE, STREAM__START_TIME_STAMP, STREAM_ELEMENT, STREAM_ELEMENT___GET_STREAM, STREAM_MODE, SYSTEM, SYSTEM___GET_MODULE__STRING, SYSTEM__MODULES, SYSTEM__NAME, SYSTEM__PROCESS, SYSTEM_ELEMENT, SYSTEM_ELEMENT___GET_SYSTEM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.protected void
void
protected abstract InternalRepository
createModuleRepository
(String moduleName) protected void
createNewModule
(String moduleName) Deprecated.As of 1.2 usecreateNewModule(String, String)
.protected void
createNewModule
(String moduleName, String moduleTypeName) protected void
createNewModuleInfos
(IStoreAccessor.CommitContext commitContext, List<AbstractLifecycleManager.ModuleInfo> newModules) protected void
createNewModules
(IStoreAccessor.CommitContext commitContext, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usecreateNewModuleInfos(CommitContext, List)
.protected CDONet4jSessionConfiguration
createSessionConfiguration
(String repositoryName) protected void
protected void
protected void
static CDOBranchRef
getBranch
(CDORevision floatingBaseline) Deprecated.As of 1.4 not used anymore.final org.eclipse.net4j.jvm.IJVMConnector
org.eclipse.net4j.util.container.IManagedContainer
org.eclipse.net4j.util.security.IPasswordCredentials
final Map<String,
InternalRepository> final CDOSession
getModuleSession
(String moduleName) final System
protected void
handleBaselineAddition
(IStoreAccessor.CommitContext commitContext, InternalCDORevision addedContent) protected void
handleBaselineDeletion
(IStoreAccessor.CommitContext commitContext, CDORevisionDelta revisionDelta, CDORemoveFeatureDelta removeFeatureDelta) protected void
handleCommit
(IStoreAccessor.CommitContext commitContext) protected void
handleModuleAddition
(InternalCDORevision addedModule, Consumer<AbstractLifecycleManager.ModuleInfo> newModulesInfoConsumer) protected void
handleModuleAddition
(InternalCDORevision addedModule, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usehandleModuleAddition(InternalCDORevision, Consumer)
.protected void
handleModuleDeletion
(IStoreAccessor.CommitContext commitContext, InternalCDORevisionDelta systemRevisionDelta, CDORemoveFeatureDelta removeModuleDelta) protected void
initProcess
(Process process) initSystemRepository
(CDOSession session) Deprecated.As of 1.2 useinitSystemRepository(CDOSession, BiConsumer)
.protected void
initSystemRepository
(CDOSession session, BiConsumer<String, String> moduleInfoComsumer) protected boolean
isValidModuleName
(String moduleName) static AbstractLifecycleManager
static AbstractLifecycleManager
of
(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository) protected CDONet4jSession
openModuleSession
(InternalRepository moduleRepository) void
void
setCredentials
(org.eclipse.net4j.util.security.IPasswordCredentials credentials) void
setModuleDefinitionPath
(String moduleDefinitionPath) void
setProcessInitializer
(Consumer<Process> processInitializer) void
setSystemName
(String systemName) void
setSystemRepository
(InternalRepository repository) toString()
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
AbstractLifecycleManager
public AbstractLifecycleManager()
-
-
Method Details
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer() -
getConnector
public final org.eclipse.net4j.jvm.IJVMConnector getConnector() -
getSystem
- Since:
- 1.4
-
getSystemRepository
-
setSystemRepository
-
getSystemName
-
setSystemName
-
getProcessInitializer
-
setProcessInitializer
-
getCredentials
public org.eclipse.net4j.util.security.IPasswordCredentials getCredentials()- Since:
- 1.3
-
setCredentials
public void setCredentials(org.eclipse.net4j.util.security.IPasswordCredentials credentials) - Since:
- 1.3
-
getModuleDefinitionPath
-
setModuleDefinitionPath
-
getModuleRepositories
-
getModuleSession
-
addSystemCommitHandler
- Since:
- 1.5
-
removeSystemCommitHandler
- Since:
- 1.5
-
toString
- Overrides:
toString
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
doActivate
- Overrides:
doActivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classorg.eclipse.net4j.util.lifecycle.Lifecycle
- Throws:
Exception
-
initSystemRepository
protected void initSystemRepository(CDOSession session, BiConsumer<String, String> moduleInfoComsumer) throws Exception- Throws:
Exception
- Since:
- 1.2
-
initProcess
-
getInitialModuleTypes
- Since:
- 1.2
-
getInitialDropTypes
- Since:
- 1.2
-
handleCommit
-
handleModuleAddition
protected void handleModuleAddition(InternalCDORevision addedModule, Consumer<AbstractLifecycleManager.ModuleInfo> newModulesInfoConsumer) - Since:
- 1.2
-
handleModuleDeletion
protected void handleModuleDeletion(IStoreAccessor.CommitContext commitContext, InternalCDORevisionDelta systemRevisionDelta, CDORemoveFeatureDelta removeModuleDelta) -
handleBaselineAddition
protected void handleBaselineAddition(IStoreAccessor.CommitContext commitContext, InternalCDORevision addedContent) -
handleBaselineDeletion
protected void handleBaselineDeletion(IStoreAccessor.CommitContext commitContext, CDORevisionDelta revisionDelta, CDORemoveFeatureDelta removeFeatureDelta) - Since:
- 1.1
-
createNewModuleInfos
protected void createNewModuleInfos(IStoreAccessor.CommitContext commitContext, List<AbstractLifecycleManager.ModuleInfo> newModules) - Since:
- 1.2
-
createNewModule
- Throws:
Exception
- Since:
- 1.2
-
isValidModuleName
-
addModule
- Throws:
Exception
- Since:
- 1.2
-
createModuleRepository
protected abstract InternalRepository createModuleRepository(String moduleName) throws CoreException - Throws:
CoreException
-
openModuleSession
-
createSessionConfiguration
-
of
public static AbstractLifecycleManager of(org.eclipse.net4j.util.container.IManagedContainer container, String systemName) - Since:
- 1.4
-
of
public static AbstractLifecycleManager of(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository) - Since:
- 1.4
-
initSystemRepository
Deprecated.As of 1.2 useinitSystemRepository(CDOSession, BiConsumer)
.- Throws:
Exception
-
handleModuleAddition
@Deprecated protected void handleModuleAddition(InternalCDORevision addedModule, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usehandleModuleAddition(InternalCDORevision, Consumer)
. -
createNewModules
@Deprecated protected void createNewModules(IStoreAccessor.CommitContext commitContext, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usecreateNewModuleInfos(CommitContext, List)
. -
createNewModule
Deprecated.As of 1.2 usecreateNewModule(String, String)
.- Throws:
Exception
-
addModule
Deprecated.As of 1.2 useaddModule(String, String)
.- Throws:
Exception
-
getBranch
Deprecated.As of 1.4 not used anymore. Doesn't work with DeliveryReviews.
-
addModule(String, String)
.