public interface InitialDeploymentSetBuilder extends DeploymentPlanBuilder
DeploymentPlanBuilder
that is 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 |
---|---|
InitialDeploymentSetBuilder |
withGracefulShutdown(long timeout,
TimeUnit timeUnit)
Indicates actions specified subsequent to this call should be organized
around a full graceful server shutdown and restart.
|
InitialDeploymentSetBuilder |
withoutSingleServerRollback()
Indicates that on a given server all
deploy , undeploy or
replace operations associated with the deployment set
should not be rolled back in case of a failure in any of them. |
InitialDeploymentSetBuilder |
withShutdown()
Indicates actions specified subsequent to this call should be organized
around a full server restart.
|
InitialDeploymentSetBuilder |
withSingleServerRollback()
Deprecated.
single server rollback is the default behavior for a deployment plan and doesn't need to be enabled
|
@Deprecated InitialDeploymentSetBuilder withSingleServerRollback()
deploy
, undeploy
or
replace
operations associated with the deployment set
should be rolled back in case of a failure in any of them.
Note: This directive does not span across servers, i.e.
a rollback on one server will not trigger rollback on others. Use
ServerGroupDeploymentPlanBuilder.withRollback()
to trigger
rollback across servers.
InitialDeploymentSetBuilder withoutSingleServerRollback()
deploy
, undeploy
or
replace
operations associated with the deployment set
should not be rolled back in case of a failure in any of them.InitialDeploymentSetBuilder 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.
timeout
- maximum amount of time the graceful shutdown should wait for
existing work to complete before completing the shutdowntimeUnit
- TimeUnit
in which timeout
is expressedInitialDeploymentSetBuilder 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.Copyright © 2018 JBoss by Red Hat. All rights reserved.