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
Nested ClassesModifier and TypeClassDescriptionstatic classfinal classstatic final classfinal classfinal classstatic interfaceNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationNested 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_LABELFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.protected voidvoidprotected abstract InternalRepositorycreateModuleRepository(String moduleName) protected voidcreateNewModule(String moduleName) Deprecated.As of 1.2 usecreateNewModule(String, String).protected voidcreateNewModule(String moduleName, String moduleTypeName) protected voidcreateNewModuleInfos(IStoreAccessor.CommitContext commitContext, List<AbstractLifecycleManager.ModuleInfo> newModules) protected voidcreateNewModules(IStoreAccessor.CommitContext commitContext, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usecreateNewModuleInfos(CommitContext, List).protected CDONet4jSessionConfigurationcreateSessionConfiguration(String repositoryName) protected voidprotected voidprotected voidstatic CDOBranchRefgetBranch(CDORevision floatingBaseline) Deprecated.As of 1.4 not used anymore.final org.eclipse.net4j.jvm.IJVMConnectororg.eclipse.net4j.util.container.IManagedContainerorg.eclipse.net4j.util.security.IPasswordCredentialsfinal Map<String,InternalRepository> final CDOSessiongetModuleSession(String moduleName) final Systemprotected voidhandleBaselineAddition(IStoreAccessor.CommitContext commitContext, InternalCDORevision addedContent) protected voidhandleBaselineDeletion(IStoreAccessor.CommitContext commitContext, CDORevisionDelta revisionDelta, CDORemoveFeatureDelta removeFeatureDelta) protected voidhandleCommit(IStoreAccessor.CommitContext commitContext) protected voidhandleModuleAddition(InternalCDORevision addedModule, Consumer<AbstractLifecycleManager.ModuleInfo> newModulesInfoConsumer) protected voidhandleModuleAddition(InternalCDORevision addedModule, List<org.eclipse.net4j.util.collection.Pair<String, CDOID>> newModules) Deprecated.As of 1.2 usehandleModuleAddition(InternalCDORevision, Consumer).protected voidhandleModuleDeletion(IStoreAccessor.CommitContext commitContext, InternalCDORevisionDelta systemRevisionDelta, CDORemoveFeatureDelta removeModuleDelta) protected voidinitProcess(Process process) initSystemRepository(CDOSession session) Deprecated.As of 1.2 useinitSystemRepository(CDOSession, BiConsumer).protected voidinitSystemRepository(CDOSession session, BiConsumer<String, String> moduleInfoComsumer) protected booleanisValidModuleName(String moduleName) static AbstractLifecycleManagerstatic AbstractLifecycleManagerof(org.eclipse.net4j.util.container.IManagedContainer container, IRepository repository) protected CDONet4jSessionopenModuleSession(InternalRepository moduleRepository) voidvoidsetCredentials(org.eclipse.net4j.util.security.IPasswordCredentials credentials) voidsetModuleDefinitionPath(String moduleDefinitionPath) voidsetProcessInitializer(Consumer<Process> processInitializer) voidsetSystemName(String systemName) voidsetSystemRepository(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, isDeferredActivationMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
toStringin classorg.eclipse.net4j.util.lifecycle.Lifecycle
-
doBeforeActivate
- Overrides:
doBeforeActivatein classorg.eclipse.net4j.util.lifecycle.Lifecycle- Throws:
Exception
-
doActivate
- Overrides:
doActivatein classorg.eclipse.net4j.util.lifecycle.Lifecycle- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivatein 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).