|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)weblogic.deploy.api.spi.WebLogicDeploymentManager
Base interface for deployment task MBeans. These MBeans track the progress of a deployment task.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime. For
more information, see "Developing Manageable Applications with JMX"
on http://www.oracle.com/technology/documentation/index.html.
Field Summary | |
static int |
APP_NOTIFICATION_LEVEL
Deprecated. Indicates only application level deployment notifications are propogated to the admin server. |
static int |
DEFAULT_NOTIFICATION_LEVEL
Deprecated. The default notification level for deployments. |
static int |
DEPLOY_TASK_ACTIVATE
Deprecated. Activation task. |
static int |
DEPLOY_TASK_DEACTIVATE
Deprecated. Deactivate application. |
static int |
DEPLOY_TASK_DEPLOY
Deprecated. |
static int |
DEPLOY_TASK_DISTRIBUTE
Deprecated. Distributes application files to the target's staging area |
static int |
DEPLOY_TASK_PREPARE
Deprecated. Prepare task. |
static int |
DEPLOY_TASK_REDEPLOY
Deprecated. Redeploy unprepares, distribute and start an application on a target |
static int |
DEPLOY_TASK_REMOVE
Deprecated. Remove application from target. |
static int |
DEPLOY_TASK_START
Deprecated. Starts an already distributed application. |
static int |
DEPLOY_TASK_STOP
Deprecated. Stop unprepares a deployed application on a target |
static int |
DEPLOY_TASK_UNDEPLOY
Deprecated. |
static int |
DEPLOY_TASK_UNPREPARE
Deprecated. Deactivate and unload classes for application from target. |
static int |
DEPLOY_TASK_UPDATE
Deprecated. Updates a deployed application on a target. |
static int |
MODULE_NOTIFICATION_LEVEL
Deprecated. Indicates application and module level deployment notifications are propogated to the admin server. |
static int |
NONE_NOTIFICATION_LEVEL
Deprecated. Indicates no deployment notifications are propogated to the admin server. |
static int |
STATE_COMPLETED
Deprecated. Indicates the task completed successfully |
static int |
STATE_DEFERRED
Deprecated. |
static int |
STATE_FAILED
Deprecated. Indicates the task failed |
static int |
STATE_INITIALIZED
Deprecated. Indicates the task has been created but not started. |
static int |
STATE_RUNNING
Deprecated. Indicate the task is in progress |
Method Summary | |
void |
cancel()
Deprecated. Attempts to cancel the task. |
weblogic.management.deploy.TargetStatus |
findTarget(String target)
Deprecated. Lists the status for a specific target of this deployment. |
String |
getApplicationName()
Deprecated. The name for the application that was specified to DeployerRuntime.activate |
weblogic.management.deploy.DeploymentData |
getDeploymentData()
Deprecated. Provides the data associated with this task |
weblogic.management.configuration.BasicDeploymentMBean |
getDeploymentMBean()
Deprecated. |
ApplicationMBean |
getDeploymentObject()
Deprecated. Lists the Application MBean involved in this task. |
String |
getId()
Deprecated. Provides a reference id assigned to a task. |
int |
getNotificationLevel()
Deprecated. Provides the notification level applied to this task. |
String |
getSource()
Deprecated. Provides the name of the source file that was specified to DeployerRuntime.activate. |
int |
getState()
Deprecated. Provides notice of the overall state of this task. |
weblogic.management.deploy.TargetStatus[] |
getTargets()
Deprecated. Provides target based deployment status information for this deployment. |
int |
getTask()
Deprecated. Indicates a specific task associated with this MBean |
List |
getTaskMessages()
Deprecated. Provides an ordered list of messages generated for the task. |
boolean |
isInUse()
Deprecated. Indicates whether the MBean is free for deletion or timeout. |
boolean |
isNewSource()
Deprecated. Indicates whether a new source for the application was specified in an deployment request. |
void |
setNotificationLevel(int level)
Deprecated. Establishes a notification level for this task. |
void |
start()
Deprecated. Initiates the request. |
Methods inherited from interface weblogic.management.runtime.TaskRuntimeMBean |
getBeginTime, getDescription, getEndTime, getError, getParentTask, getStatus, getSubTasks, isRunning, isSystemTask |
Methods inherited from interface weblogic.management.WebLogicMBean |
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent |
Methods inherited from interface javax.management.DynamicMBean |
getAttribute, getAttributes, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.MBeanRegistration |
postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Field Detail |
public static final int APP_NOTIFICATION_LEVEL
setNotificationLevel(int)
,
Constant Field Valuespublic static final int DEFAULT_NOTIFICATION_LEVEL
setNotificationLevel(int)
,
Constant Field Valuespublic static final int DEPLOY_TASK_ACTIVATE
public static final int DEPLOY_TASK_DEACTIVATE
public static final int DEPLOY_TASK_DEPLOY
public static final int DEPLOY_TASK_DISTRIBUTE
public static final int DEPLOY_TASK_PREPARE
public static final int DEPLOY_TASK_REDEPLOY
public static final int DEPLOY_TASK_REMOVE
public static final int DEPLOY_TASK_START
public static final int DEPLOY_TASK_STOP
public static final int DEPLOY_TASK_UNDEPLOY
public static final int DEPLOY_TASK_UNPREPARE
public static final int DEPLOY_TASK_UPDATE
public static final int MODULE_NOTIFICATION_LEVEL
setNotificationLevel(int)
,
Constant Field Valuespublic static final int NONE_NOTIFICATION_LEVEL
setNotificationLevel(int)
,
Constant Field Valuespublic static final int STATE_COMPLETED
public static final int STATE_DEFERRED
public static final int STATE_FAILED
public static final int STATE_INITIALIZED
public static final int STATE_RUNNING
Method Detail |
public void cancel() throws Exception
Attempts to cancel the task. Any actions which have yet to start will be inhibited. Any completed actions will remain in place.
cancel
in interface TaskRuntimeMBean
Exception
public weblogic.management.deploy.TargetStatus findTarget(String target)
Lists the status for a specific target of this deployment.
target
- is the name of a target (server or cluster name)
public String getApplicationName()
The name for the application that was specified to DeployerRuntime.activate
public weblogic.management.deploy.DeploymentData getDeploymentData()
Provides the data associated with this task
public weblogic.management.configuration.BasicDeploymentMBean getDeploymentMBean()
public ApplicationMBean getDeploymentObject()
Lists the Application MBean involved in this task. This returns the Admin MBean, the one based on config.xml, that applies to all servers this application is associated with.
public String getId()
Provides a reference id assigned to a task.
public int getNotificationLevel()
Provides the notification level applied to this task.
public String getSource()
Provides the name of the source file that was specified to DeployerRuntime.activate.
public int getState()
Provides notice of the overall state of this task.
public weblogic.management.deploy.TargetStatus[] getTargets()
Provides target based deployment status information for this deployment. For distributed deployment, there is one TargetStatus for each target
public int getTask()
Indicates a specific task associated with this MBean
public List getTaskMessages()
Provides an ordered list of messages generated for the task. Each member in the list is a String object.
public boolean isInUse()
Indicates whether the MBean is free for deletion or timeout.
public boolean isNewSource()
public void setNotificationLevel(int level)
Establishes a notification level for this task. Deployment notifications are always sent to the local application MBean associated with this task, and are logged in the managed server log. The NotificationLevel attribute affects whether the notifications are also sent to the admin server. The valid levels are:
none: no deployment notifications are sent to the admin server
application: only application level notifications are sent to the admin server
module: application and module level notifications are sent to the admin server
level
- The new notificationLevel valueDeploymentNotification
,
NONE_NOTIFICATION_LEVEL
,
APP_NOTIFICATION_LEVEL
,
MODULE_NOTIFICATION_LEVEL
public void start() throws weblogic.management.ManagementException
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.
weblogic.management.ManagementException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |