-
Notifications
You must be signed in to change notification settings - Fork 93
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
Adds WinRmTool interface #1045
Adds WinRmTool interface #1045
Conversation
I didn't review this thoroughly and this is a comment related less to this particular PR as to a more general design aspect. I think the bigger issue is the fact that we handle I have a more concrete proposal, but still not 100% fleshed out. I will post it on the dev@ list. If you want this PR merged, I am ok with it, but I think we'll revisit it in not far in the future. |
Thanks @hzbarcea The I think that at some level of our code, we'll hit the use of an ssh-client or a winrm-client (unless we went all-in with chef/puppet/salt etc). Therefore I think the bulk of this PR is not related to the problems you refer to. We want to remove the dependency on As for I'd therefore like us to merge it before we tackle the big |
String BROOKLYN_CONFIG_KEY_PREFIX = Preconditions.checkNotNull(BrooklynConfigKeys.BROOKLYN_WINRM_CONFIG_KEY_PREFIX, | ||
"static final initializer classload ordering problem"); | ||
|
||
ConfigKey<String> PROP_HOST = newStringConfigKey("host", "Host to connect to (required)", null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to put null
here?
Very good start for putting alternative WinRm implementations! As part of this refactoring I want to remind you to review #950 . Basically I think that we have to have only |
@aledsage |
Looks good, merging. |
We want the interface/class within Brooklyn so that the rest of the code doesn't depend on winrm4j directly.
We also want to be able to swap out the Winrm4jTool for an alternative implementation, just through configuration.
Note that the unqualified interface name / class name are the same as the names in
io.cloudsoft.winrm4j.winrm.WinRmTool
andio.cloudsoft.winrm4j.winrm.WinRmToolResponse
. Is that a good idea? Any better suggestions for names?