Class WorkBucketType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.WorkBucketType
-
- All Implemented Interfaces:
Containerable
,DebugDumpable
,Serializable
,Cloneable
public class WorkBucketType extends Object implements Serializable, Cloneable, Containerable
Description of a state and content of a work bucket. Buckets are used e.g. to distribute workload in multi-node tasks or to implement stateful suspend+resume.Java class for WorkBucketType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="WorkBucketType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="sequentialNumber" type="{http://www.w3.org/2001/XMLSchema}int"/> <element name="state" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}WorkBucketStateType"/> <element name="content" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}AbstractWorkBucketContentType"/> <element name="workerRef" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectReferenceType" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}long" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_CONTENT
static ItemName
F_SEQUENTIAL_NUMBER
static ItemName
F_STATE
static ItemName
F_WORKER_REF
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description WorkBucketType()
WorkBucketType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Containerable
cloneWithoutId, debugDump
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Constructor Detail
-
WorkBucketType
public WorkBucketType()
-
WorkBucketType
public WorkBucketType(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()
-
getSequentialNumber
public int getSequentialNumber()
-
setSequentialNumber
public void setSequentialNumber(int value)
-
getState
public WorkBucketStateType getState()
-
setState
public void setState(WorkBucketStateType value)
-
getContent
public AbstractWorkBucketContentType getContent()
-
setContent
public void setContent(AbstractWorkBucketContentType value)
-
getWorkerRef
public ObjectReferenceType getWorkerRef()
-
setWorkerRef
public void setWorkerRef(ObjectReferenceType value)
-
getId
public Long getId()
-
setId
public void setId(Long value)
-
sequentialNumber
public WorkBucketType sequentialNumber(int value)
-
state
public WorkBucketType state(WorkBucketStateType value)
-
content
public WorkBucketType content(AbstractWorkBucketContentType value)
-
beginContent
public AbstractWorkBucketContentType beginContent()
-
workerRef
public WorkBucketType workerRef(ObjectReferenceType value)
-
workerRef
public WorkBucketType workerRef(String oid, QName type)
-
workerRef
public WorkBucketType workerRef(String oid, QName type, QName relation)
-
beginWorkerRef
public ObjectReferenceType beginWorkerRef()
-
id
public WorkBucketType id(Long value)
-
clone
public WorkBucketType clone()
-
-