mirror of https://github.com/apache/jclouds.git
Issue 1004: changes default SocketOpen impl
Sets it to InetSocketAddressConnect, instead of SocketOpenUnsupported. Removes overriding the impl from Jsch and Sshj's client modules.
This commit is contained in:
parent
f95070a88e
commit
95c35487f0
|
@ -28,7 +28,7 @@ import com.google.inject.ImplementedBy;
|
|||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@ImplementedBy(SocketOpenUnsupported.class)
|
||||
@ImplementedBy(InetSocketAddressConnect.class)
|
||||
public interface SocketOpen extends Predicate<HostAndPort> {
|
||||
|
||||
}
|
||||
|
|
|
@ -24,8 +24,6 @@ import org.jclouds.Constants;
|
|||
import org.jclouds.domain.Credentials;
|
||||
import org.jclouds.domain.LoginCredentials;
|
||||
import org.jclouds.http.handlers.BackoffLimitedRetryHandler;
|
||||
import org.jclouds.predicates.InetSocketAddressConnect;
|
||||
import org.jclouds.predicates.SocketOpen;
|
||||
import org.jclouds.ssh.ConfiguresSshClient;
|
||||
import org.jclouds.ssh.SshClient;
|
||||
import org.jclouds.ssh.jsch.JschSshClient;
|
||||
|
@ -45,7 +43,6 @@ public class JschSshClientModule extends AbstractModule {
|
|||
|
||||
protected void configure() {
|
||||
bind(SshClient.Factory.class).to(Factory.class).in(Scopes.SINGLETON);
|
||||
bind(SocketOpen.class).to(InetSocketAddressConnect.class).in(Scopes.SINGLETON);
|
||||
}
|
||||
|
||||
private static class Factory implements SshClient.Factory {
|
||||
|
|
|
@ -24,8 +24,6 @@ import org.jclouds.Constants;
|
|||
import org.jclouds.domain.Credentials;
|
||||
import org.jclouds.domain.LoginCredentials;
|
||||
import org.jclouds.http.handlers.BackoffLimitedRetryHandler;
|
||||
import org.jclouds.predicates.InetSocketAddressConnect;
|
||||
import org.jclouds.predicates.SocketOpen;
|
||||
import org.jclouds.ssh.ConfiguresSshClient;
|
||||
import org.jclouds.ssh.SshClient;
|
||||
import org.jclouds.sshj.SshjSshClient;
|
||||
|
@ -45,7 +43,6 @@ public class SshjSshClientModule extends AbstractModule {
|
|||
|
||||
protected void configure() {
|
||||
bind(SshClient.Factory.class).to(Factory.class).in(Scopes.SINGLETON);
|
||||
bind(SocketOpen.class).to(InetSocketAddressConnect.class).in(Scopes.SINGLETON);
|
||||
}
|
||||
|
||||
private static class Factory implements SshClient.Factory {
|
||||
|
|
Loading…
Reference in New Issue