Package org.apache.hadoop.hbase.hbql.impl

Examples of org.apache.hadoop.hbase.hbql.impl.AsyncExecutorImpl$LocalThreadPoolExecutor


                                                 final long keepAliveSecs) throws HBqlException {

        if (Utils.isValidString(name) && getExecutorMap().containsKey(name))
            throw new HBqlException("AsyncExecutor already exists: " + name);

        final AsyncExecutorImpl asyncExecutor = new AsyncExecutorImpl(name,
                                                                      minThreadCount,
                                                                      maxThreadCount,
                                                                      keepAliveSecs);
        AsyncExecutorManager.getExecutorMap().put(asyncExecutor.getName(), asyncExecutor);

        return asyncExecutor;
    }
View Full Code Here


    }

    public static boolean dropAsyncExecutor(final String name) {

        if (Utils.isValidString(name) && getExecutorMap().containsKey(name)) {
            final AsyncExecutorImpl asyncExecutor = getExecutorMap().remove(name);
            asyncExecutor.shutdown();
            return true;
        }

        return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.impl.AsyncExecutorImpl$LocalThreadPoolExecutor

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.