public class JacksonBasedLedgerTracer extends LedgerTracerBase<com.fasterxml.jackson.databind.JsonNode>
inputs, outputs
Constructor and Description |
---|
JacksonBasedLedgerTracer(AssetScanner scanner) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOutput(java.lang.String assetId) |
java.util.Map<java.lang.String,java.lang.String> |
getOutputs() |
java.util.List<Asset<com.fasterxml.jackson.databind.JsonNode>> |
scan(AssetFilter filter)
Retrieves a list of
Asset entries from the ledger with the specified AssetFilter . |
void |
setInput(java.lang.String input) |
void |
setInput(java.lang.String assetId,
com.scalar.dl.ledger.statemachine.InternalAsset asset) |
get, put
public JacksonBasedLedgerTracer(AssetScanner scanner)
public void setInput(java.lang.String input)
setInput
in class LedgerTracerBase<com.fasterxml.jackson.databind.JsonNode>
public void setInput(java.lang.String assetId, com.scalar.dl.ledger.statemachine.InternalAsset asset)
setInput
in class LedgerTracerBase<com.fasterxml.jackson.databind.JsonNode>
public java.lang.String getOutput(java.lang.String assetId)
getOutput
in class LedgerTracerBase<com.fasterxml.jackson.databind.JsonNode>
public java.util.Map<java.lang.String,java.lang.String> getOutputs()
getOutputs
in class LedgerTracerBase<com.fasterxml.jackson.databind.JsonNode>
public java.util.List<Asset<com.fasterxml.jackson.databind.JsonNode>> scan(AssetFilter filter)
Ledger
Asset
entries from the ledger with the specified AssetFilter
.filter
- a condition to filter asset