public interface InitialDeploymentPlanBuilder extends DeploymentPlanBuilder
DeploymentPlanBuilder
that exposes additional methods meant
to be used at the initial stages of the building process, when directives that
pertain to the entire plan can be applied.Modifier and Type | Method and Description |
---|---|
DeploymentPlanBuilder |
withGracefulShutdown(long timeout,
TimeUnit timeUnit)
Indicates actions specified subsequent to this call should be organized
around a full graceful server shutdown.
|
DeploymentPlanBuilder |
withoutRollback()
Indicates all
deploy , undeploy , replace
or remove operations associated with the deployment plan
should not be rolled back in case of a failure in any of them. |
DeploymentPlanBuilder |
withRollback()
Deprecated.
rollback is the default behavior for a deployment plan and doesn't need to be enabled
|
DeploymentPlanBuilder |
withShutdown()
Indicates actions specified subsequent to this call should be organized
around a full server shutdown.
|
add, add, add, add, add, add, build, deploy, getDeploymentActions, getGracefulShutdownTimeout, getLastAction, isGlobalRollback, isGracefulShutdown, isShutdown, redeploy, remove, replace, replace, replace, replace, replace, replace, replace, undeploy
@Deprecated DeploymentPlanBuilder withRollback()
deploy
, undeploy
, replace
or remove
operations associated with the deployment plan
should be rolled back in case of a failure in any of them.DeploymentPlanBuilder withoutRollback()
deploy
, undeploy
, replace
or remove
operations associated with the deployment plan
should not be rolled back in case of a failure in any of them.DeploymentPlanBuilder withGracefulShutdown(long timeout, TimeUnit timeUnit)
For any deploy
or replace
actions, the new content will not be deployed until the server is restarted.
For any undeploy
or replace
actions, the old content
will be undeployed as part of normal server shutdown processing.
NOTE: In order to organize a deployment plan around a server
shutdown, rollback of the plan must be disabled
.
A rollback is not compatible with a server restart.
NOTE: A Standalone JBoss AS instance is not able to restart itself; it can only shut itself down, and requires external action to start again.
timeout
- maximum amount of time the graceful shutdown should wait for
existing work to complete before completing the shutdowntimeUnit
- TimeUnit
in which timeout
is expressedDeploymentPlanBuilder withShutdown()
deploy
or replace
actions, the new content will not be deployed until the server is restarted.
For any undeploy
or replace
actions, the old content
will be undeployed as part of normal server shutdown processing.
NOTE: In order to organize a deployment plan around a server
shutdown, rollback of the plan must be disabled
.
A rollback is not compatible with a server restart.
NOTE: A Standalone JBoss AS instance is not able to restart itself; it can only shut itself down, and requires external action to start again.
Copyright © 2016 JBoss by Red Hat. All rights reserved.