public class VanillaWindowsProcessWinRmDriver extends AbstractSoftwareProcessWinRmDriver implements VanillaWindowsProcessDriver
Constructor and Description |
---|
VanillaWindowsProcessWinRmDriver(EntityLocal entity,
WinRmMachineLocation location) |
Modifier and Type | Method and Description |
---|---|
void |
customize() |
void |
install() |
boolean |
isRunning()
Whether the entity components have started.
|
void |
launch() |
void |
preInstall()
Implement this method in child classes to add some pre-install behavior
|
void |
start()
Start the entity.
|
void |
stop()
Performs software stop (or queues tasks to do this)
|
copyResource, copyResource, copyTo, copyTo, execute, executePsScript, executePsScriptNoRetry, getInstallDir, getLocation, getRunDir, rebootAndWait, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setup
copyInstallResources, copyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, getEntity, getResource, getResourceAsString, getVersion, kill, postLaunch, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntity, kill, rebind, restart
getLocation
public VanillaWindowsProcessWinRmDriver(EntityLocal entity, WinRmMachineLocation location)
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#ENTITY_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 void preInstall()
AbstractSoftwareProcessDriver
preInstall
in class AbstractSoftwareProcessDriver
public void install()
install
in class AbstractSoftwareProcessDriver
public void customize()
customize
in class AbstractSoftwareProcessDriver
public void launch()
launch
in class AbstractSoftwareProcessDriver
public boolean isRunning()
SoftwareProcessDriver
isRunning
in interface SoftwareProcessDriver
public void stop()
SoftwareProcessDriver
stop
in interface SoftwareProcessDriver
stop
in class AbstractSoftwareProcessDriver
Startable.stop()