Class NamespaceRecord
- java.lang.Object
-
- org.apache.jackrabbit.core.cluster.ClusterRecord
-
- org.apache.jackrabbit.core.cluster.NamespaceRecord
-
public class NamespaceRecord extends ClusterRecord
Cluster record representing a namespace registration, reregistration or unregistration.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
END_MARKER, record, workspace
-
-
Constructor Summary
Constructors Constructor Description NamespaceRecord(String oldPrefix, String newPrefix, String uri, Record record)Create a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRead()Deserialize this record.protected voiddoWrite()Serialize this record.StringgetNewPrefix()Return the new prefix.StringgetOldPrefix()Return the old prefix.StringgetUri()Return the URI.voidprocess(ClusterRecordProcessor processor)Process this record, calling the appropriateprocessmethod.-
Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
cancelUpdate, getRevision, getWorkspace, read, readEndMarker, update, write
-
-
-
-
Method Detail
-
doRead
protected void doRead() throws JournalExceptionDeserialize this record. Subclass responsibility.- Specified by:
doReadin classClusterRecord- Throws:
JournalException- if an error occurs
-
doWrite
protected void doWrite() throws JournalExceptionSerialize this record. Subclass responsibility.- Specified by:
doWritein classClusterRecord- Throws:
JournalException- if an error occurs
-
process
public void process(ClusterRecordProcessor processor)
Process this record, calling the appropriateprocessmethod.- Specified by:
processin classClusterRecord- Parameters:
processor- processor
-
getOldPrefix
public String getOldPrefix()
Return the old prefix.- Returns:
- old prefix
-
getNewPrefix
public String getNewPrefix()
Return the new prefix.- Returns:
- new prefix
-
getUri
public String getUri()
Return the URI.- Returns:
- URI
-
-