Class PersistentMemberInfo
-
- 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 PersistentMemberInfo extends SpecificRecordBase implements SpecificRecord
Avro representation of persistent MemberInfo.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PersistentMemberInfo.Builder
RecordBuilder for PersistentMemberInfo instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public HoldingIdentity
viewOwningMember
public KeyValuePairList
memberContext
public KeyValuePairList
mgmContext
public SignedData
signedMemberContext
public ByteBuffer
serializedMgmContext
-
Constructor Summary
Constructors Constructor Description PersistentMemberInfo()
Default constructor. PersistentMemberInfo(HoldingIdentity viewOwningMember, KeyValuePairList memberContext, KeyValuePairList mgmContext, SignedData signedMemberContext, ByteBuffer serializedMgmContext)
All-args constructor.
-
Method Summary
Modifier and Type Method Description HoldingIdentity
getViewOwningMember()
Gets the value of the 'viewOwningMember' field. void
setViewOwningMember(HoldingIdentity value)
Sets the value of the 'viewOwningMember' field. KeyValuePairList
getMemberContext()
Gets the value of the 'memberContext' field. void
setMemberContext(KeyValuePairList value)
Sets the value of the 'memberContext' field. KeyValuePairList
getMgmContext()
Gets the value of the 'mgmContext' field. void
setMgmContext(KeyValuePairList value)
Sets the value of the 'mgmContext' field. SignedData
getSignedMemberContext()
Gets the value of the 'signedMemberContext' field. void
setSignedMemberContext(SignedData value)
Sets the value of the 'signedMemberContext' field. ByteBuffer
getSerializedMgmContext()
Gets the value of the 'serializedMgmContext' field. void
setSerializedMgmContext(ByteBuffer value)
Sets the value of the 'serializedMgmContext' field. static Schema
getClassSchema()
static BinaryMessageEncoder<PersistentMemberInfo>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<PersistentMemberInfo>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<PersistentMemberInfo>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this PersistentMemberInfo to a ByteBuffer. static PersistentMemberInfo
fromByteBuffer(ByteBuffer b)
Deserializes a PersistentMemberInfo from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static PersistentMemberInfo.Builder
newBuilder()
Creates a new PersistentMemberInfo RecordBuilder. static PersistentMemberInfo.Builder
newBuilder(PersistentMemberInfo.Builder other)
Creates a new PersistentMemberInfo RecordBuilder by copying an existing Builder. static PersistentMemberInfo.Builder
newBuilder(PersistentMemberInfo other)
Creates a new PersistentMemberInfo RecordBuilder by copying an existing PersistentMemberInfo instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, 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
-
PersistentMemberInfo
PersistentMemberInfo()
Default constructor.
-
PersistentMemberInfo
PersistentMemberInfo(HoldingIdentity viewOwningMember, KeyValuePairList memberContext, KeyValuePairList mgmContext, SignedData signedMemberContext, ByteBuffer serializedMgmContext)
All-args constructor.- Parameters:
viewOwningMember
- Holding identity of the member owning the data view.memberContext
- Deprecated field, signedMemberContext should be used instead.mgmContext
- Deprecated field, serializedMgmContext should be used instead.signedMemberContext
- The serialized and signed byte data used as member context.serializedMgmContext
- The serialized byte data used as MGM context.
-
-
Method Detail
-
getViewOwningMember
HoldingIdentity getViewOwningMember()
Gets the value of the 'viewOwningMember' field.
- Returns:
Holding identity of the member owning the data view.
-
setViewOwningMember
void setViewOwningMember(HoldingIdentity value)
Sets the value of the 'viewOwningMember' field. Holding identity of the member owning the data view.
- Parameters:
value
- the value to set.
-
getMemberContext
KeyValuePairList getMemberContext()
Gets the value of the 'memberContext' field.
- Returns:
Deprecated field, signedMemberContext should be used instead. Member provided data in MemberInfo.
-
setMemberContext
void setMemberContext(KeyValuePairList value)
Sets the value of the 'memberContext' field. Deprecated field, signedMemberContext should be used instead. Member provided data in MemberInfo.
- Parameters:
value
- the value to set.
-
getMgmContext
KeyValuePairList getMgmContext()
Gets the value of the 'mgmContext' field.
- Returns:
Deprecated field, serializedMgmContext should be used instead. MGM provided data in MemberInfo.
-
setMgmContext
void setMgmContext(KeyValuePairList value)
Sets the value of the 'mgmContext' field. Deprecated field, serializedMgmContext should be used instead. MGM provided data in MemberInfo.
- Parameters:
value
- the value to set.
-
getSignedMemberContext
SignedData getSignedMemberContext()
Gets the value of the 'signedMemberContext' field.
- Returns:
The serialized and signed byte data used as member context.
-
setSignedMemberContext
void setSignedMemberContext(SignedData value)
Sets the value of the 'signedMemberContext' field. The serialized and signed byte data used as member context.
- Parameters:
value
- the value to set.
-
getSerializedMgmContext
ByteBuffer getSerializedMgmContext()
Gets the value of the 'serializedMgmContext' field.
- Returns:
The serialized byte data used as MGM context.
-
setSerializedMgmContext
void setSerializedMgmContext(ByteBuffer value)
Sets the value of the 'serializedMgmContext' field. The serialized byte data used as MGM context.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<PersistentMemberInfo> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
- Returns:
the message encoder used by this class
-
getDecoder
static BinaryMessageDecoder<PersistentMemberInfo> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
- Returns:
the message decoder used by this class
-
createDecoder
static BinaryMessageDecoder<PersistentMemberInfo> 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- Returns:
a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this PersistentMemberInfo to a ByteBuffer.
- Returns:
a buffer holding the serialized data for this instance
-
fromByteBuffer
static PersistentMemberInfo fromByteBuffer(ByteBuffer b)
Deserializes a PersistentMemberInfo from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class- Returns:
a PersistentMemberInfo instance decoded from the given buffer
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static PersistentMemberInfo.Builder newBuilder()
Creates a new PersistentMemberInfo RecordBuilder.
- Returns:
A new PersistentMemberInfo RecordBuilder
-
newBuilder
static PersistentMemberInfo.Builder newBuilder(PersistentMemberInfo.Builder other)
Creates a new PersistentMemberInfo RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.- Returns:
A new PersistentMemberInfo RecordBuilder
-
newBuilder
static PersistentMemberInfo.Builder newBuilder(PersistentMemberInfo other)
Creates a new PersistentMemberInfo RecordBuilder by copying an existing PersistentMemberInfo instance.
- Parameters:
other
- The existing instance to copy.- Returns:
A new PersistentMemberInfo RecordBuilder
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-