|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.executor.support.SimpleDelegatingTask<T> org.openspaces.core.executor.support.AbstractDelegatingDistributedTask<T,R> org.openspaces.core.executor.support.PrivilegedDistributedTask<T,R>
public class PrivilegedDistributedTask<T extends Serializable,R>
A delegating distrubuted task (with an optional filter) that runs under established access control settings.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.gigaspaces.async.AsyncResultFilter |
---|
AsyncResultFilter.Decision |
Constructor Summary | |
---|---|
PrivilegedDistributedTask()
Here for Externalizable. |
|
PrivilegedDistributedTask(DistributedTask<T,R> task)
Constructs a new privileged task wrapping the actual task to execute. |
|
PrivilegedDistributedTask(DistributedTask<T,R> task,
AsyncResultFilter<T> filter)
Constructs a new privileged task wrapping the actual task and filter to execute. |
Method Summary | |
---|---|
T |
execute()
Exeutes the provided task under access controls. |
AsyncResultFilter.Decision |
onResult(AsyncResultFilterEvent<T> event)
Executes the filter (if provided) under access controls. |
void |
readExternal(ObjectInput in)
|
R |
reduce(List<AsyncResult<T>> results)
Reduces the provided task under access controls. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.openspaces.core.executor.support.AbstractDelegatingDistributedTask |
---|
_readExternal, _writeExternal, getFilter |
Methods inherited from class org.openspaces.core.executor.support.SimpleDelegatingTask |
---|
getDelegatedTask, getRouting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivilegedDistributedTask()
public PrivilegedDistributedTask(DistributedTask<T,R> task)
public PrivilegedDistributedTask(DistributedTask<T,R> task, AsyncResultFilter<T> filter)
Method Detail |
---|
public T execute() throws Exception
execute
in interface Task<T extends Serializable>
execute
in class SimpleDelegatingTask<T extends Serializable>
Exception
- if unable to compute a resultpublic R reduce(List<AsyncResult<T>> results) throws Exception
reduce
in interface AsyncResultsReducer<T extends Serializable,R>
Exception
public AsyncResultFilter.Decision onResult(AsyncResultFilterEvent<T> event)
onResult
in interface AsyncResultFilter<T extends Serializable>
onResult
in class AbstractDelegatingDistributedTask<T extends Serializable,R>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |