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.

    • 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

      • 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.
      • 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

      • 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