|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MBeanHome
interface.)java.lang.Object weblogic.management.runtime.RuntimeMBeanDelegate weblogic.management.runtime.TaskRuntimeMBeanImpl
Field Summary | |
protected long |
beginTime
|
protected String |
description
|
protected long |
endTime
|
protected Exception |
error
|
protected boolean |
running
|
protected String |
status
|
protected TaskRuntimeMBean[] |
subTasks
|
protected boolean |
systemTask
|
Constructor Summary | |
TaskRuntimeMBeanImpl(String nameArg,
weblogic.management.runtime.RuntimeMBean parentArg,
boolean registerNow)
Constructor for the RuntimeMBeanDelegate object |
Method Summary | |
void |
cancel()
Attempts to cancel this task. |
long |
getBeginTime()
Returns the time this task was started. |
String |
getDescription()
A description of this task. |
long |
getEndTime()
The time this task was completed. |
Exception |
getError()
Returns an exception describing the error, if any, that occurred while performing this Task. |
TaskRuntimeMBean |
getParentTask()
Returns the task of which this task is a part (see getSubTasks), or null if there is none. |
String |
getStatus()
The status of this task. |
TaskRuntimeMBean[] |
getSubTasks()
Returns an array of TaskRuntimes describing a set of parallel tasks which are components of this task. |
boolean |
isRunning()
Returns true if the Task is still running. |
boolean |
isSystemTask()
Indicates this task was initiated by the server. |
void |
printLog(PrintWriter out)
Prints information that was logged during the processing of the task (e.g. |
protected void |
setBeginTime(long beginTime)
|
protected void |
setDescription(String description)
|
protected void |
setEndTime(long endTime)
|
protected void |
setError(Exception error)
|
protected void |
setStatus(String status)
|
protected void |
setSubTasks(TaskRuntimeMBean[] subTasks)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
protected long beginTime
protected String description
protected long endTime
protected Exception error
protected boolean running
protected String status
protected TaskRuntimeMBean[] subTasks
protected boolean systemTask
Constructor Detail |
public TaskRuntimeMBeanImpl(String nameArg, weblogic.management.runtime.RuntimeMBean parentArg, boolean registerNow) throws weblogic.management.ManagementException
weblogic.management.ManagementException
Method Detail |
public void cancel() throws Exception
Attempts to cancel this task. An Exception is thrown to indicate failure to cancel the task. Not all tasks can be cancelled - do we also need isCancellable()?
cancel
in interface TaskRuntimeMBean
Exception
public long getBeginTime()
Returns the time this task was started.
getBeginTime
in interface TaskRuntimeMBean
public String getDescription()
A description of this task.
Returns a description of this task
getDescription
in interface TaskRuntimeMBean
public long getEndTime()
The time this task was completed.
Returns the time this task was completed. Returns -1 if the task is currently running.
getEndTime
in interface TaskRuntimeMBean
public Exception getError()
Returns an exception describing the error, if any, that occurred while performing this Task.
getError
in interface TaskRuntimeMBean
public TaskRuntimeMBean getParentTask()
Returns the task of which this task is a part (see getSubTasks), or null if there is none.
getParentTask
in interface TaskRuntimeMBean
TaskRuntimeMBean.getSubTasks()
public String getStatus()
The status of this task.
Returns the status of this Task.
getStatus
in interface TaskRuntimeMBean
public TaskRuntimeMBean[] getSubTasks()
Returns an array of TaskRuntimes describing a set of parallel tasks which are components of this task. Returns null if 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.
getSubTasks
in interface TaskRuntimeMBean
public boolean isRunning()
Returns true if the Task is still running.
isRunning
in interface TaskRuntimeMBean
public boolean isSystemTask()
Indicates this task was initiated by the server.
isSystemTask
in interface TaskRuntimeMBean
public void printLog(PrintWriter out)
Prints information that was logged during the processing of the task (e.g. server startup log) to the given Writer.
printLog
in interface TaskRuntimeMBean
out
-
protected void setBeginTime(long beginTime)
protected void setDescription(String description)
protected void setEndTime(long endTime)
protected void setError(Exception error)
protected void setStatus(String status)
protected void setSubTasks(TaskRuntimeMBean[] subTasks)
|
Documentation is available at http://e-docs.bea.com/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |