Class TaskWorkStateType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.TaskWorkStateType
-
- All Implemented Interfaces:
Containerable
,Serializable
,Cloneable
public class TaskWorkStateType extends Object implements Serializable, Cloneable, Containerable
Describes the task work state: what has been processed, what is being processed and what is yet to be done. Useful for work distribution as well as for stateful suspend+resume feature.Java class for TaskWorkStateType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TaskWorkStateType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="bucket" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}WorkBucketType" maxOccurs="unbounded" minOccurs="0"/> <element name="numberOfBuckets" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> <element name="allWorkComplete" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_ALL_WORK_COMPLETE
static ItemName
F_BUCKET
static ItemName
F_NUMBER_OF_BUCKETS
-
Constructor Summary
Constructors Constructor Description TaskWorkStateType()
TaskWorkStateType(PrismContext prismContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskWorkStateType
allWorkComplete(Boolean value)
PrismContainerValue
asPrismContainerValue()
WorkBucketType
beginBucket()
TaskWorkStateType
bucket(WorkBucketType value)
TaskWorkStateType
clone()
List<WorkBucketType>
createBucketList()
<X> X
end()
boolean
equals(Object object)
List<WorkBucketType>
getBucket()
Integer
getNumberOfBuckets()
int
hashCode()
Boolean
isAllWorkComplete()
TaskWorkStateType
numberOfBuckets(Integer value)
void
setAllWorkComplete(Boolean value)
void
setNumberOfBuckets(Integer value)
void
setupContainerValue(PrismContainerValue containerValue)
Setup value to the containerable representation.String
toString()
-
-
-
Constructor Detail
-
TaskWorkStateType
public TaskWorkStateType()
-
TaskWorkStateType
public TaskWorkStateType(PrismContext prismContext)
-
-
Method Detail
-
asPrismContainerValue
public PrismContainerValue asPrismContainerValue()
- Specified by:
asPrismContainerValue
in interfaceContainerable
-
setupContainerValue
public void setupContainerValue(PrismContainerValue containerValue)
Description copied from interface:Containerable
Setup value to the containerable representation. This is used to after (empty) containerable is created to initialize it with a correct prism container value. Note: This method DOES NOT change the container value parent.- Specified by:
setupContainerValue
in interfaceContainerable
-
end
public <X> X end()
-
getBucket
public List<WorkBucketType> getBucket()
-
createBucketList
public List<WorkBucketType> createBucketList()
-
getNumberOfBuckets
public Integer getNumberOfBuckets()
-
setNumberOfBuckets
public void setNumberOfBuckets(Integer value)
-
isAllWorkComplete
public Boolean isAllWorkComplete()
-
setAllWorkComplete
public void setAllWorkComplete(Boolean value)
-
bucket
public TaskWorkStateType bucket(WorkBucketType value)
-
beginBucket
public WorkBucketType beginBucket()
-
numberOfBuckets
public TaskWorkStateType numberOfBuckets(Integer value)
-
allWorkComplete
public TaskWorkStateType allWorkComplete(Boolean value)
-
clone
public TaskWorkStateType clone()
-
-