@Contract
public interface Deployment
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Deployment.DeploymentContextBuilder |
| Modifier and Type | Field and Description |
|---|---|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
AFTER_APPLICATION_CLASSLOADER_CREATION
This synchronous event is sent after creation of application classloader.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
AFTER_DEPLOYMENT_CLASSLOADER_CREATION
This synchronous event is sent after creation of deployment classloader.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
ALL_APPLICATIONS_PROCESSED
The following asynchronous event is sent after all applications are
started in server start up.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
APPLICATION_CLEANED |
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
APPLICATION_DISABLED |
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
APPLICATION_LOADED |
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
APPLICATION_PREPARED
The following synchronous events are sent after each change in an application stated (An application contains
1 to many modules)
|
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
APPLICATION_STARTED |
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
APPLICATION_STOPPED |
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
APPLICATION_UNLOADED |
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
DEPLOYMENT_BEFORE_CLASSLOADER_CREATION
This synchronous event is sent before prepare phase of deployment.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.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 org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
DEPLOYMENT_START
This synchronous event is sent when a new deployment or loading of an already deployed application start.
|
static org.glassfish.api.event.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 org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
INITIAL_CONTEXT_CREATED
This synchronous event is sent right after initial deployment context is created
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
MODULE_CLEANED |
static org.glassfish.api.event.EventTypes<ModuleInfo> |
MODULE_LOADED |
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
MODULE_PREPARED
The following synchronous events are sent after each change in a module state.
|
static org.glassfish.api.event.EventTypes<ModuleInfo> |
MODULE_STARTED |
static org.glassfish.api.event.EventTypes<ModuleInfo> |
MODULE_STOPPED |
static org.glassfish.api.event.EventTypes<ModuleInfo> |
MODULE_UNLOADED |
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
UNDEPLOYMENT_FAILURE
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
failed.
|
static org.glassfish.api.event.EventTypes<ApplicationInfo> |
UNDEPLOYMENT_START
This asynchronous event is sent when a new deployment or loading of an already deployed application start.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> |
UNDEPLOYMENT_SUCCESS
This asynchronous event is sent when a deployment activity (first time deploy or loading of an already deployed application)
succeeded.
|
static org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.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
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationInfo |
deploy(Collection<? extends org.glassfish.api.container.Sniffer> sniffers,
ExtendedDeploymentContext context) |
ApplicationInfo |
deploy(ExtendedDeploymentContext context) |
org.glassfish.api.deployment.DeploymentContext |
disable(org.glassfish.api.deployment.UndeployCommandParameters commandParams,
com.sun.enterprise.config.serverbeans.Application app,
ApplicationInfo appInfo,
org.glassfish.api.ActionReport report,
Logger logger) |
org.glassfish.api.deployment.DeploymentContext |
enable(String target,
com.sun.enterprise.config.serverbeans.Application app,
com.sun.enterprise.config.serverbeans.ApplicationRef appRef,
org.glassfish.api.ActionReport report,
Logger logger) |
ApplicationInfo |
get(String appName) |
org.glassfish.api.deployment.archive.ArchiveHandler |
getArchiveHandler(org.glassfish.api.deployment.archive.ReadableArchive archive) |
org.glassfish.api.deployment.archive.ArchiveHandler |
getArchiveHandler(org.glassfish.api.deployment.archive.ReadableArchive archive,
String type) |
Deployment.DeploymentContextBuilder |
getBuilder(Logger loggger,
org.glassfish.api.deployment.OpsParams params,
org.glassfish.api.ActionReport report) |
String |
getDefaultTarget(Boolean isClassicStyle) |
String |
getDefaultTarget(String appName,
org.glassfish.api.deployment.OpsParams.Origin origin,
Boolean isClassicStyle) |
org.glassfish.hk2.classmodel.reflect.Types |
getDeployableTypes(org.glassfish.api.deployment.DeploymentContext context)
Scans the source of the deployment operation for all types
and store the result in the deployment context.
|
Collection<? extends org.glassfish.api.container.Sniffer> |
getSniffers(org.glassfish.api.deployment.archive.ArchiveHandler archiveHandler,
Collection<? extends org.glassfish.api.container.Sniffer> sniffers,
org.glassfish.api.deployment.DeploymentContext context) |
List<org.glassfish.api.container.Sniffer> |
getSniffersFromApp(com.sun.enterprise.config.serverbeans.Application app) |
boolean |
isAppEnabled(com.sun.enterprise.config.serverbeans.Application app) |
boolean |
isRegistered(String appName) |
org.jvnet.hk2.config.Transaction |
prepareAppConfigChanges(org.glassfish.api.deployment.DeploymentContext context) |
org.glassfish.api.admin.ParameterMap |
prepareInstanceDeployParamMap(org.glassfish.api.deployment.DeploymentContext dc) |
ModuleInfo |
prepareModule(List<EngineInfo> sortedEngineInfos,
String moduleName,
org.glassfish.api.deployment.DeploymentContext context,
ProgressTracker tracker) |
void |
registerAppInDomainXML(ApplicationInfo applicationInfo,
org.glassfish.api.deployment.DeploymentContext context,
org.jvnet.hk2.config.Transaction t) |
void |
registerAppInDomainXML(ApplicationInfo applicationInfo,
org.glassfish.api.deployment.DeploymentContext context,
org.jvnet.hk2.config.Transaction t,
boolean appRefOnly) |
void |
registerTenantWithAppInDomainXML(String appName,
ExtendedDeploymentContext context) |
List<EngineInfo> |
setupContainerInfos(org.glassfish.api.deployment.archive.ArchiveHandler handler,
Collection<? extends org.glassfish.api.container.Sniffer> sniffers,
org.glassfish.api.deployment.DeploymentContext context) |
List<EngineInfo> |
setupContainerInfos(org.glassfish.api.deployment.DeploymentContext context) |
void |
undeploy(String appName,
ExtendedDeploymentContext context) |
ApplicationInfo |
unload(ApplicationInfo appInfo,
ExtendedDeploymentContext context) |
void |
unregisterAppFromDomainXML(String appName,
String target) |
void |
unregisterAppFromDomainXML(String appName,
String target,
boolean appRefOnly) |
void |
unregisterTenantWithAppInDomainXML(String appName,
String tenantName) |
void |
updateAppEnabledAttributeInDomainXML(String appName,
String target,
boolean enabled) |
void |
validateDeploymentTarget(String target,
String name,
boolean isRedeploy) |
void |
validateSpecifiedTarget(String target) |
void |
validateUndeploymentTarget(String target,
String name) |
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> INITIAL_CONTEXT_CREATED
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> DEPLOYMENT_START
static final String DEPLOYMENT_FAILURE_NAME
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> DEPLOYMENT_FAILURE
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> AFTER_DEPLOYMENT_CLASSLOADER_CREATION
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> DEPLOYMENT_BEFORE_CLASSLOADER_CREATION
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> AFTER_APPLICATION_CLASSLOADER_CREATION
static final org.glassfish.api.event.EventTypes<ApplicationInfo> DEPLOYMENT_SUCCESS
static final org.glassfish.api.event.EventTypes<ApplicationInfo> UNDEPLOYMENT_START
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> UNDEPLOYMENT_FAILURE
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> UNDEPLOYMENT_SUCCESS
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> MODULE_PREPARED
static final org.glassfish.api.event.EventTypes<ModuleInfo> MODULE_LOADED
static final org.glassfish.api.event.EventTypes<ModuleInfo> MODULE_STARTED
static final org.glassfish.api.event.EventTypes<ModuleInfo> MODULE_STOPPED
static final org.glassfish.api.event.EventTypes<ModuleInfo> MODULE_UNLOADED
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> MODULE_CLEANED
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> APPLICATION_PREPARED
static final org.glassfish.api.event.EventTypes<ApplicationInfo> APPLICATION_LOADED
static final org.glassfish.api.event.EventTypes<ApplicationInfo> APPLICATION_STARTED
static final org.glassfish.api.event.EventTypes<ApplicationInfo> APPLICATION_STOPPED
static final org.glassfish.api.event.EventTypes<ApplicationInfo> APPLICATION_UNLOADED
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> APPLICATION_CLEANED
static final org.glassfish.api.event.EventTypes<ApplicationInfo> APPLICATION_DISABLED
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> UNDEPLOYMENT_VALIDATION
static final org.glassfish.api.event.EventTypes<org.glassfish.api.deployment.DeploymentContext> ALL_APPLICATIONS_PROCESSED
Deployment.DeploymentContextBuilder getBuilder(Logger loggger, org.glassfish.api.deployment.OpsParams params, org.glassfish.api.ActionReport report)
org.glassfish.api.deployment.archive.ArchiveHandler getArchiveHandler(org.glassfish.api.deployment.archive.ReadableArchive archive)
throws IOException
IOExceptionorg.glassfish.api.deployment.archive.ArchiveHandler getArchiveHandler(org.glassfish.api.deployment.archive.ReadableArchive archive,
String type)
throws IOException
IOExceptionModuleInfo prepareModule(List<EngineInfo> sortedEngineInfos, String moduleName, org.glassfish.api.deployment.DeploymentContext context, ProgressTracker tracker) throws Exception
ExceptionApplicationInfo deploy(ExtendedDeploymentContext context)
ApplicationInfo deploy(Collection<? extends org.glassfish.api.container.Sniffer> sniffers, ExtendedDeploymentContext context)
void undeploy(String appName, ExtendedDeploymentContext context)
org.jvnet.hk2.config.Transaction prepareAppConfigChanges(org.glassfish.api.deployment.DeploymentContext context)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid registerAppInDomainXML(ApplicationInfo applicationInfo, org.glassfish.api.deployment.DeploymentContext context, org.jvnet.hk2.config.Transaction t) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid unregisterAppFromDomainXML(String appName, String target) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid registerAppInDomainXML(ApplicationInfo applicationInfo, org.glassfish.api.deployment.DeploymentContext context, org.jvnet.hk2.config.Transaction t, boolean appRefOnly) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid unregisterAppFromDomainXML(String appName, String target, boolean appRefOnly) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid registerTenantWithAppInDomainXML(String appName, ExtendedDeploymentContext context) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailurevoid unregisterTenantWithAppInDomainXML(String appName, String tenantName) throws org.jvnet.hk2.config.TransactionFailure, org.jvnet.hk2.config.RetryableException
org.jvnet.hk2.config.TransactionFailureorg.jvnet.hk2.config.RetryableExceptionvoid updateAppEnabledAttributeInDomainXML(String appName, String target, boolean enabled) throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailureList<EngineInfo> setupContainerInfos(org.glassfish.api.deployment.DeploymentContext context) throws Exception
ExceptionList<EngineInfo> setupContainerInfos(org.glassfish.api.deployment.archive.ArchiveHandler handler, Collection<? extends org.glassfish.api.container.Sniffer> sniffers, org.glassfish.api.deployment.DeploymentContext context) throws Exception
Exceptionboolean isRegistered(String appName)
ApplicationInfo get(String appName)
org.glassfish.api.admin.ParameterMap prepareInstanceDeployParamMap(org.glassfish.api.deployment.DeploymentContext dc)
throws Exception
Exceptionvoid validateDeploymentTarget(String target, String name, boolean isRedeploy)
void validateSpecifiedTarget(String target)
boolean isAppEnabled(com.sun.enterprise.config.serverbeans.Application app)
ApplicationInfo unload(ApplicationInfo appInfo, ExtendedDeploymentContext context)
org.glassfish.api.deployment.DeploymentContext disable(org.glassfish.api.deployment.UndeployCommandParameters commandParams,
com.sun.enterprise.config.serverbeans.Application app,
ApplicationInfo appInfo,
org.glassfish.api.ActionReport report,
Logger logger)
throws Exception
Exceptionorg.glassfish.api.deployment.DeploymentContext enable(String target, com.sun.enterprise.config.serverbeans.Application app, com.sun.enterprise.config.serverbeans.ApplicationRef appRef, org.glassfish.api.ActionReport report, Logger logger) throws Exception
Exceptionorg.glassfish.hk2.classmodel.reflect.Types getDeployableTypes(org.glassfish.api.deployment.DeploymentContext context)
throws IOException
context - deployment contextIOException - if the scanning fails due to an I/O exceptionList<org.glassfish.api.container.Sniffer> getSniffersFromApp(com.sun.enterprise.config.serverbeans.Application app)
Collection<? extends org.glassfish.api.container.Sniffer> getSniffers(org.glassfish.api.deployment.archive.ArchiveHandler archiveHandler, Collection<? extends org.glassfish.api.container.Sniffer> sniffers, org.glassfish.api.deployment.DeploymentContext context)
String getDefaultTarget(String appName, org.glassfish.api.deployment.OpsParams.Origin origin, Boolean isClassicStyle)
Copyright © 2017. All rights reserved.