Package com.uc4.communication.requests
Class GroupMonitor.Task
java.lang.Object
com.uc4.communication.requests.GroupMonitor.Task
- Enclosing class:
- GroupMonitor
This class represents a task in the Group monitor.
-
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
In contrast togetName
this method returns always the alias if used.getName()
Returns the name of the object or an alias if used.In contrast to thegetName
this method returns always the object name.Returns the type of the Object.Returns the platform of the object or an empty String if a platform is not defined for the object.int
Return the priority of the task.int
getRunID()
Returns the RunID of the task in the monitor or0
if the task has not been executed.Return the start time of the task.Returns a description of the used icon for the specific task status.Returns the status of this task as String which is independent on the logon language.final int
Returns the status of the task as integer.Returns a description of the status.getUser()
Return the user of the task.boolean
Return that the task can be rollback or not.
-
Method Details
-
isRollback
public boolean isRollback()Return that the task can be rollback or not.- Returns:
- rollback
-
getUser
Return the user of the task.- Returns:
- user
-
getPriority
public int getPriority()Return the priority of the task.- Returns:
- Priority
-
getStartTime
Return the start time of the task.- Returns:
- Time for task start in hours and minutes.
-
getRunID
public int getRunID()Returns the RunID of the task in the monitor or0
if the task has not been executed.- Returns:
- RunID of the task or zero
-
getObjectType
Returns the type of the Object.- Returns:
- Object type
-
getName
Returns the name of the object or an alias if used. UsegetObjectName
andgetAlias
if you want exclusive information.- Returns:
- name of object or alias.
-
getStatusText
Returns a description of the status. This return value depends on the logon language.- Returns:
- description for task status. Possible return values are
described in the status:
AbstractTask.getStatusCode()
-
getStatusCode
public final int getStatusCode()Returns the status of the task as integer.- Returns:
- Status code or
-1
in case of an error
-
getPlatform
Returns the platform of the object or an empty String if a platform is not defined for the object.- Returns:
- Platform or an empty String
-
getStatus
Returns the status of this task as String which is independent on the logon language.- Returns:
- status, possible return values are described in the status table:
AbstractTask.getStatusCode()
-
getStateIcon
Returns a description of the used icon for the specific task status.- Returns:
- description of the state icon
-
getAlias
In contrast togetName
this method returns always the alias if used.- Returns:
- the alias as String or empty String no alias is used.
-
getObjectName
In contrast to thegetName
this method returns always the object name.- Returns:
- the name of the object.
-