public class Winrm4jTool extends java.lang.Object implements WinRmTool, ManagementContextInjectable
| Modifier and Type | Field and Description |
|---|---|
static ConfigKey<java.lang.Boolean> |
LOG_CREDENTIALS |
ADDITIONAL_CONNECTION_METADATA, BROOKLYN_CONFIG_KEY_PREFIX, COMPUTER_NAME, COPY_FILE_CHUNK_SIZE_BYTES, ENVIRONMENT, OPERATION_TIMEOUT, PROP_EXEC_RETRY_DELAY, PROP_EXEC_TRIES, PROP_HOST, PROP_PASSWORD, PROP_PORT, PROP_USER, RETRIES_OF_NETWORK_FAILURES, USE_HTTPS_WINRM, USE_NTLM| Constructor and Description |
|---|
Winrm4jTool(ConfigBag config) |
Winrm4jTool(java.util.Map<java.lang.String,?> config) |
| Modifier and Type | Method and Description |
|---|---|
WinRmToolResponse |
copyToServer(java.io.InputStream source,
java.lang.String destination) |
WinRmToolResponse |
executeCommand(java.util.List<java.lang.String> commands) |
WinRmToolResponse |
executePs(java.util.List<java.lang.String> commands) |
WinRmToolResponse |
executeScript(java.util.List<java.lang.String> commands)
Deprecated.
|
void |
setManagementContext(ManagementContext managementContext)
Sets the
ManagementContext reference. |
java.lang.String |
toString() |
public static final ConfigKey<java.lang.Boolean> LOG_CREDENTIALS
public Winrm4jTool(java.util.Map<java.lang.String,?> config)
public Winrm4jTool(ConfigBag config)
public void setManagementContext(ManagementContext managementContext)
ManagementContextInjectableManagementContext reference.setManagementContext in interface ManagementContextInjectablepublic WinRmToolResponse executeCommand(java.util.List<java.lang.String> commands)
executeCommand in interface WinRmTool@Deprecated public WinRmToolResponse executeScript(java.util.List<java.lang.String> commands)
executeScript in interface WinRmToolpublic WinRmToolResponse executePs(java.util.List<java.lang.String> commands)
public WinRmToolResponse copyToServer(java.io.InputStream source, java.lang.String destination)
copyToServer in interface WinRmToolpublic java.lang.String toString()
toString in class java.lang.Object