@Contract
public interface Deployment
| Modifier and Type | Interface and Description |
|---|---|
static class |
Deployment.ApplicationDeployment |
static interface |
Deployment.DeploymentContextBuilder |
| Modifier and Type | Field and Description |
|---|---|
static EventTypes<DeploymentContext> |
AFTER_APPLICATION_CLASSLOADER_CREATION
This synchronous event is sent after creation of application classloader.
|
static EventTypes<DeploymentContext> |
AFTER_DEPLOYMENT_CLASSLOADER_CREATION
This synchronous event is sent after creation of deployment classloader.
|
static EventTypes<DeploymentContext> |
ALL_APPLICATIONS_LOADED
triggered when all applications are loaded, but not yet initialized
Useful to find out when all classes are available in the class loader
|
static EventTypes<DeploymentContext> |
ALL_APPLICATIONS_PROCESSED
The following asynchronous event is sent after all applications are
started in server start up.
|
static EventTypes<DeploymentContext> |
ALL_APPLICATIONS_STOPPED
All applications are now stopped / unloaded in the process of server shutdown
|
static EventTypes<DeploymentContext> |
APPLICATION_CLEANED |
static EventTypes<ApplicationInfo> |
APPLICATION_DISABLED |
static EventTypes<ApplicationInfo> |
APPLICATION_LOADED |
static EventTypes<DeploymentContext> |
APPLICATION_PREPARED
The following synchronous events are sent after each change in an application stated (An application contains
1 to many modules)
|
static EventTypes<ApplicationInfo> |
APPLICATION_STARTED |
static EventTypes<ApplicationInfo> |
APPLICATION_STOPPED |
static EventTypes<ApplicationInfo> |
APPLICATION_UNLOADED |
static EventTypes<DeploymentContext> |
DEPLOYMENT_BEFORE_CLASSLOADER_CREATION
This synchronous event is sent before prepare phase of deployment.
|
static EventTypes<DeploymentContext> |
DEPLOYMENT_FAILURE
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
failed.
|
static String |
DEPLOYMENT_FAILURE_NAME
The name of the Deployment Failure event
|
static EventTypes<DeploymentContext> |
DEPLOYMENT_START
This synchronous event is sent when a new deployment or loading of an already deployed application start.
|
static EventTypes<ApplicationInfo> |
DEPLOYMENT_SUCCESS
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
succeeded.
|
static EventTypes<DeploymentContext> |
INITIAL_CONTEXT_CREATED
This synchronous event is sent right after initial deployment context is created
|
static EventTypes<DeploymentContext> |
MODULE_CLEANED |
static EventTypes<ModuleInfo> |
MODULE_LOADED |
static EventTypes<DeploymentContext> |
MODULE_PREPARED
The following synchronous events are sent after each change in a module state.
|
static EventTypes<ModuleInfo> |
MODULE_STARTED |
static EventTypes<ModuleInfo> |
MODULE_STOPPED |
static EventTypes<ModuleInfo> |
MODULE_UNLOADED |
static EventTypes<DeploymentContext> |
UNDEPLOYMENT_FAILURE
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
failed.
|
static EventTypes<ApplicationInfo> |
UNDEPLOYMENT_START
This asynchronous event is sent when a new deployment or loading of an already deployed application start.
|
static EventTypes<DeploymentContext> |
UNDEPLOYMENT_SUCCESS
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
succeeded.
|
static EventTypes<DeploymentContext> |
UNDEPLOYMENT_VALIDATION
The following synchronous event is sent before the application is
undeployed so various listeners could validate the undeploy operation
and decide whether to abort undeployment
|
static final EventTypes<DeploymentContext> INITIAL_CONTEXT_CREATED
static final EventTypes<DeploymentContext> DEPLOYMENT_START
static final String DEPLOYMENT_FAILURE_NAME
static final EventTypes<DeploymentContext> DEPLOYMENT_FAILURE
static final EventTypes<DeploymentContext> AFTER_DEPLOYMENT_CLASSLOADER_CREATION
static final EventTypes<DeploymentContext> DEPLOYMENT_BEFORE_CLASSLOADER_CREATION
static final EventTypes<DeploymentContext> AFTER_APPLICATION_CLASSLOADER_CREATION
static final EventTypes<ApplicationInfo> DEPLOYMENT_SUCCESS
static final EventTypes<ApplicationInfo> UNDEPLOYMENT_START
static final EventTypes<DeploymentContext> UNDEPLOYMENT_FAILURE
static final EventTypes<DeploymentContext> UNDEPLOYMENT_SUCCESS
static final EventTypes<DeploymentContext> MODULE_PREPARED
static final EventTypes<ModuleInfo> MODULE_LOADED
static final EventTypes<ModuleInfo> MODULE_STARTED
static final EventTypes<ModuleInfo> MODULE_STOPPED
static final EventTypes<ModuleInfo> MODULE_UNLOADED
static final EventTypes<DeploymentContext> MODULE_CLEANED
static final EventTypes<DeploymentContext> APPLICATION_PREPARED
static final EventTypes<ApplicationInfo> APPLICATION_LOADED
static final EventTypes<ApplicationInfo> APPLICATION_STARTED
static final EventTypes<ApplicationInfo> APPLICATION_STOPPED
static final EventTypes<ApplicationInfo> APPLICATION_UNLOADED
static final EventTypes<DeploymentContext> APPLICATION_CLEANED
static final EventTypes<ApplicationInfo> APPLICATION_DISABLED
static final EventTypes<DeploymentContext> UNDEPLOYMENT_VALIDATION
static final EventTypes<DeploymentContext> ALL_APPLICATIONS_LOADED
static final EventTypes<DeploymentContext> ALL_APPLICATIONS_PROCESSED
static final EventTypes<DeploymentContext> ALL_APPLICATIONS_STOPPED
Deployment.DeploymentContextBuilder getBuilder(Logger loggger, OpsParams params, ActionReport report)
ArchiveHandler getArchiveHandler(ReadableArchive archive) throws IOException
IOExceptionArchiveHandler getArchiveHandler(ReadableArchive archive, String type) throws IOException
IOExceptionModuleInfo prepareModule(List<EngineInfo> sortedEngineInfos, String moduleName, DeploymentContext context, ProgressTracker tracker) throws Exception
ExceptionDeployment.ApplicationDeployment prepare(Collection<? extends Sniffer> sniffers, ExtendedDeploymentContext context)
void initialize(ApplicationInfo appInfo, Collection<? extends Sniffer> sniffers, ExtendedDeploymentContext context)
ApplicationInfo deploy(ExtendedDeploymentContext context)
ApplicationInfo deploy(Collection<? extends Sniffer> sniffers, ExtendedDeploymentContext context)
void undeploy(String appName, ExtendedDeploymentContext context)
Transaction prepareAppConfigChanges(DeploymentContext context) throws TransactionFailure
TransactionFailurevoid registerAppInDomainXML(ApplicationInfo applicationInfo, DeploymentContext context, Transaction t) throws TransactionFailure
TransactionFailurevoid unregisterAppFromDomainXML(String appName, String target) throws TransactionFailure
TransactionFailurevoid registerAppInDomainXML(ApplicationInfo applicationInfo, DeploymentContext context, Transaction t, boolean appRefOnly) throws TransactionFailure
TransactionFailurevoid unregisterAppFromDomainXML(String appName, String target, boolean appRefOnly) throws TransactionFailure
TransactionFailurevoid registerTenantWithAppInDomainXML(String appName, ExtendedDeploymentContext context) throws TransactionFailure
TransactionFailurevoid unregisterTenantWithAppInDomainXML(String appName, String tenantName) throws TransactionFailure, RetryableException
TransactionFailureRetryableExceptionvoid updateAppEnabledAttributeInDomainXML(String appName, String target, boolean enabled) throws TransactionFailure
TransactionFailureList<EngineInfo> setupContainerInfos(DeploymentContext context) throws Exception
ExceptionList<EngineInfo> setupContainerInfos(ArchiveHandler handler, Collection<? extends Sniffer> sniffers, DeploymentContext context) throws Exception
Exceptionboolean isRegistered(String appName)
ApplicationInfo get(String appName)
ParameterMap prepareInstanceDeployParamMap(DeploymentContext dc) throws Exception
Exceptionvoid validateDeploymentTarget(String target, String name, boolean isRedeploy)
void validateSpecifiedTarget(String target)
boolean isAppEnabled(Application app)
ApplicationInfo unload(ApplicationInfo appInfo, ExtendedDeploymentContext context)
DeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception
ExceptionDeploymentContext enable(String target, Application app, ApplicationRef appRef, ActionReport report, Logger logger) throws Exception
Exceptionorg.glassfish.hk2.classmodel.reflect.Types getDeployableTypes(DeploymentContext context) throws IOException
context - deployment contextIOException - if the scanning fails due to an I/O exceptionList<Sniffer> getSniffersFromApp(Application app)
Collection<? extends Sniffer> getSniffers(ArchiveHandler archiveHandler, Collection<? extends Sniffer> sniffers, DeploymentContext context)
String getDefaultTarget(String appName, OpsParams.Origin origin, Boolean isClassicStyle)
ExtendedDeploymentContext getCurrentDeploymentContext()
Copyright © 2019. All rights reserved.