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, setup
copyResource, 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, setExpandedInstallDir
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, kill, restart
getLocation
public 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 SoftwareProcessDriver
start
in class AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.stop()
public boolean isRunning()
SoftwareProcessDriver
isRunning
in interface SoftwareProcessDriver
public void install()
AbstractSoftwareProcessDriver
install
in class AbstractSoftwareProcessDriver
public void customize()
AbstractSoftwareProcessDriver
customize
in class AbstractSoftwareProcessDriver
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 copyRuntimeResources()
AbstractSoftwareProcessDriver
AbstractSoftwareProcessDriver.customize()
process.
Will be prefixed with the entity's run directory
if relative.
public void launch()
AbstractSoftwareProcessDriver
launch
in class AbstractSoftwareProcessDriver
public void rebind()
SoftwareProcessDriver
rebind
in interface SoftwareProcessDriver
rebind
in class AbstractSoftwareProcessDriver
public void stop()
SoftwareProcessDriver
stop
in interface SoftwareProcessDriver
stop
in class AbstractSoftwareProcessDriver
Startable.stop()