Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor RestClient as interface #49

Merged
merged 6 commits into from
Jun 19, 2020
Merged

refactor RestClient as interface #49

merged 6 commits into from
Jun 19, 2020

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Jun 17, 2020

Change-Id: Ib7153dc7b8d3bf3df9d19662b54cb05ff14c032b
@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #49 into master will increase coverage by 0.11%.
The diff coverage is 88.13%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #49      +/-   ##
============================================
+ Coverage     81.73%   81.85%   +0.11%     
- Complexity      685      686       +1     
============================================
  Files            57       57              
  Lines          2075     2083       +8     
  Branches        303      304       +1     
============================================
+ Hits           1696     1705       +9     
  Misses          250      250              
+ Partials        129      128       -1     
Impacted Files Coverage Δ Complexity Δ
...ava/com/baidu/hugegraph/version/CommonVersion.java 50.00% <ø> (ø) 1.00 <0.00> (ø)
...a/com/baidu/hugegraph/rest/AbstractRestClient.java 88.13% <88.13%> (ø) 38.00 <38.00> (?)
.../main/java/com/baidu/hugegraph/perf/Stopwatch.java 87.75% <0.00%> (+2.04%) 21.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 034e1a2...2eb13f2. Read the comment docs.

Change-Id: I57dd2db3c1b472403967f0b133ddb34c8f0edf48
@javeme javeme force-pushed the rest-client-interface branch from 2c49822 to 2b78aee Compare June 17, 2020 18:51
houzhizhen
houzhizhen previously approved these changes Jun 18, 2020
}

public AbstractRestClient(String url, String user, String password, int timeout,
int maxTotal, int maxPerRoute) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align url

}

public AbstractRestClient(String url, String user, String password, int timeout,
int maxTotal, int maxPerRoute, String protocol,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align

Change-Id: I05544b441ca1d058a010659316ca044af75923f1
shzcore
shzcore previously approved these changes Jun 18, 2020
public abstract class AbstractRestClient implements RestClient {

// Time unit: hours
private static long TTL = 24L;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final

Change-Id: I098656e7607ebb326e4708308ccc81d3d81c5b44
Change-Id: I7a9b325a6682939e20fceee7448815fa94512976
}

private static Client wrapTrustConfig(String url, ClientConfig config) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Change-Id: I2e1e5a7c678cabb3e55a957da45f4640cb80aafc
@zhoney zhoney merged commit b4fb1f7 into master Jun 19, 2020
@zhoney zhoney deleted the rest-client-interface branch June 19, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants