public class NodeTypeRecord extends ClusterRecord
Modifier and Type | Field and Description |
---|---|
static int |
REGISTER
Operation type: registration.
|
static int |
REREGISTER
Operation type: re-registration.
|
static int |
UNREGISTER
Operation type: unregistration.
|
END_MARKER, record, workspace
Constructor and Description |
---|
NodeTypeRecord(Collection collection,
boolean isRegister,
Record record)
Create a new instance of this class.
|
NodeTypeRecord(QNodeTypeDefinition ntDef,
Record record)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doRead()
Deserialize this record.
|
protected void |
doWrite()
Serialize this record.
|
Collection |
getCollection()
Return the collection of node type definitions or node type names.
|
int |
getOperation()
Return the operation type.
|
void |
process(ClusterRecordProcessor processor)
Process this record, calling the appropriate
process
method. |
cancelUpdate, getRevision, getWorkspace, read, readEndMarker, update, write
public static final int REGISTER
public static final int REREGISTER
public static final int UNREGISTER
public NodeTypeRecord(Collection collection, boolean isRegister, Record record)
collection
- collection of node types definitions or node type namesisRegister
- true
if this is a registration;
false
if this is a unregistrationrecord
- journal recordpublic NodeTypeRecord(QNodeTypeDefinition ntDef, Record record)
ntDef
- node type definitionrecord
- journal recordprotected void doRead() throws JournalException
doRead
in class ClusterRecord
JournalException
- if an error occursprotected void doWrite() throws JournalException
doWrite
in class ClusterRecord
JournalException
- if an error occurspublic void process(ClusterRecordProcessor processor)
process
method.process
in class ClusterRecord
processor
- processorpublic int getOperation()
REGISTER
, REREGISTER
or
UNREGISTER
public Collection getCollection()
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.