patch 4.0
This commit is contained in:
54
src/rootserver/ob_rootservice_util_checker.h
Normal file
54
src/rootserver/ob_rootservice_util_checker.h
Normal file
@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Copyright (c) 2021 OceanBase
|
||||
* OceanBase CE is licensed under Mulan PubL v2.
|
||||
* You can use this software according to the terms and conditions of the Mulan PubL v2.
|
||||
* You may obtain a copy of Mulan PubL v2 at:
|
||||
* http://license.coscl.org.cn/MulanPubL-2.0
|
||||
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
* See the Mulan PubL v2 for more details.
|
||||
*/
|
||||
|
||||
#ifndef OCEANBASE_ROOTSERVICE_UTIL_CHECKER_H_
|
||||
#define OCEANBASE_ROOTSERVICE_UTIL_CHECKER_H_ 1
|
||||
#include "lib/container/ob_array.h"
|
||||
#include "lib/net/ob_addr.h"
|
||||
#include "ob_migrate_unit_finish_checker.h"
|
||||
#include "ob_alter_locality_finish_checker.h"
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace rootserver
|
||||
{
|
||||
class ObRootServiceUtilChecker : public share::ObCheckStopProvider
|
||||
{
|
||||
public:
|
||||
ObRootServiceUtilChecker(volatile bool &stop);
|
||||
virtual ~ObRootServiceUtilChecker();
|
||||
public:
|
||||
int init(
|
||||
ObUnitManager &unit_mgr,
|
||||
ObServerManager &server_mgr,
|
||||
ObZoneManager &zone_mgr,
|
||||
obrpc::ObCommonRpcProxy &common_rpc_proxy,
|
||||
common::ObAddr &self,
|
||||
share::schema::ObMultiVersionSchemaService &schema_service,
|
||||
common::ObMySQLProxy &sql_proxy,
|
||||
share::ObLSTableOperator &lst_operator);
|
||||
public:
|
||||
int rootservice_util_check();
|
||||
private:
|
||||
virtual int check_stop() const override;
|
||||
private:
|
||||
bool inited_;
|
||||
volatile bool &stop_;
|
||||
ObMigrateUnitFinishChecker migrate_unit_finish_checker_;
|
||||
ObAlterLocalityFinishChecker alter_locality_finish_checker_;
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ObRootServiceUtilChecker);
|
||||
};
|
||||
|
||||
} // end namespace rootserver
|
||||
} // end namespace oceanbase
|
||||
|
||||
#endif /* OCEANBASE_ROOTSERVICE_UTIL_CHECKER_H_ */
|
||||
Reference in New Issue
Block a user