I
- Data container type for input tuples.O
- Data container type for output tuples.public class InvocationContext<I,O> extends AbstractContext<I,O>
Oplet
's execution context.Constructor and Description |
---|
InvocationContext(java.lang.String id,
JobContext job,
RuntimeServices services,
int inputCount,
java.util.List<? extends Consumer<O>> outputs,
java.util.List<OutputPortContext> outputContext)
Creates an
InvocationContext with the specified parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Get the unique identifier (within the running job)
for this oplet.
|
int |
getInputCount()
Get the number of connected inputs to this oplet.
|
java.util.List<OutputPortContext> |
getOutputContext()
Get the oplet's output port context information.
|
int |
getOutputCount()
Get the number of connected outputs to this oplet.
|
java.util.List<? extends Consumer<O>> |
getOutputs()
Get the mechanism to submit tuples on an output port.
|
getJobContext, getService, uniquify
public InvocationContext(java.lang.String id, JobContext job, RuntimeServices services, int inputCount, java.util.List<? extends Consumer<O>> outputs, java.util.List<OutputPortContext> outputContext)
InvocationContext
with the specified parameters.id
- the oplet's unique identifierjob
- the current job's contextservices
- service provider for the current jobinputCount
- number of oplet's inputsoutputs
- list of oplet's outputsoutputContext
- list of oplet's output port context infopublic java.lang.String getId()
OpletContext
public java.util.List<? extends Consumer<O>> getOutputs()
OpletContext
public int getInputCount()
OpletContext
public int getOutputCount()
OpletContext
public java.util.List<OutputPortContext> getOutputContext()
OpletContext
OutputPortContext
, one for each output port.Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641