Examples of SerialExecutor


Examples of com.linkedin.parseq.internal.SerialExecutor

    } while (!_stateRef.compareAndSet(currState, newState));

    final long planId = NEXT_PLAN_ID.getAndIncrement();
    final Logger planLogger = _loggerFactory.getLogger(LOGGER_BASE + ":planClass=" + task.getClass().getName());
    final TaskLogger taskLogger = new TaskLogger(task, _allLogger, _rootLogger, planLogger);
    final Executor taskExecutor = new SerialExecutor(_taskExecutor, new CancelPlanRejectionHandler(task));
    new ContextImpl(new PlanContext(planId, this, taskExecutor, _timerExecutor, taskLogger), task).runTask();

    InternalUtil.unwildcardTask(task).addListener(_taskDoneListener);
  }
View Full Code Here

Examples of freenet.support.SerialExecutor

    entriesByKey = LRUMap.createSafeMap();
    blockOfferListByKey = LRUMap.createSafeMap();
    this.node = node;
    offerAuthenticatorKey = new byte[32];
    node.random.nextBytes(offerAuthenticatorKey);
    offerExecutor = new SerialExecutor(NativeThread.HIGH_PRIORITY);
    node.ticker.queueTimedJob(new FailureTableCleaner(), CLEANUP_PERIOD);
  }
View Full Code Here

Examples of freenet.support.SerialExecutor

      Logger.debug(this, "Initialize Plugin Manager config");

    client = core.makeClient(PRIO, true, false);

    // callback executor
    executor = new SerialExecutor(NativeThread.NORM_PRIORITY);
    executor.start(node.executor, "PM callback executor");

    pmconfig = new SubConfig("pluginmanager", node.config);
//    pmconfig.register("configfile", "fplugins.ini", 9, true, true, "PluginConfig.configFile", "PluginConfig.configFileLong",
//        new StringCallback() {
View Full Code Here

Examples of org.apache.felix.dm.impl.SerialExecutor

     */
    public ServiceDependencyImpl(BundleContext context, Logger logger) {
        super(logger);
        m_context = context;
        m_autoConfig = true;
        m_serial = new SerialExecutor(logger);
    }
View Full Code Here

Examples of org.apache.felix.dm.impl.SerialExecutor

    }

    /** Copying constructor that clones an existing instance. */
    public ServiceDependencyImpl(ServiceDependencyImpl prototype) {
        super(prototype);
        m_serial = new SerialExecutor(m_logger);
        synchronized (prototype) {
            m_context = prototype.m_context;
            m_autoConfig = prototype.m_autoConfig;
            m_trackedServiceName = prototype.m_trackedServiceName;
            m_nullObject = prototype.m_nullObject;
View Full Code Here

Examples of org.papoose.core.util.SerialExecutor

        this.framework = framework;

        savedStartManager = framework.getStartManager();
        framework.setStartManager(this);

        this.serialExecutor = new SerialExecutor(framework.getExecutorService());

        BundleContext systemBundleContext = framework.getSystemBundleContext();

        ServiceReference reference = systemBundleContext.getServiceReference(StartLevelStore.class.getName());
        if (reference != null)
View Full Code Here

Examples of org.papoose.core.util.SerialExecutor

    Executor getSerialExecutor()
    {
        synchronized (lock)
        {
            if (serialExecutor == null) serialExecutor = new SerialExecutor(framework.getExecutorService());
        }

        return serialExecutor;
    }
View Full Code Here

Examples of org.papoose.event.util.SerialExecutor

        private final EventHandler handler;
        private final Filter filter;

        private EventListener(String[][] paths, ServiceReference reference, EventHandler handler, String filter) throws InvalidSyntaxException
        {
            this.executor = new SerialExecutor(EventAdminImpl.this.executor);
            this.paths = paths;
            this.reference = reference;
            this.handler = handler;
            this.filter = (filter == null ? DEFAULT_FILTER : context.createFilter(filter));
        }
View Full Code Here

Examples of org.papoose.log.util.SerialExecutor

     */
    public void addLogListener(LogListener listener)
    {
        LOGGER.entering(CLASS_NAME, "addLogListener", listener);

        listeners.add(new LogListenerHolder(listener, new SerialExecutor(executorService)));

        LOGGER.exiting(CLASS_NAME, "addLogListener");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.