Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
request-pool-service.h
Go to the documentation of this file.
1 // Copyright 2014 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef IMPALA_SCHEDULING_REQUEST_POOL_SERVICE_H
16 #define IMPALA_SCHEDULING_REQUEST_POOL_SERVICE_H
17 
18 #include <jni.h>
19 
20 #include "gen-cpp/ImpalaInternalService.h"
21 #include "common/status.h"
23 
24 namespace impala {
25 
33  public:
38 
43  Status ResolveRequestPool(const std::string& requested_pool_name,
44  const std::string& user, TResolveRequestPoolResult* resolved_pool);
45 
49  Status GetPoolConfig(const std::string& pool_name, TPoolConfigResult* pool_config);
50 
51  private:
54 
57 
64 
69 
75  jmethodID resolve_request_pool_id_; // RequestPoolService.resolveRequestPool()
76  jmethodID get_pool_config_id_; // RequestPoolService.getPoolConfig()
77  jmethodID ctor_;
78 };
79 
80 }
81 
82 #endif
RequestPoolService(MetricGroup *metrics)
Status GetPoolConfig(const std::string &pool_name, TPoolConfigResult *pool_config)
jobject request_pool_service_
Instance of com.cloudera.impala.util.RequestPoolService.
MetricGroups may be organised hierarchically as a tree.
Definition: metrics.h:200
StatsMetric< double > * resolve_pool_ms_metric_
Metric measuring the time ResolveRequestPool() takes, in milliseconds.
MetricGroup * metrics_
Metrics subsystem access.
Status ResolveRequestPool(const std::string &requested_pool_name, const std::string &user, TResolveRequestPoolResult *resolved_pool)