public abstract class AbstractSoftwareProcessWinRmDriver extends AbstractSoftwareProcessDriver implements NativeWindowsScriptRunner
Constructor and Description |
---|
AbstractSoftwareProcessWinRmDriver(EntityLocal entity,
WinRmMachineLocation location) |
Modifier and Type | Method and Description |
---|---|
void |
copyCustomizeResources()
Files and templates to be copied to the server before customize.
|
void |
copyInstallResources()
Files and templates to be copied to the server before installation.
|
void |
copyPreInstallResources()
Files and templates to be copied to the server before pre-install.
|
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 sourceUrl,
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 summary,
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) |
WinRmMachineLocation |
getLocation()
The location the entity is running in.
|
WinRmMachineLocation |
getMachine() |
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.
|
copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, customize, getArchiveNameFormat, getEntity, getExpandedInstallDir, getInstallDir, getResource, getResourceAsString, getRunDir, getShellEnvironment, getVersion, install, kill, launch, postLaunch, preInstall, prepare, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, setExpandedInstallDir, 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 void copyPreInstallResources()
AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.preInstall()
process to have access to all required resources.
Will be prefixed with the entity's install directory
if relative.
public void copyInstallResources()
AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.install()
process to have access to all required resources.
Will be prefixed with the entity's install directory
if relative.
public void copyCustomizeResources()
AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.customize()
process to have access to all required resources.
Will be prefixed with the entity's install directory
if relative.
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 int copyResource(java.util.Map<java.lang.Object,java.lang.Object> sshFlags, java.lang.String sourceUrl, 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 summary, 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)