Skip to content

Add docker stats support#189

Merged
marcuslinke merged 3 commits intodocker-java:masterfrom
NirmataOSS:master
May 28, 2015
Merged

Add docker stats support#189
marcuslinke merged 3 commits intodocker-java:masterfrom
NirmataOSS:master

Conversation

@patelrit
Copy link
Copy Markdown
Contributor

@patelrit patelrit commented Apr 2, 2015

Add docker stats support for docker 1.5+
It works in the same ways as events (async)
Also added a test case

@marcuslinke
Please review and merge

patelrit and others added 3 commits April 1, 2015 13:31
Add docker stats support for 1.5+
@ericfjosne
Copy link
Copy Markdown

+1, would love to see this as mainstream !

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should not be needed. Could you remove this please?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well spotted !

Done.

Thanks !
On 7 Apr 2015 at 14:23:49, marcuslinke ([email protected]) wrote:

In src/test/java/com/github/dockerjava/client/AbstractDockerClientTest.java:

@@ -60,7 +60,7 @@ private DockerClientConfig config() {

 protected DockerClientConfig config(String password) {
     DockerClientConfig.DockerClientConfigBuilder builder = DockerClientConfig.createDefaultConfigBuilder()
  •            .withServerAddress("https://index.docker.io/v1/");
    
  •            .withServerAddress("https://index.docker.io/v1/").withMaxTotalConnections(5).withMaxPerRouteConnections(5);
    
    This should not be needed. Could you remove this please?


Reply to this email directly or view it on GitHub.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi Markus,

My apologies, I’m still quite new to github.
I believe it should be correct now.

Best regards,

Eric

On 7 Apr 2015 at 14:40:24, Eric Fjøsne ([email protected]) wrote:

Well spotted !

Done.

Thanks !
On 7 Apr 2015 at 14:23:49, marcuslinke ([email protected]) wrote:

In src/test/java/com/github/dockerjava/client/AbstractDockerClientTest.java:

@@ -60,7 +60,7 @@ private DockerClientConfig config() {

 protected DockerClientConfig config(String password) {
     DockerClientConfig.DockerClientConfigBuilder builder = DockerClientConfig.createDefaultConfigBuilder()
  •            .withServerAddress("https://index.docker.io/v1/");
    
  •            .withServerAddress("https://index.docker.io/v1/").withMaxTotalConnections(5).withMaxPerRouteConnections(5);
    

This should not be needed. Could you remove this please?


Reply to this email directly or view it on GitHub.

@patelrit
Copy link
Copy Markdown
Contributor Author

patelrit commented Apr 8, 2015

Is this ready to be merged or additional changes are required. Please let me know.

@marcuslinke
Copy link
Copy Markdown
Contributor

@patelrit See #196 please.

As your implementation is derived from EventsCmdExec the same counts here.

That's why the tests passes only when configuring a bigger connection pool.

So before i can merge i have to find out the cause of that problem.

@patelrit
Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants