Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: task ::

interface XTask

Base Interface
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


Methods' 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.

Methods' Details

getResources
 
sequence< com::sun::star::task::XResource >
getResources();
getTypes
 
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
 
com::sun::star::task::XTaskManager
getTaskManager();
Description
The task manager of this task is returned.
See also
XTaskManager::createTask
getPredecessorTasks
 
sequence< com::sun::star::task::XTask >
getPredecessorTasks();
getLockedResources
 
sequence< com::sun::star::task::XResource >
getLockedResources();
lockResource
 
void
lockResource(
[ in ] 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