CatapultServer  v0.5.0.1 (Elephant)
AuditConsumer.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace consumers {
25 
27  disruptor::ConstDisruptorConsumer CreateAuditConsumer(const std::string& auditDirectory);
28 }}
catapult::disruptor::ConsumerInput
Consumer input composed of a range of entities augmented with metadata.
Definition: ConsumerInput.h:30
InputUtils.h
catapult::io::RawFile
Wrapper for low-level i/o operations on files.
Definition: RawFile.h:49
catapult::io::OpenMode::Read_Write
Open file for both reading and writing. Removes the file if it exists.
catapult::disruptor::ConsumerInput::blocks
BlockElements & blocks()
Returns the block elements associated with this input.
Definition: ConsumerInput.cpp:75
m_id
size_t m_id
Definition: AuditConsumer.cpp:65
catapult::disruptor::ConsumerInput::source
InputSource source() const
Gets the source of this input.
Definition: ConsumerInput.cpp:97
m_auditDirectory
boost::filesystem::path m_auditDirectory
Definition: AuditConsumer.cpp:64
catapult::disruptor::ConsumerInput::hasBlocks
bool hasBlocks() const
Returns true if this input is not empty and has blocks.
Definition: ConsumerInput.cpp:63
catapult::utils::to_underlying_type
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
RawFile.h
catapult::disruptor::ConstDisruptorConsumer
DisruptorConsumerT< const ConsumerInput > ConstDisruptorConsumer
A const disruptor consumer function.
Definition: DisruptorConsumer.h:35
ConsumerResultFactory.h
DisruptorConsumer.h
catapult::io::FileBlockStorageMode::None
None.
catapult::io::Write
void Write(TIo &output, const utils::BasicBaseValue< TValue, TTag, TBaseValue > &value)
Writes base value into output.
Definition: PodIoUtils.h:30
catapult::consumers::Abort
constexpr disruptor::ConsumerResult Abort(validators::ValidationResult validationResult)
Creates an aborted consumer result around validationResult.
Definition: ConsumerResultFactory.h:34
catapult::model::VerifiableEntity
Binary layout for a verifiable (with signature) entity.
Definition: VerifiableEntity.h:45
catapult::disruptor::ConsumerInput::empty
bool empty() const
Returns true if this input is empty and has no elements.
Definition: ConsumerInput.cpp:59
catapult
Definition: AddressExtractionExtension.cpp:28
PodIoUtils.h
catapult::disruptor::ConsumerInput::transactions
TransactionElements & transactions()
Returns the (free) transaction elements associated with this input.
Definition: ConsumerInput.cpp:86
catapult::io::Write32
void Write32(TIo &output, uint32_t value)
Writes value into output.
Definition: PodIoUtils.h:42
catapult::io::RawFile::write
void write(const RawBuffer &dataBuffer)
Definition: RawFile.cpp:305
catapult::disruptor::ConsumerInput::sourcePublicKey
const Key & sourcePublicKey() const
Gets the (optional) source public key.
Definition: ConsumerInput.cpp:101
catapult::consumers::CreateAuditConsumer
disruptor::ConstDisruptorConsumer CreateAuditConsumer(const std::string &auditDirectory)
Creates an audit consumer that saves all consumer inputs to auditDirectory.
Definition: AuditConsumer.cpp:69
AuditConsumer.h
catapult::consumers::Continue
constexpr disruptor::ConsumerResult Continue()
Creates a continuation consumer result.
Definition: ConsumerResultFactory.h:29
catapult::model::SizePrefixedEntity::Size
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33
catapult::disruptor::ConsumerResult
Result of a consumer operation.
Definition: DisruptorTypes.h:63