Package org.apache.accumulo.cluster
Class RemoteShellOptions
- java.lang.Object
-
- org.apache.accumulo.cluster.RemoteShellOptions
-
public class RemoteShellOptions extends Object
Property-based configuration of options to control how SSH is performed. A properties file can be provided usingSSH_PROPERTIES_FILEor using the normal system properties. Any relevant properties set in the system properties take precedence over the provided file.
-
-
Field Summary
Fields Modifier and Type Field Description protected Propertiespropertiesstatic StringSSH_COMMAND_DEFAULTstatic StringSSH_COMMAND_KEYstatic StringSSH_OPTIONS_DEFAULTstatic StringSSH_OPTIONS_KEYstatic StringSSH_PREFIXstatic StringSSH_PROPERTIES_FILEstatic StringSSH_USER_DEFAULTstatic StringSSH_USER_KEY
-
Constructor Summary
Constructors Constructor Description RemoteShellOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSshCommand()The explicit SSH executable to invokeStringgetSshOptions()Extra SSH options that can be providedStringgetUserName()Fetch the configured user to ssh as
-
-
-
Field Detail
-
SSH_PREFIX
public static final String SSH_PREFIX
- See Also:
- Constant Field Values
-
SSH_COMMAND_KEY
public static final String SSH_COMMAND_KEY
- See Also:
- Constant Field Values
-
SSH_COMMAND_DEFAULT
public static final String SSH_COMMAND_DEFAULT
- See Also:
- Constant Field Values
-
SSH_OPTIONS_KEY
public static final String SSH_OPTIONS_KEY
- See Also:
- Constant Field Values
-
SSH_OPTIONS_DEFAULT
public static final String SSH_OPTIONS_DEFAULT
- See Also:
- Constant Field Values
-
SSH_USER_KEY
public static final String SSH_USER_KEY
- See Also:
- Constant Field Values
-
SSH_USER_DEFAULT
public static final String SSH_USER_DEFAULT
- See Also:
- Constant Field Values
-
SSH_PROPERTIES_FILE
public static final String SSH_PROPERTIES_FILE
- See Also:
- Constant Field Values
-
properties
protected Properties properties
-
-
Method Detail
-
getUserName
public String getUserName()
Fetch the configured user to ssh as- Returns:
- The user to SSH as, default
SSH_USER_DEFAULT
-
getSshOptions
public String getSshOptions()
Extra SSH options that can be provided- Returns:
- Any SSH options, default
SSH_OPTIONS_DEFAULT
-
getSshCommand
public String getSshCommand()
The explicit SSH executable to invoke- Returns:
- The configured SSH executable, default
SSH_COMMAND_DEFAULT
-
-