Skip to content

Commit 692a2a3

Browse files
committed
Support restart node list and re-elect zookeeper.
1 parent 2616afb commit 692a2a3

File tree

257 files changed

+21623
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+21623
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2076
1+
1.36.2077

clickhouse/CMakeLists.txt

Lines changed: 334 additions & 0 deletions
Large diffs are not rendered by default.

clickhouse/include/alibabacloud/clickhouse/ClickhouseClient.h

Lines changed: 550 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_CLICKHOUSEEXPORT_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_CLICKHOUSEEXPORT_H_
19+
20+
#include <alibabacloud/core/Global.h>
21+
22+
#if defined(ALIBABACLOUD_SHARED)
23+
# if defined(ALIBABACLOUD_CLICKHOUSE_LIBRARY)
24+
# define ALIBABACLOUD_CLICKHOUSE_EXPORT ALIBABACLOUD_DECL_EXPORT
25+
# else
26+
# define ALIBABACLOUD_CLICKHOUSE_EXPORT ALIBABACLOUD_DECL_IMPORT
27+
# endif
28+
#else
29+
# define ALIBABACLOUD_CLICKHOUSE_EXPORT
30+
#endif
31+
32+
#endif // !ALIBABACLOUD_CLICKHOUSE_CLICKHOUSEEXPORT_H_
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_
19+
20+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Clickhouse {
28+
namespace Model {
29+
class ALIBABACLOUD_CLICKHOUSE_EXPORT AllocateClusterPublicConnectionRequest : public RpcServiceRequest {
30+
public:
31+
AllocateClusterPublicConnectionRequest();
32+
~AllocateClusterPublicConnectionRequest();
33+
long getResourceOwnerId() const;
34+
void setResourceOwnerId(long resourceOwnerId);
35+
std::string getConnectionStringPrefix() const;
36+
void setConnectionStringPrefix(const std::string &connectionStringPrefix);
37+
std::string getAccessKeyId() const;
38+
void setAccessKeyId(const std::string &accessKeyId);
39+
std::string getResourceOwnerAccount() const;
40+
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
41+
std::string getDBClusterId() const;
42+
void setDBClusterId(const std::string &dBClusterId);
43+
std::string getOwnerAccount() const;
44+
void setOwnerAccount(const std::string &ownerAccount);
45+
long getOwnerId() const;
46+
void setOwnerId(long ownerId);
47+
48+
private:
49+
long resourceOwnerId_;
50+
std::string connectionStringPrefix_;
51+
std::string accessKeyId_;
52+
std::string resourceOwnerAccount_;
53+
std::string dBClusterId_;
54+
std::string ownerAccount_;
55+
long ownerId_;
56+
};
57+
} // namespace Model
58+
} // namespace Clickhouse
59+
} // namespace AlibabaCloud
60+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Clickhouse
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_CLICKHOUSE_EXPORT AllocateClusterPublicConnectionResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
AllocateClusterPublicConnectionResult();
38+
explicit AllocateClusterPublicConnectionResult(const std::string &payload);
39+
~AllocateClusterPublicConnectionResult();
40+
41+
protected:
42+
void parse(const std::string &payload);
43+
private:
44+
45+
};
46+
}
47+
}
48+
}
49+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONRESULT_H_
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_
19+
20+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Clickhouse {
28+
namespace Model {
29+
class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckClickhouseToRDSRequest : public RpcServiceRequest {
30+
public:
31+
CheckClickhouseToRDSRequest();
32+
~CheckClickhouseToRDSRequest();
33+
long getResourceOwnerId() const;
34+
void setResourceOwnerId(long resourceOwnerId);
35+
std::string getRdsVpcId() const;
36+
void setRdsVpcId(const std::string &rdsVpcId);
37+
std::string getCkPassword() const;
38+
void setCkPassword(const std::string &ckPassword);
39+
std::string getAccessKeyId() const;
40+
void setAccessKeyId(const std::string &accessKeyId);
41+
std::string getRdsPassword() const;
42+
void setRdsPassword(const std::string &rdsPassword);
43+
std::string getCkUserName() const;
44+
void setCkUserName(const std::string &ckUserName);
45+
std::string getResourceOwnerAccount() const;
46+
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
47+
std::string getDbClusterId() const;
48+
void setDbClusterId(const std::string &dbClusterId);
49+
std::string getOwnerAccount() const;
50+
void setOwnerAccount(const std::string &ownerAccount);
51+
std::string getRdsId() const;
52+
void setRdsId(const std::string &rdsId);
53+
long getOwnerId() const;
54+
void setOwnerId(long ownerId);
55+
long getClickhousePort() const;
56+
void setClickhousePort(long clickhousePort);
57+
long getRdsPort() const;
58+
void setRdsPort(long rdsPort);
59+
std::string getRdsVpcUrl() const;
60+
void setRdsVpcUrl(const std::string &rdsVpcUrl);
61+
std::string getRdsUserName() const;
62+
void setRdsUserName(const std::string &rdsUserName);
63+
64+
private:
65+
long resourceOwnerId_;
66+
std::string rdsVpcId_;
67+
std::string ckPassword_;
68+
std::string accessKeyId_;
69+
std::string rdsPassword_;
70+
std::string ckUserName_;
71+
std::string resourceOwnerAccount_;
72+
std::string dbClusterId_;
73+
std::string ownerAccount_;
74+
std::string rdsId_;
75+
long ownerId_;
76+
long clickhousePort_;
77+
long rdsPort_;
78+
std::string rdsVpcUrl_;
79+
std::string rdsUserName_;
80+
};
81+
} // namespace Model
82+
} // namespace Clickhouse
83+
} // namespace AlibabaCloud
84+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSREQUEST_H_
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Clickhouse
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckClickhouseToRDSResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
CheckClickhouseToRDSResult();
38+
explicit CheckClickhouseToRDSResult(const std::string &payload);
39+
~CheckClickhouseToRDSResult();
40+
bool getStatus()const;
41+
std::string getErrorCode()const;
42+
43+
protected:
44+
void parse(const std::string &payload);
45+
private:
46+
bool status_;
47+
std::string errorCode_;
48+
49+
};
50+
}
51+
}
52+
}
53+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKCLICKHOUSETORDSRESULT_H_
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_
19+
20+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
21+
#include <alibabacloud/core/RpcServiceRequest.h>
22+
#include <string>
23+
#include <vector>
24+
#include <map>
25+
26+
namespace AlibabaCloud {
27+
namespace Clickhouse {
28+
namespace Model {
29+
class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckModifyConfigNeedRestartRequest : public RpcServiceRequest {
30+
public:
31+
CheckModifyConfigNeedRestartRequest();
32+
~CheckModifyConfigNeedRestartRequest();
33+
std::string getDBClusterId() const;
34+
void setDBClusterId(const std::string &dBClusterId);
35+
std::string getConfig() const;
36+
void setConfig(const std::string &config);
37+
38+
private:
39+
std::string dBClusterId_;
40+
std::string config_;
41+
};
42+
} // namespace Model
43+
} // namespace Clickhouse
44+
} // namespace AlibabaCloud
45+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTREQUEST_H_
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_
18+
#define ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/clickhouse/ClickhouseExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Clickhouse
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_CLICKHOUSE_EXPORT CheckModifyConfigNeedRestartResult : public ServiceResult
33+
{
34+
public:
35+
36+
37+
CheckModifyConfigNeedRestartResult();
38+
explicit CheckModifyConfigNeedRestartResult(const std::string &payload);
39+
~CheckModifyConfigNeedRestartResult();
40+
bool getNeedRestart()const;
41+
42+
protected:
43+
void parse(const std::string &payload);
44+
private:
45+
bool needRestart_;
46+
47+
};
48+
}
49+
}
50+
}
51+
#endif // !ALIBABACLOUD_CLICKHOUSE_MODEL_CHECKMODIFYCONFIGNEEDRESTARTRESULT_H_

0 commit comments

Comments
 (0)