patch 4.0
This commit is contained in:
@ -16,28 +16,47 @@
|
||||
#include <stdio.h>
|
||||
#include <getopt.h>
|
||||
#include "share/ob_define.h"
|
||||
#include "storage/blocksstable/ob_block_sstable_struct.h"
|
||||
#include "share/config/ob_config_manager.h"
|
||||
#include "observer/ob_server_reload_config.h"
|
||||
#include "share/rc/ob_tenant_base.h"
|
||||
|
||||
namespace oceanbase {
|
||||
namespace tools {
|
||||
class ObAdminExecutor {
|
||||
namespace oceanbase
|
||||
{
|
||||
|
||||
namespace common
|
||||
{
|
||||
|
||||
class ObIODevice;
|
||||
|
||||
}
|
||||
namespace tools
|
||||
{
|
||||
class ObAdminExecutor
|
||||
{
|
||||
public:
|
||||
ObAdminExecutor() : DB_port_(-1), tenant_id_(0), config_file_(NULL), wallet_file_(NULL)
|
||||
{}
|
||||
virtual ~ObAdminExecutor()
|
||||
{}
|
||||
ObAdminExecutor();
|
||||
virtual ~ObAdminExecutor();
|
||||
virtual int execute(int argc, char *argv[]) = 0;
|
||||
|
||||
protected:
|
||||
int parse_options(int argc, char *argv[]);
|
||||
ObIODevice *get_device_inner();
|
||||
int prepare_io();
|
||||
int init_slogger_mgr();
|
||||
int load_config();
|
||||
|
||||
protected:
|
||||
common::ObString DB_host_;
|
||||
int32_t DB_port_;
|
||||
uint64_t tenant_id_;
|
||||
const char *config_file_;
|
||||
const char *wallet_file_;
|
||||
share::ObTenantBase mock_server_tenant_;
|
||||
blocksstable::ObStorageEnv storage_env_;
|
||||
observer::ObServerReloadConfig reload_config_;
|
||||
common::ObConfigManager config_mgr_;
|
||||
char data_dir_[common::OB_MAX_FILE_NAME_LENGTH] = {0};
|
||||
char slog_dir_[common::OB_MAX_FILE_NAME_LENGTH] = {0};
|
||||
char clog_dir_[common::OB_MAX_FILE_NAME_LENGTH] = {0};
|
||||
char sstable_dir_[common::OB_MAX_FILE_NAME_LENGTH] = {0};
|
||||
};
|
||||
} // namespace tools
|
||||
} // namespace oceanbase
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* OB_ADMIN_EXECUTOR_H_ */
|
||||
|
||||
Reference in New Issue
Block a user