public class EmptyWindowsProcessWinRmDriver extends AbstractSoftwareProcessWinRmDriver implements VanillaWindowsProcessDriver
| Constructor and Description |
|---|
EmptyWindowsProcessWinRmDriver(EmptyWindowsProcessImpl entity,
WinRmMachineLocation machine) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyInstallResources()
Files and templates to be copied to the server before installation.
|
void |
copyRuntimeResources()
Files and templates to be copied to the server after customisation.
|
void |
customize()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
install()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
boolean |
isRunning()
Whether the entity components have started.
|
void |
launch()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception.
|
void |
rebind()
Rebinds the driver to a pre-existing software process.
|
void |
start()
Start the entity.
|
void |
stop()
Performs software stop (or queues tasks to do this)
|
copyCustomizeResources, copyPreInstallResources, copyResource, copyResource, copyTo, copyTo, execute, executeNativeCommand, executeNativeOrPsCommand, executePsCommand, executePsScript, executePsScriptNoRetry, getLocation, getMachine, rebootAndWait, rebootAndWait, runPostCustomizeCommand, runPostInstallCommand, runPostLaunchCommand, runPreCustomizeCommand, runPreInstallCommand, runPreLaunchCommand, setupcopyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyTemplate, copyTemplate, copyTemplate, getArchiveNameFormat, getEntity, getExpandedInstallDir, getInstallDir, getResource, getResourceAsString, getRunDir, getShellEnvironment, getVersion, kill, postLaunch, preInstall, prepare, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, restart, setExpandedInstallDirequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntity, kill, restartgetLocationpublic EmptyWindowsProcessWinRmDriver(EmptyWindowsProcessImpl entity, WinRmMachineLocation machine)
public void start()
AbstractSoftwareProcessDriver
This installs, configures and launches the application process. However,
users can also call the AbstractSoftwareProcessDriver.install(), AbstractSoftwareProcessDriver.customize() and
AbstractSoftwareProcessDriver.launch() steps independently. The AbstractSoftwareProcessDriver.postLaunch() will
be called after the AbstractSoftwareProcessDriver.launch() metheod is executed, but the
process may not be completely initialised at this stage, so care is
required when implementing these stages.
The BrooklynConfigKeys.SKIP_ENTITY_START_IF_RUNNING key can be set on the location
or the entity to skip the startup process if the entity is already running,
according to the SoftwareProcessDriver.isRunning() method. To force the startup to be
skipped, BrooklynConfigKeys.SKIP_ENTITY_START can be set on the entity.
The BrooklynConfigKeys.SKIP_ENTITY_INSTALLATION key can also be used to
skip the AbstractSoftwareProcessDriver.setup(), AbstractSoftwareProcessDriver.copyInstallResources() and
AbstractSoftwareProcessDriver.install() methods if set on the entity or location.
start in interface SoftwareProcessDriverstart in class AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.stop()public boolean isRunning()
SoftwareProcessDriverisRunning in interface SoftwareProcessDriverpublic void install()
AbstractSoftwareProcessDriverinstall in class AbstractSoftwareProcessDriverpublic void customize()
AbstractSoftwareProcessDrivercustomize in class AbstractSoftwareProcessDriverpublic 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 copyRuntimeResources()
AbstractSoftwareProcessDriverAbstractSoftwareProcessDriver.customize() process.
Will be prefixed with the entity's run directory if relative.
public void launch()
AbstractSoftwareProcessDriverlaunch in class AbstractSoftwareProcessDriverpublic void rebind()
SoftwareProcessDriverrebind in interface SoftwareProcessDriverrebind in class AbstractSoftwareProcessDriverpublic void stop()
SoftwareProcessDriverstop in interface SoftwareProcessDriverstop in class AbstractSoftwareProcessDriverStartable.stop()