-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix][plugin][influxdbreader] Fix incorrect package path, fix #1071
- Loading branch information
Showing
6 changed files
with
124 additions
and
105 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
...luxdbreader/src/main/java/com/wgzhao/addax/plugin/reader/influxdb2reader/InfluxDBKey.java
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
...src/main/java/com/wgzhao/addax/plugin/reader/influxdb2reader/InfluxDBReaderErrorCode.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...fluxdbreader/src/main/java/com/wgzhao/addax/plugin/reader/influxdbreader/InfluxDBKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package com.wgzhao.addax.plugin.reader.influxdbreader; | ||
|
||
import com.wgzhao.addax.common.base.Key; | ||
|
||
public final class InfluxDBKey extends Key | ||
{ | ||
public static final String ENDPOINT = "endpoint"; | ||
public static final String COLUMN = "column"; | ||
public static final String USERNAME = "username"; | ||
public static final String PASSWORD = "password"; | ||
public static final String DATABASE = "database"; | ||
public static final String QUERY_SQL = "querySql"; | ||
public static final String CONNECTION = "connection"; | ||
public static final String CONNECT_TIMEOUT_SECONDS = "connTimeout"; | ||
public static final String SOCKET_TIMEOUT_SECONDS = "socketTimeout"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
.../src/main/java/com/wgzhao/addax/plugin/reader/influxdbreader/InfluxDBReaderErrorCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package com.wgzhao.addax.plugin.reader.influxdbreader; | ||
|
||
import com.wgzhao.addax.common.spi.ErrorCode; | ||
|
||
public enum InfluxDBReaderErrorCode | ||
implements ErrorCode | ||
{ | ||
REQUIRED_VALUE("InfluxDBReader-00", "缺失必要的值"), | ||
ILLEGAL_VALUE("InfluxDBReader-01", "值非法"); | ||
|
||
private final String code; | ||
private final String description; | ||
|
||
InfluxDBReaderErrorCode(String code, String description) | ||
{ | ||
this.code = code; | ||
this.description = description; | ||
} | ||
|
||
@Override | ||
public String getCode() | ||
{ | ||
return this.code; | ||
} | ||
|
||
@Override | ||
public String getDescription() | ||
{ | ||
return this.description; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return String.format("Code:[%s], Description:[%s]. ", this.code, | ||
this.description); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters