interface XTask in module com::sun::star::task::

(Global Index)

Syntax

interface XTask : com::sun::star::task::XSimpleTask ;

Description

An object which supports this interface is a task or a job. The main reason to use tasks instead of normal method calls to delegate the control flow to a task manager (scheduler).
A task describe the task previously finished bevor this task can executed and the resources needed by this task.
To different task types are specified

It is allowed to combine these types.
The XTask implementation of the task manager try to aggregate the implementation of XTask in the createTask method. You should supply the XAggregation interface.

See also

XTaskManager

See also

XResource

See also

XSimpleTask

See also

concepts#Resourcen

See also

concepts#Prealloc
Resource Konzept

See also

concepts#Ondemand
Resource Konzept

Method Summary

getResources

getTypes Return zero or more constants out of the constant group TaskType. This group containe the possible task types.

getTaskManager The task manager of this task is returned.

getPredecessorTasks

getLockedResources

lockResource Lock the resource READONLY oder EXCLUSIVE or exclusive. Only lock resources with the XTask interface.

Method Details



getResources

Syntax

sequence< com::sun::star::task::XResource > getResources ();

getTypes

Syntax

long getTypes ();

Description

Return zero or more constants out of the constant group TaskType. This group containe the possible task types.

Returns

the task types.

See also

XTaskManager::createTask

getTaskManager

Syntax

com::sun::star::task::XTaskManager getTaskManager ();

Description

The task manager of this task is returned.

See also

XTaskManager::createTask

getPredecessorTasks

Syntax

sequence< com::sun::star::task::XTask > getPredecessorTasks ();

getLockedResources

Syntax

sequence< com::sun::star::task::XResource > getLockedResources ();

lockResource

Syntax

void lockResource (
com::sun::star::task::ResourceAccess iType )
raises ( com::sun::star::task::ResourceLockException , com::sun::star::lang::IllegalArgumentException );

Description

Lock the resource READONLY oder EXCLUSIVE or exclusive. Only lock resources with the XTask interface.

Parameter iType

READONLY or EXCLUSIVE.

Throws

java.lang.IllegalArgumentException ereignet sich, wenn type verkehrt ist.

See also

#READONLY

See also

#EXCLUSIVE

See also

#unlock(int,
int)

See also

#waitLock(int,
int)

See also

#lockRead(int)

See also

#lockExclusive(int)
Top of Page