Class NodeTypeRecord


  • public class NodeTypeRecord
    extends ClusterRecord
    Cluster record representing a node type registration, re-registration or unregistration.
    • Field Detail

      • REGISTER

        public static final int REGISTER
        Operation type: registration.
        See Also:
        Constant Field Values
      • REREGISTER

        public static final int REREGISTER
        Operation type: re-registration.
        See Also:
        Constant Field Values
      • UNREGISTER

        public static final int UNREGISTER
        Operation type: unregistration.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NodeTypeRecord

        public NodeTypeRecord​(Collection collection,
                              boolean isRegister,
                              Record record)
        Create a new instance of this class. Used when serializing a node type registration or unregistration.
        Parameters:
        collection - collection of node types definitions or node type names
        isRegister - true if this is a registration; false if this is a unregistration
        record - journal record
      • NodeTypeRecord

        public NodeTypeRecord​(QNodeTypeDefinition ntDef,
                              Record record)
        Create a new instance of this class. Used when serializing a node type re-registration.
        Parameters:
        ntDef - node type definition
        record - journal record
    • Method Detail

      • process

        public void process​(ClusterRecordProcessor processor)
        Process this record, calling the appropriate process method.
        Specified by:
        process in class ClusterRecord
        Parameters:
        processor - processor
      • getOperation

        public int getOperation()
        Return the operation type.
        Returns:
        REGISTER, REREGISTER or UNREGISTER
      • getCollection

        public Collection getCollection()
        Return the collection of node type definitions or node type names.
        Returns:
        unmodifiable collection