Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANSI_ENCODING |
static java.lang.String |
ENCODING
By default the encoding for communication with the server is taken from the configuration file.
|
static java.lang.String |
OEM_ENCODING |
Constructor and Description |
---|
BaseAgent(java.lang.String ipAddress,
java.lang.String userName,
java.lang.String password,
int connectTimeout,
java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
abstract void |
disconnect()
Disconnects from the remote server.
|
abstract java.lang.String |
doExecuteCommand(java.lang.String command)
Invokes a command on the remote server.
|
java.lang.String |
doExecuteCommand(java.lang.String cmd,
boolean readUntilTimeout) |
java.lang.String |
doExecuteCommand(java.lang.String command,
int cmdTimeout,
boolean readUntilTimeout) |
abstract DynamicParserTable |
doTableCommand(java.lang.String command)
Invokes a command on the remote server.
|
static java.lang.String |
getCharsetName(java.lang.String encoding)
Check the encoding string and return the charset name
|
int |
getMaxCommandLength() |
java.lang.String |
getShellCmdSeperator() |
java.lang.String |
getSudoCommands() |
java.lang.String |
getSudoPaths() |
static java.lang.String[][] |
parseTable(DynamicParserTable table) |
void |
setMaxCommandLength(int maxCommandLength) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
public static final java.lang.String ENCODING
public static final java.lang.String ANSI_ENCODING
public static final java.lang.String OEM_ENCODING
public BaseAgent(java.lang.String ipAddress, java.lang.String userName, java.lang.String password, int connectTimeout, java.util.Properties properties) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getCharsetName(java.lang.String encoding)
encoding
- xpublic abstract DynamicParserTable doTableCommand(java.lang.String command) throws java.lang.Exception
doTableCommand
in interface Agent
command
- the command to invokejava.lang.Exception
- when the command could not operate.public abstract java.lang.String doExecuteCommand(java.lang.String command) throws java.lang.Exception
doExecuteCommand
in interface Agent
command
- the command to invokejava.lang.Exception
- when the command could not operate.public java.lang.String doExecuteCommand(java.lang.String command, int cmdTimeout, boolean readUntilTimeout) throws java.lang.Exception
java.lang.Exception
public java.lang.String doExecuteCommand(java.lang.String cmd, boolean readUntilTimeout) throws java.lang.Exception
java.lang.Exception
public abstract void disconnect()
disconnect
in interface Agent
public void setProperty(java.lang.String key, java.lang.String value)
public static java.lang.String[][] parseTable(DynamicParserTable table)
public java.lang.String getShellCmdSeperator()
public int getMaxCommandLength()
public void setMaxCommandLength(int maxCommandLength)
public java.lang.String getSudoPaths()
public java.lang.String getSudoCommands()
Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.