Package org.eclipse.emf.cdo.common.model
Class CDOPackageRegistryPopulator
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.concurrent.Worker
org.eclipse.emf.cdo.common.model.CDOPackageRegistryPopulator
- All Implemented Interfaces:
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
public class CDOPackageRegistryPopulator
extends org.eclipse.net4j.util.concurrent.Worker
Populates a
target
package registry by asynchronously polling a source
package registry for new EPackage
registrations.- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
org.eclipse.net4j.util.concurrent.Worker.WorkContext
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.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Constructor Summary
ConstructorDescriptionCDOPackageRegistryPopulator
(EPackage.Registry source, CDOPackageRegistry target) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
doWork()
long
protected String
static boolean
populate
(CDOPackageRegistry target) static boolean
populate
(EPackage.Registry source, CDOPackageRegistry target) void
setSourcePollInterval
(long sourcePollInterval) protected void
work
(org.eclipse.net4j.util.concurrent.Worker.WorkContext context) Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
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
-
Field Details
-
DEFAULT_SOURCE_POLL_INTERVAL
public static final int DEFAULT_SOURCE_POLL_INTERVAL- See Also:
-
-
Constructor Details
-
CDOPackageRegistryPopulator
-
CDOPackageRegistryPopulator
-
-
Method Details
-
getSource
-
getTarget
-
getSourcePollInterval
public long getSourcePollInterval() -
setSourcePollInterval
public void setSourcePollInterval(long sourcePollInterval) -
work
- Specified by:
work
in classorg.eclipse.net4j.util.concurrent.Worker
- Throws:
Exception
-
doWork
protected void doWork() -
doActivate
- Overrides:
doActivate
in classorg.eclipse.net4j.util.concurrent.Worker
- Throws:
Exception
-
getThreadName
- Overrides:
getThreadName
in classorg.eclipse.net4j.util.concurrent.Worker
-
populate
-
populate
-