public class CDOPackageRegistryPopulator extends Worker
target package registry by asynchronously polling a source
package registry for new EPackage registrations.| Modifier and Type | Class and Description |
|---|---|
static class |
CDOPackageRegistryPopulator.Descriptor
|
Worker.WorkContextILifecycle.DeferrableActivation| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SOURCE_POLL_INTERVAL |
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT| Constructor and Description |
|---|
CDOPackageRegistryPopulator(CDOPackageRegistry target) |
CDOPackageRegistryPopulator(EPackage.Registry source,
CDOPackageRegistry target) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActivate() |
protected void |
doWork() |
EPackage.Registry |
getSource() |
long |
getSourcePollInterval() |
CDOPackageRegistry |
getTarget() |
protected java.lang.String |
getThreadName() |
static boolean |
populate(CDOPackageRegistry target) |
static boolean |
populate(EPackage.Registry source,
CDOPackageRegistry target) |
void |
setSourcePollInterval(long sourcePollInterval) |
protected void |
work(Worker.WorkContext context) |
doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandleractivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic static final int DEFAULT_SOURCE_POLL_INTERVAL
public CDOPackageRegistryPopulator(CDOPackageRegistry target)
public CDOPackageRegistryPopulator(EPackage.Registry source, CDOPackageRegistry target)
public EPackage.Registry getSource()
public CDOPackageRegistry getTarget()
public long getSourcePollInterval()
public void setSourcePollInterval(long sourcePollInterval)
protected void work(Worker.WorkContext context) throws java.lang.Exception
protected void doWork()
protected void doActivate()
throws java.lang.Exception
doActivate in class Workerjava.lang.Exceptionprotected java.lang.String getThreadName()
getThreadName in class Workerpublic static boolean populate(CDOPackageRegistry target)
public static boolean populate(EPackage.Registry source, CDOPackageRegistry target)
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html