public class CoherenceServerLifeCycleTaskRuntime extends DomainRuntimeMBeanDelegate implements CoherenceServerLifeCycleTaskRuntimeMBean
Modifier and Type | Field and Description |
---|---|
private long |
beginTime |
private java.lang.String |
description |
private long |
endTime |
private java.lang.Exception |
exception |
private boolean |
isRunning |
private weblogic.nodemanager.mbean.NodeManagerTask |
nmTask |
private static int |
num |
private java.lang.String |
operation |
private java.lang.String |
serverName |
private java.lang.String |
status |
descriptor, name, parent, registered, type
PROGRESS_FAILED, PROGRESS_PENDING, PROGRESS_PROCESSING, PROGRESS_SUCCESS
COMPLETED, FAILED, TASK_IN_PROGRESS
Constructor and Description |
---|
CoherenceServerLifeCycleTaskRuntime(CoherenceServerLifeCycleRuntime serverLifeCycle,
java.lang.String tName,
java.lang.String operationName) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Attempts to cancel this task.
|
long |
getBeginTime()
The time at which this task was started.
|
java.lang.String |
getDescription()
A description of this task.
|
long |
getEndTime()
The time at which this task was completed.
|
java.lang.Exception |
getError()
Returns an exception describing the error, if any, that occurred
while performing this task.
|
java.lang.String |
getOperation()
Gets the name of the method that was invoked on the ServerLifeCycleRuntime
to initiate this task.
|
TaskRuntimeMBean |
getParentTask()
The task of which this task is a part.
|
java.lang.String |
getProgress()
The progress of this task.
|
private static int |
getSequenceNumber() |
java.lang.String |
getServerName()
The name of the server.
|
java.lang.String |
getStatus()
The status of this task.
|
TaskRuntimeMBean[] |
getSubTasks()
An array of
TaskRuntimeMBeans that describes a set
of parallel tasks which are components of this task. |
boolean |
isRunning()
Indicates whether the task is still running.
|
boolean |
isSystemTask()
Indicates whether this task was initiated by the server versus a user.
|
void |
printLog(java.io.PrintWriter out)
Prints information that was logged during the processing of the
task (e.g.
|
void |
setEndTime(long time) |
void |
setError(java.lang.Exception e) |
void |
setIsRunning(boolean b) |
void |
setNMTask(weblogic.nodemanager.mbean.NodeManagerTask nmTask) |
void |
setStatus(java.lang.String status) |
void |
setSystemTask(boolean sys)
Makes this a system task,
|
getRegistrationManager
_createHelper, _postSet, _postSet, _postSet, _postSet, _postSet, addChild, addNotificationListener, addPropertyChangeListener, createChildCopy, getAttribute, getAttributes, getMBeanInfo, getMetaData, getName, getNotificationInfo, getObjectName, getParent, getParentAttribute, getPropertyChangeListeners, getRestParent, getType, invoke, isCachingDisabled, isEditable, isRegistered, pluralize, postDeregister, postRegister, preDeregister, preRegister, register, removeChild, removeNotificationListener, removePropertyChangeListener, setAttribute, setAttributes, setMetaData, setName, setParent, setRestParent, setRuntimeMBeanHelper, setType, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, preDeregister, removePropertyChangeListener
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
getAttribute, getAttributes, invoke, setAttribute, setAttributes
private long beginTime
private long endTime
private static int num
private java.lang.String description
private boolean isRunning
private java.lang.String status
private java.lang.Exception exception
private weblogic.nodemanager.mbean.NodeManagerTask nmTask
private java.lang.String serverName
private java.lang.String operation
public CoherenceServerLifeCycleTaskRuntime(CoherenceServerLifeCycleRuntime serverLifeCycle, java.lang.String tName, java.lang.String operationName) throws ManagementException
ManagementException
private static int getSequenceNumber()
public java.lang.String getServerName()
ServerLifeCycleTaskRuntimeMBean
getServerName
in interface ServerLifeCycleTaskRuntimeMBean
public java.lang.String getOperation()
ServerLifeCycleTaskRuntimeMBean
getOperation
in interface ServerLifeCycleTaskRuntimeMBean
public java.lang.String getDescription()
TaskRuntimeMBean
A description of this task.
getDescription
in interface TaskRuntimeMBean
public java.lang.String getStatus()
TaskRuntimeMBean
The status of this task.
getStatus
in interface TaskRuntimeMBean
ServerLifeCycleTaskRuntime.getStatus()
public boolean isRunning()
TaskRuntimeMBean
Indicates whether the task is still running.
isRunning
in interface TaskRuntimeMBean
ServerLifeCycleTaskRuntime.isRunning()
public long getBeginTime()
TaskRuntimeMBean
The time at which this task was started.
getBeginTime
in interface TaskRuntimeMBean
ServerLifeCycleTaskRuntime.getBeginTime()
public long getEndTime()
TaskRuntimeMBean
The time at which this task was completed.
A value of -1
indicates that the task is currently
running.
getEndTime
in interface TaskRuntimeMBean
public TaskRuntimeMBean[] getSubTasks()
TaskRuntimeMBean
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.
getSubTasks
in interface TaskRuntimeMBean
public TaskRuntimeMBean getParentTask()
TaskRuntimeMBean
The task of which this task is a part.
A value of null
indicates that this task is not a
subtask.
getParentTask
in interface TaskRuntimeMBean
TaskRuntimeMBean.getSubTasks()
public void cancel() throws java.lang.Exception
TaskRuntimeMBean
Attempts to cancel this task.
An exception is thrown to indicate failure to cancel the task. Not all tasks can be cancelled.
cancel
in interface TaskRuntimeMBean
java.lang.Exception
public void printLog(java.io.PrintWriter out)
TaskRuntimeMBean
Prints information that was logged during the processing of the task (e.g. server startup log) to the given Writer.
printLog
in interface TaskRuntimeMBean
public java.lang.Exception getError()
TaskRuntimeMBean
Returns an exception describing the error, if any, that occurred while performing this task.
getError
in interface TaskRuntimeMBean
public boolean isSystemTask()
TaskRuntimeMBean
Indicates whether this task was initiated by the server versus a user.
isSystemTask
in interface TaskRuntimeMBean
public void setSystemTask(boolean sys)
TaskRuntimeMBean
Makes this a system task,
setSystemTask
in interface TaskRuntimeMBean
sys
- The new systemTask valuepublic void setNMTask(weblogic.nodemanager.mbean.NodeManagerTask nmTask)
public void setError(java.lang.Exception e)
public void setStatus(java.lang.String status)
public void setEndTime(long time)
public void setIsRunning(boolean b)
public java.lang.String getProgress()
TaskRuntimeMBean
The progress of this task.
getProgress
in interface TaskRuntimeMBean