# DeploymentTaskRuntimeMBean

Overview | Related MBeans | Attributes | Operations

## Overview

Base interface for deployment task MBeans. These MBeans track the progress of a deployment task.

Deprecated. 9.0.0.0 Replaced by WebLogicDeploymentManager

Security roles | The following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean: Deployer
Fully Qualified Interface Name | If you use the `getMBeanInfo` operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name: `weblogic.management.runtime.DeploymentTaskRuntimeMBean`
Factory Methods | No factory methods. Instances of this MBean are created automatically.
Access Points Inherited from TaskRuntimeMBean | Because this MBean extends or implements TaskRuntimeMBean, you can also access this MBean by retrieving TaskRuntimeMBeans. The following attributes contain TaskRuntimeMBeans and its subtypes:
JDBCDataSourceTaskRuntimeMBean.SubTasks JDBCDataSourceTaskRuntimeMBean.ParentTask ServerLifeCycleTaskRuntimeMBean.SubTasks ServerLifeCycleTaskRuntimeMBean.ParentTask TaskRuntimeMBean.SubTasks | TaskRuntimeMBean.ParentTask WLDFImageCreationTaskRuntimeMBean.SubTasks WLDFImageCreationTaskRuntimeMBean.ParentTask
Deprecated Factory Methods and Access Points |
DeployerRuntimeMBean.DeploymentTaskRuntimes |

## Related MBeans

This section describes attributes that provide access to other MBeans. For more information about the MBean hierarchy, refer to WebLogic Server MBean Data Model.

SubTasks |

### SubTasks

An array of `TaskRuntimeMBeans` that describes a set of parallel tasks which are components of this task.

A value of `null` indicates that this task has no subtasks.

A simple example of a task with subtasks would be one which monitors a user's request to start a cluster; that task should return a set of subtasks indicating the individual server-startup processes which compose the overall cluster-startup task.

Factory Methods | No explicit creator method. The child shares the lifecycle of its parent.
Privileges | Read only
Type | TaskRuntimeMBean[]
Relationship type: | Containment.

## Attributes

This section describes the following attributes:

ApplicationName BeginTime DeploymentData DeploymentMBean Description EndTime Error Id InUse Name NewSource NotificationLevel | Parent ParentTask Running Source State Status SystemTask Targets Task TaskMessages Type

### ApplicationName

The name for the application that was specified to DeployerRuntime.activate

Privileges | Read only
Type | java.lang.String

### BeginTime

The time at which this task was started.

Privileges | Read only
Type | long

### DeploymentData

Provides the data associated with this task

Privileges | Read only
Type | weblogic.management.deploy.DeploymentData

### DeploymentMBean

Available Since | Release 9.0.0.0
Privileges | Read only
Type |

### Description

A description of this task.

Privileges | Read only
Type | java.lang.String

### EndTime

The time at which this task was completed.

A value of `-1` indicates that the task is currently running.

Privileges | Read only
Type | long

### Error

Returns an exception describing the error, if any, that occurred while performing this task.

Privileges | Read only
Type | java.lang.Exception

### Id

Provides a reference id assigned to a task.

Privileges | Read only
Type | java.lang.String

### InUse

Indicates whether the MBean is free for deletion or timeout.

Privileges | Read only
Type | boolean

### Name

The name of this configuration. WebLogic Server uses an MBean to implement and persist the configuration.

Privileges | Read only
Type | java.lang.String

### NewSource

Indicates whether a new source for the application was specified in an deployment request.

Privileges | Read only
Type | boolean

### NotificationLevel

Provides the notification level applied to this task.

Privileges | Read/Write
Type | int

### Parent

Return the immediate parent for this MBean

Privileges | Read/Write
Type |

### ParentTask

The task of which this task is a part.

A value of `null` indicates that this task is not a subtask.

For more information, see:

- getSubTasks

Privileges | Read only
Type |

### Running

Indicates whether the task is still running.

Privileges | Read only
Type | boolean

### Source

Provides the name of the source file that was specified to DeployerRuntime.activate.

Privileges | Read only
Type | java.lang.String

### State

Provides notice of the overall state of this task.

Privileges | Read only
Type | int

### Status

The status of this task.

Privileges | Read only
Type | java.lang.String

### SystemTask

Indicates whether this task was initiated by the server versus a user.

Privileges | Read only
Type | boolean

### Targets

Provides target based deployment status information for this deployment. For distributed deployment, there is one TargetStatus for each target

Privileges | Read only
Type | class weblogic.management.deploy.TargetStatus[]

### Task

Indicates a specific task associated with this MBean

Privileges | Read only
Type | int

### TaskMessages

Provides an ordered list of messages generated for the task. Each member in the list is a String object.

Privileges | Read only
Type | java.util.List

### Type

Returns the type of the MBean.

Privileges | Read only
Type | java.lang.String

## Operations

This section describes the following operations:

cancel findTarget | start

### cancel

Attempts to cancel the task. Any actions which have yet to start will be inhibited. Any completed actions will remain in place.

Operation Name | `"cancel"`
Parameters | `null`
Signature | `null`
Returns | `void`
Exceptions | `java.lang.Exception`

### findTarget

Lists the status for a specific target of this deployment.

Operation Name | `"findTarget"`
Parameters | `Object [] { target }` where: `target` is an object of type `java.lang.String` that specifies: is the name of a target (server or cluster name)
Signature | `String [] { "java.lang.String" }`
Returns | `TargetStatus`

### start

Initiates the request. When invoking DeployerRuntimeMBean#activate(String, String, String, DeploymentData, String, boolean) , DeployerRuntimeMBean#deactivate(String, DeploymentData, String, boolean) , DeployerRuntimeMBean#unprepare(String, DeploymentData, String, boolean) , or DeployerRuntimeMBean#remove(String, DeploymentData, String, boolean) with the startTask option set to false, this method is used to initiate the task. throws ManagementException if task is already started or any failures occur during task processing.

Operation Name | `"start"`
Parameters | `null`
Signature | `null`
Returns | `void`
Exceptions | `weblogic.management.ManagementException`