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

Examples of org.apache.hadoop.hbase.hbql.impl.QueryExecutorPoolImpl


                                                         final int completionQueueSize) throws HBqlException {

        if (Utils.isValidString(poolName) && getExecutorPoolMap().containsKey(poolName))
            throw new HBqlException("QueryExecutorPool already exists: " + poolName);

        final QueryExecutorPoolImpl executorPool = new QueryExecutorPoolImpl(poolName,
                                                                             maxExecutorPoolSize,
                                                                             minThreadCount,
                                                                             maxThreadCount,
                                                                             keepAliveSecs,
                                                                             threadsReadResults,
                                                                             completionQueueSize);
        QueryExecutorPoolManager.getExecutorPoolMap().put(executorPool.getName(), executorPool);

        return executorPool;
    }
View Full Code Here


    }

    public static boolean dropQueryExecutorPool(final String name) {

        if (Utils.isValidString(name) && getExecutorPoolMap().containsKey(name)) {
            final QueryExecutorPoolImpl queryExecutorPool = getExecutorPoolMap().remove(name);
            queryExecutorPool.shutdown();
            return true;
        }

        return false;
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.impl.QueryExecutorPoolImpl

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.