/Users/deen/code/yugabyte-db/src/yb/master/master_service_base.cc
Line | Count | Source |
1 | | // Copyright (c) YugaByte, Inc. |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
4 | | // in compliance with the License. You may obtain a copy of the License at |
5 | | // |
6 | | // http://www.apache.org/licenses/LICENSE-2.0 |
7 | | // |
8 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
9 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
10 | | // or implied. See the License for the specific language governing permissions and limitations |
11 | | // under the License. |
12 | | // |
13 | | |
14 | | #include "yb/master/master_service_base.h" |
15 | | #include "yb/master/master.h" |
16 | | |
17 | | namespace yb { |
18 | | namespace master { |
19 | | |
20 | | // Available overloaded handlers of different types: |
21 | | |
22 | 295k | enterprise::CatalogManager* MasterServiceBase::handler(CatalogManager*) { |
23 | 295k | return server_->catalog_manager_impl(); |
24 | 295k | } |
25 | | |
26 | 31 | FlushManager* MasterServiceBase::handler(FlushManager*) { |
27 | 31 | return server_->flush_manager(); |
28 | 31 | } |
29 | | |
30 | 119k | PermissionsManager* MasterServiceBase::handler(PermissionsManager*) { |
31 | 119k | return &server_->permissions_manager(); |
32 | 119k | } |
33 | | |
34 | 12.9k | EncryptionManager* MasterServiceBase::handler(EncryptionManager*) { |
35 | 12.9k | return &server_->encryption_manager(); |
36 | 12.9k | } |
37 | | |
38 | | } // namespace master |
39 | | } // namespace yb |