public class AdaptableExecutor extends java.lang.Object implements IExecutor
IExecutor
implementation that uses the AdaptableEVM
to add
external functions to certain points of an EVM based program.Constructor and Description |
---|
AdaptableExecutor(IExecutor delegatedExecutor,
AdaptableEVM evm) |
Modifier and Type | Method and Description |
---|---|
void |
endExecution(java.lang.String transactionID)
Signals the end of the execution,It receives the transaction ID as a parameter
|
void |
execute(java.util.Iterator<Activation<?>> activations)
executes a given set of EVM
Activation . |
Context |
getContext()
Returns the
Context of the executor. |
void |
startExecution(java.lang.String transactionID)
Signals the beginning of the execution,It receives the transaction ID as a parameter
|
public AdaptableExecutor(IExecutor delegatedExecutor, AdaptableEVM evm)
public void startExecution(java.lang.String transactionID)
IExecutor
startExecution
in interface IExecutor
public void execute(java.util.Iterator<Activation<?>> activations)
IExecutor
Activation
. Make sure that if this method is used, the call is enclosed by
startExecution
and endExecution
calls.public void endExecution(java.lang.String transactionID)
IExecutor
endExecution
in interface IExecutor
public Context getContext()
IExecutor
Context
of the executor. The return value should never be null.getContext
in interface IExecutor