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

Initial implementation of Exec. #21

Merged
merged 1 commit into from
Jun 25, 2017

Conversation

brendandburns
Copy link
Contributor

Depends on #19

Fixes #9

@brendandburns
Copy link
Contributor Author

@mbohlool Now that websockets support is merged, I rebased this on top of that PR.

Please take a look.

Thanks!

@brendandburns
Copy link
Contributor Author

@mbohlool friendly ping on this if you have any feedback.

Thanks!

examples/pom.xml Outdated
@@ -19,6 +19,13 @@
<artifactId>client-java-util</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can still see the indentation problem here.

}

public void destroy() {
// TODO implementation here
Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented :)

@@ -26,6 +26,8 @@

import javax.net.ssl.KeyManager;

import org.apache.commons.codec.binary.Base64;
Copy link
Contributor

Choose a reason for hiding this comment

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

unused import. is there a way to detect these automatically in a github check? like a linter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't find a good one. Eclipse will do it, but then I'd have to use eclipse :)


import static java.util.concurrent.TimeUnit.SECONDS;

public final class WebSocketCall {
Copy link
Contributor

Choose a reason for hiding this comment

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

where did you use this? I see one WebSocketCall in WebSockets.java but it is not using this class. it uses WebSocketCall in another package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed. (it was part of the GET vs. POST discussion)

public void onOpen(WebSocket webSocket, Response response) {
listener.open();
public void onOpen(final WebSocket webSocket, Response response) {
listener.open("todo", new Closeable() {
Copy link
Contributor

Choose a reason for hiding this comment

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

todo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implemented. thanks for the reminder.

@brendandburns
Copy link
Contributor Author

Comments addressed, please re-check.

Thanks!
--brendan

Copy link
Contributor

@mbohlool mbohlool left a comment

Choose a reason for hiding this comment

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

Looks good except the indentation problem.

examples/pom.xml Outdated
@@ -19,6 +19,13 @@
<artifactId>client-java-util</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
Copy link
Contributor

Choose a reason for hiding this comment

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

I can still see the indentation problem here.

@brendandburns
Copy link
Contributor Author

@mbohlool oops, sorry, I formatted the ./util/pom.xml but missed the other one. Fixed now, ptal.

Thanks!

@mbohlool mbohlool merged commit 5b85b00 into kubernetes-client:master Jun 25, 2017
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.

None yet

3 participants