public class StorageServiceImpl extends SingletonSerializeAsToken implements TxWritableStorageService
Modifier and Type | Field and Description |
---|---|
java.util.List<? extends net.corda.core.node.services.FileUploader> |
uploaders |
Constructor and Description |
---|
StorageServiceImpl(AttachmentStorage attachments,
TransactionStorage validatedTransactions,
StateMachineRecordedTransactionMappingStorage stateMachineRecordedTransactionMapping) |
Modifier and Type | Method and Description |
---|---|
AttachmentStorage |
getAttachments()
Provides access to storage of arbitrary JAR files
|
StateMachineRecordedTransactionMappingStorage |
getStateMachineRecordedTransactionMapping() |
java.util.List<net.corda.core.node.services.FileUploader> |
getUploaders() |
TransactionStorage |
getValidatedTransactions()
A map of hash-
|
void |
initUploaders(java.util.List<? extends net.corda.core.node.services.FileUploader> uploadersList) |
void |
setUploaders(java.util.List<? extends net.corda.core.node.services.FileUploader> p) |
toToken
getValidatedTransactions
getAttachments, getStateMachineRecordedTransactionMapping, getUploaders, getValidatedTransactions
toToken
public java.util.List<? extends net.corda.core.node.services.FileUploader> uploaders
public StorageServiceImpl(AttachmentStorage attachments, TransactionStorage validatedTransactions, StateMachineRecordedTransactionMappingStorage stateMachineRecordedTransactionMapping)
attachments
- Provides access to storage of arbitrary JAR files(which may contain only data,no code).validatedTransactions
- A map of hash->tx where tx has been signature/contract validated and the states are known to be correct.The signatures aren't technically needed after that point,but we keep them around so that we can relaythe transaction data to other nodes that need it.public java.util.List<net.corda.core.node.services.FileUploader> getUploaders()
public void setUploaders(java.util.List<? extends net.corda.core.node.services.FileUploader> p)
public void initUploaders(java.util.List<? extends net.corda.core.node.services.FileUploader> uploadersList)
public AttachmentStorage getAttachments()
Provides access to storage of arbitrary JAR files
(which may contain only data,no code).
public TransactionStorage getValidatedTransactions()
A map of hash-
>tx where tx has been signature/contract validated and the states are known to be correct.The signatures aren't technically needed after that point,but we keep them around so that we can relaythe transaction data to other nodes that need it.
public StateMachineRecordedTransactionMappingStorage getStateMachineRecordedTransactionMapping()