Ejemplo n.º 1
0
 public void FetchFrom(KafkaReader reader)
 {
     MemberId   = reader.ReadString();
     ClientId   = reader.ReadString();
     ClientHost = reader.ReadString();
     //MemberMetadata   = reader.ReadBytes();
     //MemberAssignment = reader.ReadBytes();
     MemberMetadata = new JoinGroupMemberMetadata();
     MemberMetadata.FetchFrom(reader);
     MemberAssignment = new SyncGroupMemberAssignment();
     MemberAssignment.FetchFrom(reader);
 }
Ejemplo n.º 2
0
 protected override void DeserializeContent(KafkaReader reader)
 {
     //Possible Error Codes:
     //* GROUP_COORDINATOR_NOT_AVAILABLE (15)
     //* NOT_COORDINATOR_FOR_GROUP (16)
     //* ILLEGAL_GENERATION (22)
     //* UNKNOWN_MEMBER_ID (25)
     //* REBALANCE_IN_PROGRESS (27)
     //* GROUP_AUTHORIZATION_FAILED (30)
     ErrorCode        = (ErrorCode)reader.ReadInt16();
     MemberAssignment = new SyncGroupMemberAssignment();
     MemberAssignment.FetchFrom(reader);
 }
Ejemplo n.º 3
0
 public SyncGroupRequest(String groupId, Int32 generationId, String memberId, SyncGroupMemberAssignment memberAssignment)
     : base(ApiKey.SyncGroupRequest)
 {
     GroupId          = groupId;
     GenerationId     = generationId;
     MemberId         = memberId;
     GroupAssignments = new[] {
         new SyncGroupGroupAssignment {
             MemberId         = memberId,
             MemberAssignment = memberAssignment,
         }
     };
 }
Ejemplo n.º 4
0
 public void FetchFrom(KafkaReader reader)
 {
     MemberId         = reader.ReadString();
     MemberAssignment = new SyncGroupMemberAssignment();
     MemberAssignment.FetchFrom(reader);
 }