public class VanillaWindowsProcessWinRmDriver extends AbstractSoftwareProcessWinRmDriver implements VanillaWindowsProcessDriver
Constructor and Description |
---|
VanillaWindowsProcessWinRmDriver(EntityLocal entity,
WinRmMachineLocation location) |
Modifier and Type | Method and Description |
---|---|
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 |
start()
Start the entity.
|
void |
stop()
Performs software stop (or queues tasks to do this)
|
copyCustomizeResources, copyInstallResources, 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, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, getArchiveNameFormat, getEntity, getExpandedInstallDir, getInstallDir, getResource, getResourceAsString, getRunDir, getShellEnvironment, getVersion, kill, postLaunch, preInstall, prepare, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, setExpandedInstallDir
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.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 void install()
AbstractSoftwareProcessDriver
install
in class AbstractSoftwareProcessDriver
public void customize()
AbstractSoftwareProcessDriver
customize
in class AbstractSoftwareProcessDriver
public void launch()
AbstractSoftwareProcessDriver
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()