|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.cluster.ClusterRecord
org.apache.jackrabbit.core.cluster.NodeTypeRecord
public class NodeTypeRecord
Cluster record representing a node type registration, re-registration or unregistration.
Field Summary | |
---|---|
static int |
REGISTER
Operation type: registration. |
static int |
REREGISTER
Operation type: re-registration. |
static int |
UNREGISTER
Operation type: unregistration. |
Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord |
---|
END_MARKER, record, workspace |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord |
---|
cancelUpdate, getRevision, getWorkspace, read, readEndMarker, update, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REGISTER
public static final int REREGISTER
public static final int UNREGISTER
Constructor Detail |
---|
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 recordMethod Detail |
---|
protected 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |