public class SshProfile extends Object
AbstractSshHadoopFsMirror
.Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_DELETE
The remote 'delete' command path.
|
static String |
COMMAND_GET
The remote 'get' command path.
|
static String |
COMMAND_PUT
The remote 'put' command path.
|
static String |
KEY_COMPRESSION
The key of
CompressionCodec class name. |
static String |
KEY_HOST
The key of host name.
|
static String |
KEY_PASS_PHRASE
The key of passphrase.
|
static String |
KEY_PORT
The key of port number.
|
static String |
KEY_PRIVATE_KEY
The key of path to the private key.
|
static String |
KEY_TARGET
The key of remote target installed path.
|
static String |
KEY_USER
The key of user name.
|
static String |
PATH_BASE_TARGET
The remote base target.
|
static String |
PREFIX_ENV
The key prefix of additional remote environment variables.
|
Constructor and Description |
---|
SshProfile(String name,
String target,
String user,
String host,
int port,
String privateKey,
String passPhrase,
org.apache.hadoop.io.compress.CompressionCodec compressionCodec,
Map<String,String> env)
Deprecated.
|
SshProfile(String name,
String target,
String user,
String host,
int port,
String privateKey,
String passPhrase,
Map<String,String> env)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static SshProfile |
convert(org.apache.hadoop.conf.Configuration configuration,
ResourceProfile profile)
Converts
ResourceProfile into SshProfile . |
org.apache.hadoop.io.compress.CompressionCodec |
getCompressionCodec()
Deprecated.
from
0.7.0 , WindGate does not use sequence files |
String |
getDeleteCommand()
Returns the delete command.
|
Map<String,String> |
getEnvironmentVariables()
Returns the additional remote environment variables.
|
String |
getGetCommand()
Returns the get command.
|
String |
getHost()
Returns the target host name.
|
String |
getPassPhrase()
Returns the pass phrase of the
getPrivateKey() . |
int |
getPort()
Return the target port.
|
String |
getPrivateKey()
Return the path to the private key file.
|
String |
getPutCommand()
Returns the put command.
|
String |
getResourceName()
Returns the resource name.
|
String |
getTarget()
Return the remote installation path.
|
String |
getUser()
Returns the user name.
|
public static final String PATH_BASE_TARGET
public static final String COMMAND_GET
public static final String COMMAND_PUT
public static final String COMMAND_DELETE
public static final String KEY_TARGET
public static final String KEY_USER
public static final String KEY_HOST
public static final String KEY_PORT
public static final String KEY_PRIVATE_KEY
${VARIABLE-NAME}
.public static final String KEY_PASS_PHRASE
public static final String KEY_COMPRESSION
CompressionCodec
class name.public static final String PREFIX_ENV
@Deprecated public SshProfile(String name, String target, String user, String host, int port, String privateKey, String passPhrase, org.apache.hadoop.io.compress.CompressionCodec compressionCodec, Map<String,String> env)
SshProfile(String, String, String, String, int, String, String, Map)
insteadname
- the resource nametarget
- the remote target installed pathuser
- the connection user namehost
- the connection target hostport
- the connection target portprivateKey
- the path to the private key filepassPhrase
- the passphrase of target private keycompressionCodec
- the compression codec, or null
if does not compressenv
- environment variablesIllegalArgumentException
- if any parameter is null
public SshProfile(String name, String target, String user, String host, int port, String privateKey, String passPhrase, Map<String,String> env)
name
- the resource nametarget
- the remote target installed pathuser
- the connection user namehost
- the connection target hostport
- the connection target portprivateKey
- the path to the private key filepassPhrase
- the passphrase of target private keyenv
- environment variablesIllegalArgumentException
- if any parameter is null
public static SshProfile convert(org.apache.hadoop.conf.Configuration configuration, ResourceProfile profile)
ResourceProfile
into SshProfile
.configuration
- the current configurationprofile
- target profileIllegalArgumentException
- if profile is not valid, or any parameter is null
public String getResourceName()
public String getTarget()
public String getGetCommand()
public String getPutCommand()
public String getDeleteCommand()
public String getUser()
public String getHost()
public int getPort()
public String getPrivateKey()
public String getPassPhrase()
getPrivateKey()
.public Map<String,String> getEnvironmentVariables()
@Deprecated public org.apache.hadoop.io.compress.CompressionCodec getCompressionCodec()
0.7.0
, WindGate does not use sequence filesnull
if does not compressCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.