mirror of https://github.com/apache/jclouds.git
Cleaned up SshExecutor
This commit is contained in:
parent
543af26e92
commit
1b09ebb041
|
@ -21,7 +21,6 @@ package org.jclouds.tools.ebsresize.util;
|
||||||
|
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import com.google.common.base.Predicates;
|
import com.google.common.base.Predicates;
|
||||||
import org.jclouds.aws.ec2.domain.RunningInstance;
|
|
||||||
import org.jclouds.compute.domain.NodeMetadata;
|
import org.jclouds.compute.domain.NodeMetadata;
|
||||||
import org.jclouds.compute.predicates.RunScriptRunning;
|
import org.jclouds.compute.predicates.RunScriptRunning;
|
||||||
import org.jclouds.compute.util.ComputeUtils;
|
import org.jclouds.compute.util.ComputeUtils;
|
||||||
|
@ -53,8 +52,6 @@ public class SshExecutor {
|
||||||
600, 3, TimeUnit.SECONDS);
|
600, 3, TimeUnit.SECONDS);
|
||||||
|
|
||||||
private final NodeMetadata nodeMetadata;
|
private final NodeMetadata nodeMetadata;
|
||||||
private final Credentials instanceCredentials;
|
|
||||||
private final String keyPair;
|
|
||||||
private final SshClient sshClient;
|
private final SshClient sshClient;
|
||||||
private final ComputeUtils utils;
|
private final ComputeUtils utils;
|
||||||
|
|
||||||
|
@ -63,8 +60,6 @@ public class SshExecutor {
|
||||||
String keyPair,
|
String keyPair,
|
||||||
InetSocketAddress socket) {
|
InetSocketAddress socket) {
|
||||||
this.nodeMetadata = nodeMetadata;
|
this.nodeMetadata = nodeMetadata;
|
||||||
this.instanceCredentials = instanceCredentials;
|
|
||||||
this.keyPair = keyPair;
|
|
||||||
|
|
||||||
this.sshClient =
|
this.sshClient =
|
||||||
new JschSshClient(socket, 60000,
|
new JschSshClient(socket, 60000,
|
||||||
|
|
Loading…
Reference in New Issue