use of io.aeron.cluster.codecs.mark.MarkFileHeaderDecoder in project aeron by real-logic.
the class ClusterMarkFile method loadControlProperties.
/**
* The control properties for communicating between the consensus module and the services.
*
* @return the control properties for communicating between the consensus module and the services.
*/
public ClusterNodeControlProperties loadControlProperties() {
final MarkFileHeaderDecoder decoder = new MarkFileHeaderDecoder();
decoder.wrap(headerDecoder.buffer(), headerDecoder.initialOffset(), MarkFileHeaderDecoder.BLOCK_LENGTH, MarkFileHeaderDecoder.SCHEMA_VERSION);
return new ClusterNodeControlProperties(decoder.serviceStreamId(), decoder.consensusModuleStreamId(), decoder.aeronDirectory(), decoder.controlChannel());
}
use of io.aeron.cluster.codecs.mark.MarkFileHeaderDecoder in project Aeron by real-logic.
the class ClusterMarkFile method loadControlProperties.
/**
* The control properties for communicating between the consensus module and the services.
*
* @return the control properties for communicating between the consensus module and the services.
*/
public ClusterNodeControlProperties loadControlProperties() {
final MarkFileHeaderDecoder decoder = new MarkFileHeaderDecoder();
decoder.wrap(headerDecoder.buffer(), headerDecoder.initialOffset(), MarkFileHeaderDecoder.BLOCK_LENGTH, MarkFileHeaderDecoder.SCHEMA_VERSION);
return new ClusterNodeControlProperties(decoder.serviceStreamId(), decoder.consensusModuleStreamId(), decoder.aeronDirectory(), decoder.controlChannel());
}
Aggregations