Package com.uc4.api
Class Task
- java.lang.Object
-
- com.uc4.api.AbstractTask
-
- com.uc4.api.Task
-
- All Implemented Interfaces:
HasAlias
public class Task extends AbstractTask
This class contains a description of a single task in theActivityList
.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
consumption
protected float
cpuTime
protected DateTime
estimatedEndTime
protected int
hirarchicalParent
protected java.lang.String
modificationFlag
protected int
priority
protected java.lang.String
processId
protected int
processorRunID
protected boolean
processorTask
protected boolean
statistics
protected java.lang.String
zduVersion
-
Fields inherited from class com.uc4.api.AbstractTask
activationTime, alias, archiveKey1, archiveKey2, cauVersion, comment, endTime, host, intAccount, monitoredTask, name, objectName, parentRunID, periodDescription, platform, queue, remoteStatus, returnCode, rollback, runID, runtime, startTime, startType, state, stateIcon, stateWithinParent, statusCode, statusText, type, typeIcon, userId, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Task(ConnectionAttributes session)
Task(org.w3c.dom.Element row, ConnectionAttributes session)
Constructs a newTask
using the specified element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Two tasks are equal if their RunID is equal.int
getCompareValue()
Value to compare at file events console event: eventcounter job/ft: status counter, also indicates which client is deletedint
getConsumption()
float
getCpuTime()
Returns the consumed CPU time in seconds.DateTime
getEstimatedEndTime()
Returns the Estimated End Timeint
getHirarchicalParent()
Returns the RunID of the of hirarchical parent.java.lang.String
getModificationFlag()
Returns the value of the modification flag column.int
getPriority()
Returns the priority of the task.java.lang.String
getProcessId()
Returns the process identification on OS level during execution.int
getProcessorRunID()
Returns the processor RunID.java.lang.String
getStatusWithinParentText()
Returns the state of the task within his parent task which can be a Workflow of any type: Standard, IF or ForEach.java.lang.String
getUser()
Deprecated.use getUserName() insteadjava.lang.String
getZDUVersion()
int
hashCode()
The RunID of a task is used as hash code.boolean
isProcessorTask()
Returnstrue
if this task is a processor task.boolean
isStatistics()
Returns the source of the task if it has been created with the TaskList request.java.lang.String
toString()
Returns a string which contains the name and the RunID of this task.-
Methods inherited from class com.uc4.api.AbstractTask
getActivationTime, getAlias, getArchive1, getArchive2, getArchiveKey1, getArchiveKey2, getCauVersion, getClient, getEndTime, getHost, getIntAccount, getName, getObjectName, getParentRunID, getPeriodDescription, getPlatform, getQueue, getRemoteStatus, getReturnCode, getRunID, getRuntime, getRuntimeInMillis, getStart, getStartTime, getStartType, getStateIcon, getStatus, getStatusCode, getStatusIcon, getStatusText, getTaskClient, getType, getTypeIcon, getUserId, getUserName, getVersion, hasComment, initObjectNameAndAlias, isMonitoredTask, isRollback, setUserInfo
-
-
-
-
Field Detail
-
priority
protected int priority
-
processId
protected java.lang.String processId
-
cpuTime
protected float cpuTime
-
consumption
protected int consumption
-
processorRunID
protected int processorRunID
-
hirarchicalParent
protected int hirarchicalParent
-
modificationFlag
protected java.lang.String modificationFlag
-
processorTask
protected boolean processorTask
-
zduVersion
protected java.lang.String zduVersion
-
statistics
protected boolean statistics
-
estimatedEndTime
protected DateTime estimatedEndTime
-
-
Constructor Detail
-
Task
protected Task(ConnectionAttributes session)
-
Task
public Task(org.w3c.dom.Element row, ConnectionAttributes session)
Constructs a newTask
using the specified element.- Parameters:
row
- Elementsession
- Session
-
-
Method Detail
-
isProcessorTask
public boolean isProcessorTask()
Returnstrue
if this task is a processor task.- Returns:
- Is processor?
-
getModificationFlag
public java.lang.String getModificationFlag()
Returns the value of the modification flag column.- Returns:
- Name of the user who modified a workflow or an empty String.
-
getConsumption
public int getConsumption()
- Returns:
- Consumption which is set for this task
-
getHirarchicalParent
public int getHirarchicalParent()
Returns the RunID of the of hirarchical parent.- Returns:
- Parent RunID
-
getCpuTime
public float getCpuTime()
Returns the consumed CPU time in seconds.- Returns:
- CPU time
-
getPriority
public int getPriority()
Returns the priority of the task.- Returns:
- priority
-
getProcessorRunID
public int getProcessorRunID()
Returns the processor RunID.- Returns:
- processor RunID
-
getProcessId
public java.lang.String getProcessId()
Returns the process identification on OS level during execution.- Returns:
- Process ID
-
getStatusWithinParentText
public final java.lang.String getStatusWithinParentText()
Returns the state of the task within his parent task which can be a Workflow of any type: Standard, IF or ForEach.- Returns:
- A readable translated state as String
-
getZDUVersion
public java.lang.String getZDUVersion()
- Returns:
- Target or Base version
-
isStatistics
public boolean isStatistics()
Returns the source of the task if it has been created with the TaskList request. This request returns a combined view on activities and statistics.- Returns:
- true if the source is from statistics, false if the source of the task is the activity list.
-
getEstimatedEndTime
public DateTime getEstimatedEndTime()
Returns the Estimated End Time- Returns:
- Estimated End Time, a DateTime
-
getUser
@Deprecated public java.lang.String getUser()
Deprecated.use getUserName() insteadReturns the name of the User object of the person who has started the task.- Returns:
- UC4 User
-
equals
public boolean equals(java.lang.Object other)
Two tasks are equal if their RunID is equal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- Task- Returns:
true
if two tasks have the same RundID,false
otherwise
-
hashCode
public int hashCode()
The RunID of a task is used as hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- RunID
-
toString
public java.lang.String toString()
Returns a string which contains the name and the RunID of this task.- Overrides:
toString
in classAbstractTask
- Returns:
- Name and RunID of the task.
-
getCompareValue
public int getCompareValue()
Value to compare at file events console event: eventcounter job/ft: status counter, also indicates which client is deleted- Returns:
- compare value
-
-