Class ApiModule<O>
java.lang.Object
com.scaleoutsoftware.modules.hosting.ApiModule<O>
- Type Parameters:
O- the SOSS object type.
An ApiModule is used for handling user create APIs defined by
SossApiMethod.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddForEachOperation(String operationName, com.scaleoutsoftware.modules.abstractions.ForEachApiProcessor<O> processor, ParallelOperationOptions<O, Void> options) Adds a for-each operation to the API module.<R> voidaddReduceOperation(String operationName, com.scaleoutsoftware.modules.abstractions.ReduceApiProcessor<O, R> processor, ParallelOperationOptions<O, R> options) Adds a reduce operation to the API Module.
-
Method Details
-
addReduceOperation
public <R> void addReduceOperation(String operationName, com.scaleoutsoftware.modules.abstractions.ReduceApiProcessor<O, R> processor, ParallelOperationOptions<O, R> options) Adds a reduce operation to the API Module.- Type Parameters:
R- the result object type.- Parameters:
operationName- the reduce operation name.processor- the reduce processor implementation.options- the parallel operation options.
-
addForEachOperation
public void addForEachOperation(String operationName, com.scaleoutsoftware.modules.abstractions.ForEachApiProcessor<O> processor, ParallelOperationOptions<O, Void> options) Adds a for-each operation to the API module.- Parameters:
operationName- the for-each operation name.processor- the for each API processor.options- the parallel operation options.
-