|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface Deployment
Deployment facility
| Nested Class Summary | |
|---|---|
static interface |
Deployment.DeploymentContextBuilder
|
| Field Summary | |
|---|---|
static EventTypes<DeploymentContext> |
ALL_APPLICATIONS_PROCESSED
The following asynchronous event is sent after all applications are started in server start up. |
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 asynchronous 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 EventTypes<DeploymentContext> |
DEPLOYMENT_START
This asynchronous 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> |
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 |
| Field Detail |
|---|
static final EventTypes<DeploymentContext> DEPLOYMENT_START
static final EventTypes<DeploymentContext> DEPLOYMENT_FAILURE
static final EventTypes<DeploymentContext> DEPLOYMENT_BEFORE_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_PROCESSED
| Method Detail |
|---|
Deployment.DeploymentContextBuilder getBuilder(Logger loggger,
OpsParams params,
ActionReport report)
ArchiveHandler getArchiveHandler(ReadableArchive archive)
throws IOException
IOException
ArchiveHandler getArchiveHandler(ReadableArchive archive,
String type)
throws IOException
IOException
ModuleInfo prepareModule(List<EngineInfo> sortedEngineInfos,
String moduleName,
DeploymentContext context,
ProgressTracker tracker)
throws Exception
ExceptionApplicationInfo deploy(ExtendedDeploymentContext context)
ApplicationInfo deploy(Collection<Sniffer> sniffers,
ExtendedDeploymentContext context)
void undeploy(String appName,
ExtendedDeploymentContext context)
org.jvnet.hk2.config.Transaction prepareAppConfigChanges(DeploymentContext context)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
void registerAppInDomainXML(ApplicationInfo applicationInfo,
DeploymentContext context,
org.jvnet.hk2.config.Transaction t)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
void unregisterAppFromDomainXML(String appName,
String target)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
void registerAppInDomainXML(ApplicationInfo applicationInfo,
DeploymentContext context,
org.jvnet.hk2.config.Transaction t,
boolean appRefOnly)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
void unregisterAppFromDomainXML(String appName,
String target,
boolean appRefOnly)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
void updateAppEnabledAttributeInDomainXML(String appName,
String target,
boolean enabled)
throws org.jvnet.hk2.config.TransactionFailure
org.jvnet.hk2.config.TransactionFailure
List<EngineInfo> setupContainerInfos(DeploymentContext context)
throws Exception
Exception
List<EngineInfo> setupContainerInfos(ArchiveHandler handler,
Collection<? extends Sniffer> sniffers,
DeploymentContext context)
throws Exception
Exceptionboolean isRegistered(String appName)
ApplicationInfo get(String appName)
List<Sniffer> prepareSniffersForOSGiDeployment(String type,
DeploymentContext context)
ParameterMap prepareInstanceDeployParamMap(DeploymentContext dc)
throws Exception
Exception
void validateDeploymentTarget(String target,
String name,
boolean isRedeploy)
void validateUndeploymentTarget(String target,
String name)
boolean isAppEnabled(Application app)
ApplicationInfo unload(ApplicationInfo appInfo,
ExtendedDeploymentContext context)
void disable(UndeployCommandParameters commandParams,
Application app,
ApplicationInfo appInfo,
ActionReport report,
Logger logger)
throws Exception
Exception
void enable(String target,
Application app,
ApplicationRef appRef,
ActionReport report,
Logger logger)
throws Exception
Exception
org.glassfish.hk2.classmodel.reflect.Types getDeployableTypes(DeploymentContext context)
throws IOException
context - deployment context
IOException - if the scanning fails due to an I/O exceptionList<Sniffer> getSniffersFromApp(Application app)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||