public class PrivilegedDistributedTask<T extends Serializable,R> extends AbstractDelegatingDistributedTask<T,R> implements Externalizable
AsyncResultFilter.Decision
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
_readExternal, _writeExternal, getFilter
getDelegatedTask, getRouting
public PrivilegedDistributedTask()
public PrivilegedDistributedTask(DistributedTask<T,R> task)
public PrivilegedDistributedTask(DistributedTask<T,R> task, AsyncResultFilter<T> filter)
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
Copyright © GigaSpaces.