public abstract class AbstractSoftwareProcessWinRmDriver extends AbstractSoftwareProcessDriver implements NativeWindowsScriptRunner
| Constructor and Description |
|---|
AbstractSoftwareProcessWinRmDriver(EntityLocal entity,
WinRmMachineLocation location) |
| Modifier and Type | Method and Description |
|---|---|
int |
copyResource(java.util.Map<java.lang.Object,java.lang.Object> sshFlags,
java.io.InputStream source,
java.lang.String target,
boolean createParentDir) |
int |
copyResource(java.util.Map<java.lang.Object,java.lang.Object> sshFlags,
java.lang.String source,
java.lang.String target,
boolean createParentDir) |
int |
copyTo(java.io.File source,
java.lang.String destination) |
int |
copyTo(java.io.InputStream source,
java.lang.String destination) |
int |
execute(java.util.List<java.lang.String> script) |
int |
executeNativeCommand(java.util.Map flags,
java.lang.String command,
java.lang.String phase)
Runs a command and returns the result code
|
java.lang.Integer |
executeNativeOrPsCommand(java.util.Map flags,
java.lang.String regularCommand,
java.lang.String powerShellCommand,
java.lang.String phase,
java.lang.Boolean allowNoOp) |
int |
executePsCommand(java.util.Map flags,
java.lang.String command,
java.lang.String phase) |
int |
executePsScript(java.util.List<java.lang.String> psScript) |
int |
executePsScriptNoRetry(java.util.List<java.lang.String> psScript) |
java.lang.String |
getInstallDir() |
WinRmMachineLocation |
getLocation()
The location the entity is running in.
|
WinRmMachineLocation |
getMachine() |
java.lang.String |
getRunDir() |
void |
rebootAndWait() |
void |
runPostCustomizeCommand() |
void |
runPostInstallCommand() |
void |
runPostLaunchCommand()
Only run if launch is run (if start is not skipped).
|
void |
runPreCustomizeCommand() |
void |
runPreInstallCommand() |
void |
runPreLaunchCommand() |
void |
setup() |
copyInstallResources, copyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, customize, getArchiveNameFormat, getEntity, getResource, getResourceAsString, getVersion, install, kill, launch, postLaunch, preInstall, prepare, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start, stopequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRunningpublic AbstractSoftwareProcessWinRmDriver(EntityLocal entity, WinRmMachineLocation location)
public void runPreInstallCommand()
runPreInstallCommand in class AbstractSoftwareProcessDriverpublic void setup()
setup in class AbstractSoftwareProcessDriverpublic void runPostInstallCommand()
runPostInstallCommand in class AbstractSoftwareProcessDriverpublic void runPreCustomizeCommand()
runPreCustomizeCommand in class AbstractSoftwareProcessDriverpublic void runPostCustomizeCommand()
runPostCustomizeCommand in class AbstractSoftwareProcessDriverpublic void runPreLaunchCommand()
runPreLaunchCommand in class AbstractSoftwareProcessDriverpublic void runPostLaunchCommand()
AbstractSoftwareProcessDriverrunPostLaunchCommand in class AbstractSoftwareProcessDriverpublic WinRmMachineLocation getLocation()
EntityDrivergetLocation in interface EntityDrivergetLocation in class AbstractSoftwareProcessDriverpublic WinRmMachineLocation getMachine()
public int executeNativeCommand(java.util.Map flags,
java.lang.String command,
java.lang.String phase)
NativeWindowsScriptRunnerexecuteNativeCommand in interface NativeWindowsScriptRunnerpublic int executePsCommand(java.util.Map flags,
java.lang.String command,
java.lang.String phase)
executePsCommand in interface NativeWindowsScriptRunnerpublic java.lang.String getRunDir()
getRunDir in class AbstractSoftwareProcessDriverpublic java.lang.String getInstallDir()
getInstallDir in class AbstractSoftwareProcessDriverpublic int copyResource(java.util.Map<java.lang.Object,java.lang.Object> sshFlags,
java.lang.String source,
java.lang.String target,
boolean createParentDir)
copyResource in class AbstractSoftwareProcessDriverpublic int copyResource(java.util.Map<java.lang.Object,java.lang.Object> sshFlags,
java.io.InputStream source,
java.lang.String target,
boolean createParentDir)
copyResource in class AbstractSoftwareProcessDriverpublic java.lang.Integer executeNativeOrPsCommand(java.util.Map flags,
java.lang.String regularCommand,
java.lang.String powerShellCommand,
java.lang.String phase,
java.lang.Boolean allowNoOp)
executeNativeOrPsCommand in interface NativeWindowsScriptRunnerpublic int execute(java.util.List<java.lang.String> script)
public int executePsScriptNoRetry(java.util.List<java.lang.String> psScript)
public int executePsScript(java.util.List<java.lang.String> psScript)
public int copyTo(java.io.File source,
java.lang.String destination)
public int copyTo(java.io.InputStream source,
java.lang.String destination)
public void rebootAndWait()