Package com.alipay.bluewhale.core.work

Examples of com.alipay.bluewhale.core.work.WorkerShutdown


     */
    public static void killProcess(String pid) {
        synchronized (lock) {
            LOG.info("Killing process " + pid);

            WorkerShutdown shutdownHandle = getProcessHandle(pid);

            processMap.remove(pid);

            if (shutdownHandle != null) {
                shutdownHandle.shutdown();
            }
        }
    }
View Full Code Here


      ConcurrentHashMap<String, String> workerThreadPidsAtom)
      throws Exception {

    String pid = UUID.randomUUID().toString();

    WorkerShutdown worker = Worker.mk_worker(conf, sharedcontext, stormId,
        supervisorId, port, workerId);

    ProcessSimulator.registerProcess(pid, worker);

    workerThreadPidsAtom.put(workerId, pid);
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.work.WorkerShutdown

Copyright © 2018 www.massapicom. 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.