예제 #1
0
        public ClusterNodeControlProperties LoadControlProperties()
        {
            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()));
        }