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, stopequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRunningpublic AbstractSoftwareProcessWinRmDriver(EntityLocal entity, WinRmMachineLocation location)
public void runPreInstallCommand()
AbstractSoftwareProcessDriverrunPreInstallCommand in class AbstractSoftwareProcessDriverpublic void setup()
AbstractSoftwareProcessDriversetup in class AbstractSoftwareProcessDriverpublic void runPostInstallCommand()
AbstractSoftwareProcessDriverrunPostInstallCommand in class AbstractSoftwareProcessDriverpublic void runPreCustomizeCommand()
AbstractSoftwareProcessDriverrunPreCustomizeCommand in class AbstractSoftwareProcessDriverpublic void runPostCustomizeCommand()
AbstractSoftwareProcessDriverrunPostCustomizeCommand in class AbstractSoftwareProcessDriverpublic void runPreLaunchCommand()
AbstractSoftwareProcessDriverrunPreLaunchCommand in class AbstractSoftwareProcessDriverpublic void runPostLaunchCommand()
AbstractSoftwareProcessDriverrunPostLaunchCommand in class AbstractSoftwareProcessDriverpublic void copyPreInstallResources()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.preInstall()
process to have access to all required resources.
Will be prefixed with the entity's install directory if relative.
public void copyInstallResources()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.install()
process to have access to all required resources.
Will be prefixed with the entity's install directory if relative.
public void copyCustomizeResources()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.customize()
process to have access to all required resources.
Will be prefixed with the entity's install directory if relative.
public 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 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 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 summary,
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()
public void rebootAndWait(java.lang.String hostname)