Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12.2.1.3.0

E80373-04
Package weblogic.management.runtime

Interface DeployerRuntimeMBean

    • Field Detail

      • DEPLOYER_NAME

        static final java.lang.String DEPLOYER_NAME
        Deprecated.
        Name of this singleton MBean.
        See Also:
        Constant Field Values
    • Method Detail

      • activate

        @Deprecated
        DeploymentTaskRuntimeMBean activate​(java.lang.String source,
                                            java.lang.String name,
                                            java.lang.String stagingMode,
                                            DeploymentData info,
                                            java.lang.String id)
                                     throws ManagementException

        Activate a deployment. The deployment is extended to the relevant Java EE containers and subsystems. An ApplicationMBean is created if necessary and initialized prior to initiating the deployment for new deployments. If the application is already configured, it is expected to be correctly defined. Activate covers new deployments, redeployments and refreshes.

        If the source argument is a valid path to an EAR or module, the application files will be distributed as necessary to the target servers. If the source argument is null, then the application must already be configured with a valid path.

        The name argument must always be specified (not null). If there is already an application configured with this name, then the deployment will be based on that application. Otherwise, this is a new deployment and an ApplicationMBean will be created and fully configured based on the application descriptors found in the archive or directory named by the source argument. If this is a new deployment, the source argument cannot be null.

        The stagingMode argument can be used to override the staging attribute of the targeted servers. If this argument is null, the application will be staged to each server if that server is configured to be staged. If stagingMode is "stage" or "nostage", then the application will be staged or not staged, respectively, to each server, regardless of the server's configuration. If the staging mode is "external_stage", the application files are not staged by the server, rather the user is expected to place them in the staging area.

        The info argument is used to qualify the deployment. If null, the deployment will apply to the application's configured target servers. If info is not null, then it names a list of servers, each of which can be further qualified by module names. If a named target is not already configured for this application, it will be added as a target to the appropriate components.

        The info argument can also specify a list of files and directories. This supports application refreshes. When a file list is defined in the info object, the deployment will cause those files to be redistributed to the target servers. The file paths must be relative to the application source. If the application is an archive, the entire archive is redistributed, otherwise only the named files are distributed. Note that if the application targets release 6.x servers, there is no guarantee that only the files listed are redeployed.

        The ID argument is used to specify the identifier for the resulting task. If null, the system will generate the ID. If not null, then the value must be unique across all existing deployment tasks.

        Parameters:
        source - is the path to the application. If null, the configured path is used.
        name - is the configured name of the application.
        stagingMode - the value that will be set on the ApplicationMBean for this deployment "stage", "external_stage","nostage", or null which implies use the servers stagingMode value.
        info - describes the details of the deployment.
        id - to use for tracking. Use null to allow system to generate.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request.
        Throws:
        ManagementException - if the request is rejected.
      • deactivate

        @Deprecated
        DeploymentTaskRuntimeMBean deactivate​(java.lang.String name,
                                              DeploymentData info,
                                              java.lang.String id)
                                       throws ManagementException

        Deactivate a deployment. This suspends the services offered by the deployment and removes it from the relevant Java EE containers. The deployment will remain in the staging area and prepared following deactivation.

        The info parameter is used to define the specific targets the deactivation applies to. If any targets are specified in the info object, they will be removed from the application configuration. If info object does not specify any targets, then the deactivation will apply to all targets configured for the application. In this scenario, the configured targets are not removed from the configuration. Rather, the application is configured as undeployed.

        Parameters:
        name - is the configured name of the application.
        info - describes the details of the deployment. Null interpreted to deactivate the application on all servers, retaining targets.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • remove

        @Deprecated
        DeploymentTaskRuntimeMBean remove​(java.lang.String name,
                                          DeploymentData info,
                                          java.lang.String id)
                                   throws ManagementException

        Removes a deployment. This results in the application being deactivated and deconfigured from the target servers. Staged files are removed from the target server if they were staged when first deployed. If no targets are specified in the info object, or if the info object is null, the application is removed entirely from the domain.

        Parameters:
        name - is the configured name of the application to remove
        info - describes the details of the deployment.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • unprepare

        @Deprecated
        DeploymentTaskRuntimeMBean unprepare​(java.lang.String name,
                                             DeploymentData info,
                                             java.lang.String id)
                                      throws ManagementException

        Deactivate and unload a deployment. This results in the application being deactivated and classes are unloaded from the target servers. Staged files are not removed from the target server if they were staged when first deployed. If no targets are specified in the info object, or if the info object is null, the application is removed entirely from the domain.

        Parameters:
        name - is the configured name of the application to unprepare
        info - describes the details of the deployment.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • distribute

        DeploymentTaskRuntimeMBean distribute​(java.lang.String source,
                                              java.lang.String name,
                                              DeploymentData info,
                                              java.lang.String id)
                                       throws ManagementException
        Deprecated.

        Distributes application files on targets. This results in the application being copied to the staging area of a target.

        Parameters:
        source - is the path to the application files
        name - is the configured name of the application to distribute
        info - contains target information.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • appendToExtensionLoader

        DeploymentTaskRuntimeMBean appendToExtensionLoader​(java.lang.String source,
                                                           DeploymentData info,
                                                           java.lang.String id,
                                                           boolean startTask)
                                                    throws ManagementException
        Deprecated.

        Distributes code source identified by source to the WebLogic extension loader directory of each targeted server and appends the code source to the running WebLogic extension class loader. Control is given back to the caller without actually initiating the task, when startTask is false. The client must invoke the DeploymentTaskRuntimeMBean.start() method to complete the process. This is most useful when the client is interested in receiving notifications of the task's progress.

        Parameters:
        source -
        info - contains target information.
        id -
        startTask -
        Throws:
        ManagementException
      • start

        DeploymentTaskRuntimeMBean start​(java.lang.String name,
                                         DeploymentData info,
                                         java.lang.String id)
                                  throws ManagementException
        Deprecated.

        Starts an already distributed application on its target(s). This results in the application being prepared and activated on its target(s).

        Parameters:
        name - is the configured name of the application to start
        info - contains target information.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
        Access limited to the following security roles:
        Operator
      • stop

        DeploymentTaskRuntimeMBean stop​(java.lang.String name,
                                        DeploymentData info,
                                        java.lang.String id)
                                 throws ManagementException
        Deprecated.

        Stops an application on its target(s). This results in an application becoming unavailable for the clients.

        Parameters:
        name - is the configured name of the application to start
        info - contains target information.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
        Access limited to the following security roles:
        Operator
      • deploy

        DeploymentTaskRuntimeMBean deploy​(java.lang.String source,
                                          java.lang.String name,
                                          java.lang.String stagingMode,
                                          DeploymentData info,
                                          java.lang.String id)
                                   throws ManagementException
        Deprecated.

        Deploys an application on its target(s). This results in the application being distributed, prepared and activated on specified target(s). The name argument must always be specified (not null). If there is already an application configured with this name, then the deployment will be based on that application. Otherwise, this is a new deployment and an ApplicationMBean will be created and fully configured based on the application descriptors found in the archive or directory named by the source argument. If this is a new deployment, the source argument cannot be null.

        The stagingMode argument can be used to override the staging attribute of the targeted servers. If this argument is null, the application will be staged to each server if that server is configured to be staged. If stagingMode is "stage" or "nostage" then the application will be staged or not staged, respectively, to each server, regardless of the server's configuration. If the staging mode is "external_stage", the application files are not staged by the server, rather the user is expected to place them in the staging area.

        Parameters:
        source - is the path to the application files
        name - is the configured name of the application to distribute
        info - contains target information. It names a list of target servers, each of which can be further qualified by module names.
        id - to use for tracking. If null, a system generated id is used.
        stagingMode -
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • redeploy

        DeploymentTaskRuntimeMBean redeploy​(java.lang.String name,
                                            DeploymentData info,
                                            java.lang.String id)
                                     throws ManagementException
        Deprecated.

        Redeploys an application on its target(s). This results in the redeploy of an entire application on its target(s). Redeploy results in redistribution of the application if staging mode is "stage". Redeploy can also be used for partial redeployment by specifying a list of files.

        The info argument is used to qualify the deployment. If null, the deployment will apply to the application's configured target servers. If info is not null, then it names a list of servers, each of which can be further qualified by module names. If a named target is not already configured for this application, it will be added as a target to the appropriate components.

        Parameters:
        name - is the configured name of the application to distribute
        info - contains target information.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • undeploy

        DeploymentTaskRuntimeMBean undeploy​(java.lang.String name,
                                            DeploymentData info,
                                            java.lang.String id)
                                     throws ManagementException
        Deprecated.

        Undeploys an application on its target(s). This results in deactivating and removing an application on its target(s). This is the exact reverse of deploy().

        Parameters:
        name - is the configured name of the application to distribute
        info - contains target information.
        id - to use for tracking. If null, a system generated id is used.
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • undeploy

        DeploymentTaskRuntimeMBean undeploy​(java.lang.String name,
                                            DeploymentData info,
                                            java.lang.String id,
                                            boolean startTask)
                                     throws ManagementException
        Deprecated.
        Same functionality as undeploy(String, DeploymentData, String) except that control is given back to the caller without actually initiating the task, when startTask is false. The client must invoke the DeploymentTaskRuntimeMBean.start() method to complete the process. This is most useful when the client is interested in receiving notifications of the task's progress.
        Parameters:
        name - is the configured name of the application to distribute
        info - describes the details of the deployment.
        id - to use for tracking. If null, a system generated id is used.
        startTask -
        Returns:
        a DeploymentTaskRuntimeMBean that is used to track the request
        Throws:
        ManagementException - if the request is rejected.
      • query

        DeploymentTaskRuntimeMBean query​(java.lang.String id)
        Deprecated.

        Locates a deployment task based on the deployment ID.

        Parameters:
        id - is the id to query
        Returns:
        the DeploymentTaskRuntimeMBean for the task. Returns null if the task could not be found.
        Access limited to the following security roles:
        Operator
      • getDeploymentTaskRuntimes

        DeploymentTaskRuntimeMBean[] getDeploymentTaskRuntimes()
        Deprecated.
        Return the deployment task runtime MBeans.
      • getAvailabilityStatusForApplication

        @Deprecated
        java.util.Map getAvailabilityStatusForApplication​(java.lang.String appName,
                                                          boolean refreshCache)
                                                   throws javax.management.InstanceNotFoundException
        Deprecated.
        9.0.0.0 Replaced by AppRuntimeStateRuntimeMBean
        Provides a map consisting of component names of the application and a map of availability status for each target of that component including any virtual hosts. The map corresponding to each component name consists of the component target name and the weblogic.management.TargetAvailabilityStatus object corresponding to that component target.
        Throws:
        javax.management.InstanceNotFoundException
      • getAvailabilityStatusForComponent

        @Deprecated
        java.util.Map getAvailabilityStatusForComponent​(ComponentMBean compMBean,
                                                        boolean refreshCache)
                                                 throws javax.management.InstanceNotFoundException
        Deprecated.
        9.0.0.0 Replaced by AppRuntimeStateRuntimeMBean
        Provides a map of availability status for each target of that component, including any virtual hosts. The map consist of the component target name and the TargetAvailabilityStatus object corresponding to that component target.
        Throws:
        javax.management.InstanceNotFoundException
Copyright 1996, 2021, Oracle and/or its affiliates. All rights reserved.