Class MembershipSyncRequest
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class MembershipSyncRequest extends SpecificRecordBase implements SpecificRecord
Membership data synchronization request which will be processed by the MGM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MembershipSyncRequest.Builder
RecordBuilder for MembershipSyncRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public DistributionMetaData
distributionMetaData
public SecureHash
membersHash
public BloomFilter
bloomFilter
public SecureHash
groupParametersHash
public SecureHash
cpiAllowlistHash
-
Constructor Summary
Constructors Constructor Description MembershipSyncRequest()
Default constructor. MembershipSyncRequest(DistributionMetaData distributionMetaData, SecureHash membersHash, BloomFilter bloomFilter, SecureHash groupParametersHash, SecureHash cpiAllowlistHash)
All-args constructor.
-
Method Summary
Modifier and Type Method Description DistributionMetaData
getDistributionMetaData()
Gets the value of the 'distributionMetaData' field. void
setDistributionMetaData(DistributionMetaData value)
Sets the value of the 'distributionMetaData' field. SecureHash
getMembersHash()
Gets the value of the 'membersHash' field. void
setMembersHash(SecureHash value)
Sets the value of the 'membersHash' field. BloomFilter
getBloomFilter()
Gets the value of the 'bloomFilter' field. void
setBloomFilter(BloomFilter value)
Sets the value of the 'bloomFilter' field. SecureHash
getGroupParametersHash()
Gets the value of the 'groupParametersHash' field. void
setGroupParametersHash(SecureHash value)
Sets the value of the 'groupParametersHash' field. SecureHash
getCpiAllowlistHash()
Gets the value of the 'cpiAllowlistHash' field. void
setCpiAllowlistHash(SecureHash value)
Sets the value of the 'cpiAllowlistHash' field. static Schema
getClassSchema()
static BinaryMessageEncoder<MembershipSyncRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<MembershipSyncRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<MembershipSyncRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this MembershipSyncRequest to a ByteBuffer. static MembershipSyncRequest
fromByteBuffer(ByteBuffer b)
Deserializes a MembershipSyncRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static MembershipSyncRequest.Builder
newBuilder()
Creates a new MembershipSyncRequest RecordBuilder. static MembershipSyncRequest.Builder
newBuilder(MembershipSyncRequest.Builder other)
Creates a new MembershipSyncRequest RecordBuilder by copying an existing Builder. static MembershipSyncRequest.Builder
newBuilder(MembershipSyncRequest other)
Creates a new MembershipSyncRequest RecordBuilder by copying an existing MembershipSyncRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MembershipSyncRequest
MembershipSyncRequest()
Default constructor.
-
MembershipSyncRequest
MembershipSyncRequest(DistributionMetaData distributionMetaData, SecureHash membersHash, BloomFilter bloomFilter, SecureHash groupParametersHash, SecureHash cpiAllowlistHash)
All-args constructor.- Parameters:
distributionMetaData
- Basic information about the request.membersHash
- Hash value to help validate the member requesting for sync.bloomFilter
- Bloom filter to calculate missing MemberInfo entries.groupParametersHash
- The hash value of the latest GroupParameters the member can see.cpiAllowlistHash
- The hash representation of the CpiVersions which are allowed on the member side.
-
-
Method Detail
-
getDistributionMetaData
DistributionMetaData getDistributionMetaData()
Gets the value of the 'distributionMetaData' field.
-
setDistributionMetaData
void setDistributionMetaData(DistributionMetaData value)
Sets the value of the 'distributionMetaData' field. Basic information about the request.
- Parameters:
value
- the value to set.
-
getMembersHash
SecureHash getMembersHash()
Gets the value of the 'membersHash' field.
-
setMembersHash
void setMembersHash(SecureHash value)
Sets the value of the 'membersHash' field. Hash value to help validate the member requesting for sync.
- Parameters:
value
- the value to set.
-
getBloomFilter
BloomFilter getBloomFilter()
Gets the value of the 'bloomFilter' field.
-
setBloomFilter
void setBloomFilter(BloomFilter value)
Sets the value of the 'bloomFilter' field. Bloom filter to calculate missing MemberInfo entries.
- Parameters:
value
- the value to set.
-
getGroupParametersHash
SecureHash getGroupParametersHash()
Gets the value of the 'groupParametersHash' field.
-
setGroupParametersHash
void setGroupParametersHash(SecureHash value)
Sets the value of the 'groupParametersHash' field. The hash value of the latest GroupParameters the member can see.
- Parameters:
value
- the value to set.
-
getCpiAllowlistHash
SecureHash getCpiAllowlistHash()
Gets the value of the 'cpiAllowlistHash' field.
-
setCpiAllowlistHash
void setCpiAllowlistHash(SecureHash value)
Sets the value of the 'cpiAllowlistHash' field. The hash representation of the CpiVersions which are allowed on the member side.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<MembershipSyncRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<MembershipSyncRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<MembershipSyncRequest> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this MembershipSyncRequest to a ByteBuffer.
-
fromByteBuffer
static MembershipSyncRequest fromByteBuffer(ByteBuffer b)
Deserializes a MembershipSyncRequest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static MembershipSyncRequest.Builder newBuilder()
Creates a new MembershipSyncRequest RecordBuilder.
-
newBuilder
static MembershipSyncRequest.Builder newBuilder(MembershipSyncRequest.Builder other)
Creates a new MembershipSyncRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static MembershipSyncRequest.Builder newBuilder(MembershipSyncRequest other)
Creates a new MembershipSyncRequest RecordBuilder by copying an existing MembershipSyncRequest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-