Class MembershipRegistrationRequest
-
- 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 MembershipRegistrationRequest extends SpecificRecordBase implements SpecificRecord
Request to register with an MGM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MembershipRegistrationRequest.Builder
RecordBuilder for MembershipRegistrationRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
registrationId
public SignedData
memberContext
public SignedData
registrationContext
public Long
serial
-
Constructor Summary
Constructors Constructor Description MembershipRegistrationRequest()
Default constructor. MembershipRegistrationRequest(String registrationId, SignedData memberContext, SignedData registrationContext, Long serial)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getRegistrationId()
Gets the value of the 'registrationId' field. void
setRegistrationId(String value)
Sets the value of the 'registrationId' field. SignedData
getMemberContext()
Gets the value of the 'memberContext' field. void
setMemberContext(SignedData value)
Sets the value of the 'memberContext' field. SignedData
getRegistrationContext()
Gets the value of the 'registrationContext' field. void
setRegistrationContext(SignedData value)
Sets the value of the 'registrationContext' field. Long
getSerial()
Gets the value of the 'serial' field. void
setSerial(Long value)
Sets the value of the 'serial' field. static Schema
getClassSchema()
static BinaryMessageEncoder<MembershipRegistrationRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<MembershipRegistrationRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<MembershipRegistrationRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this MembershipRegistrationRequest to a ByteBuffer. static MembershipRegistrationRequest
fromByteBuffer(ByteBuffer b)
Deserializes a MembershipRegistrationRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static MembershipRegistrationRequest.Builder
newBuilder()
Creates a new MembershipRegistrationRequest RecordBuilder. static MembershipRegistrationRequest.Builder
newBuilder(MembershipRegistrationRequest.Builder other)
Creates a new MembershipRegistrationRequest RecordBuilder by copying an existing Builder. static MembershipRegistrationRequest.Builder
newBuilder(MembershipRegistrationRequest other)
Creates a new MembershipRegistrationRequest RecordBuilder by copying an existing MembershipRegistrationRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, 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
-
MembershipRegistrationRequest
MembershipRegistrationRequest()
Default constructor.
-
MembershipRegistrationRequest
MembershipRegistrationRequest(String registrationId, SignedData memberContext, SignedData registrationContext, Long serial)
All-args constructor.- Parameters:
registrationId
- UUID identifying this registration requestmemberContext
- Member provided data in MemberInfo which has been signed by the registering member.registrationContext
- Additional registration context which has been signed by the registering member and is not part of the MemberInfo.serial
- The version of the member info the member could see when calling registration.
-
-
Method Detail
-
getRegistrationId
String getRegistrationId()
Gets the value of the 'registrationId' field.
-
setRegistrationId
void setRegistrationId(String value)
Sets the value of the 'registrationId' field. UUID identifying this registration request
- Parameters:
value
- the value to set.
-
getMemberContext
SignedData getMemberContext()
Gets the value of the 'memberContext' field.
-
setMemberContext
void setMemberContext(SignedData value)
Sets the value of the 'memberContext' field. Member provided data in MemberInfo which has been signed by the registering member. The data must be a serialised KeyValuePairList.
- Parameters:
value
- the value to set.
-
getRegistrationContext
SignedData getRegistrationContext()
Gets the value of the 'registrationContext' field.
-
setRegistrationContext
void setRegistrationContext(SignedData value)
Sets the value of the 'registrationContext' field. Additional registration context which has been signed by the registering member and is not part of the MemberInfo. The data must be a serialised KeyValuePairList.
- Parameters:
value
- the value to set.
-
setSerial
void setSerial(Long value)
Sets the value of the 'serial' field. The version of the member info the member could see when calling registration.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<MembershipRegistrationRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<MembershipRegistrationRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<MembershipRegistrationRequest> 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 MembershipRegistrationRequest to a ByteBuffer.
-
fromByteBuffer
static MembershipRegistrationRequest fromByteBuffer(ByteBuffer b)
Deserializes a MembershipRegistrationRequest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
getConversion
Conversion<out Object> getConversion(int field)
-
newBuilder
static MembershipRegistrationRequest.Builder newBuilder()
Creates a new MembershipRegistrationRequest RecordBuilder.
-
newBuilder
static MembershipRegistrationRequest.Builder newBuilder(MembershipRegistrationRequest.Builder other)
Creates a new MembershipRegistrationRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static MembershipRegistrationRequest.Builder newBuilder(MembershipRegistrationRequest other)
Creates a new MembershipRegistrationRequest RecordBuilder by copying an existing MembershipRegistrationRequest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-