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 |
rebootAndWait(java.lang.String hostname) |
void |
runPostCustomizeCommand()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
runPostInstallCommand()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
runPostLaunchCommand()
Only run if launch is run (if start is not skipped).
|
void |
runPreCustomizeCommand()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
runPreInstallCommand()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
runPreLaunchCommand()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
setup()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
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, stop
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRunning
public AbstractSoftwareProcessWinRmDriver(EntityLocal entity, WinRmMachineLocation location)
public void runPreInstallCommand()
AbstractSoftwareProcessDriver
runPreInstallCommand
in class AbstractSoftwareProcessDriver
public void setup()
AbstractSoftwareProcessDriver
setup
in class AbstractSoftwareProcessDriver
public void runPostInstallCommand()
AbstractSoftwareProcessDriver
runPostInstallCommand
in class AbstractSoftwareProcessDriver
public void runPreCustomizeCommand()
AbstractSoftwareProcessDriver
runPreCustomizeCommand
in class AbstractSoftwareProcessDriver
public void runPostCustomizeCommand()
AbstractSoftwareProcessDriver
runPostCustomizeCommand
in class AbstractSoftwareProcessDriver
public void runPreLaunchCommand()
AbstractSoftwareProcessDriver
runPreLaunchCommand
in class AbstractSoftwareProcessDriver
public void runPostLaunchCommand()
AbstractSoftwareProcessDriver
runPostLaunchCommand
in class AbstractSoftwareProcessDriver
public WinRmMachineLocation getLocation()
EntityDriver
getLocation
in interface EntityDriver
getLocation
in class AbstractSoftwareProcessDriver
public WinRmMachineLocation getMachine()
public int executeNativeCommand(java.util.Map flags, java.lang.String command, java.lang.String phase)
NativeWindowsScriptRunner
executeNativeCommand
in interface NativeWindowsScriptRunner
public int executePsCommand(java.util.Map flags, java.lang.String command, java.lang.String phase)
executePsCommand
in interface NativeWindowsScriptRunner
public java.lang.String getRunDir()
getRunDir
in class AbstractSoftwareProcessDriver
public java.lang.String getInstallDir()
getInstallDir
in class AbstractSoftwareProcessDriver
public 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 AbstractSoftwareProcessDriver
public 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 AbstractSoftwareProcessDriver
public 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 NativeWindowsScriptRunner
public 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()
public void rebootAndWait(java.lang.String hostname)