Search in sources :

Example 1 with MarkFileHeaderDecoder

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());
}
Also used : MarkFileHeaderDecoder(io.aeron.cluster.codecs.mark.MarkFileHeaderDecoder)

Example 2 with MarkFileHeaderDecoder

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());
}
Also used : MarkFileHeaderDecoder(io.aeron.cluster.codecs.mark.MarkFileHeaderDecoder)

Aggregations

MarkFileHeaderDecoder (io.aeron.cluster.codecs.mark.MarkFileHeaderDecoder)2