Class WorkspaceRecord
- java.lang.Object
-
- org.apache.jackrabbit.core.cluster.ClusterRecord
-
- org.apache.jackrabbit.core.cluster.WorkspaceRecord
-
public class WorkspaceRecord extends ClusterRecord
Record for propagating workspace modifications across the cluster. Currently only workspace creation is propagated because workspace deletion is not yet implemented.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkspaceRecord.ActionBase workspace action
-
Field Summary
Fields Modifier and Type Field Description static intCREATE_WORKSPACE_ACTION_TYPESubtype for determining workspace action.-
Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
END_MARKER, record, workspace
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkspaceRecord(String workspace, ClonedInputSource inputSource, Record record)Creates a newWorkspaceRecordfor create workspace action.protectedWorkspaceRecord(Record record)Creates a new emptyWorkspaceRecord.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRead()Deserialize this record.protected voiddoWrite()Serialize this record.intgetActionType()org.apache.jackrabbit.core.cluster.WorkspaceRecord.CreateWorkspaceActiongetCreateWorkspaceAction()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
-
-
-
-
Field Detail
-
CREATE_WORKSPACE_ACTION_TYPE
public static final int CREATE_WORKSPACE_ACTION_TYPE
Subtype for determining workspace action.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkspaceRecord
protected WorkspaceRecord(String workspace, ClonedInputSource inputSource, Record record)
Creates a newWorkspaceRecordfor create workspace action.- Parameters:
workspace- workspace nameinputSource- input source with configuration for the workspacerecord- journal record
-
WorkspaceRecord
protected WorkspaceRecord(Record record)
Creates a new emptyWorkspaceRecord.- Parameters:
record-
-
-
Method Detail
-
doRead
protected void doRead() throws JournalExceptionDescription copied from class:ClusterRecordDeserialize this record. Subclass responsibility.- Specified by:
doReadin classClusterRecord- Throws:
JournalException- if an error occurs
-
doWrite
protected void doWrite() throws JournalExceptionDescription copied from class:ClusterRecordSerialize this record. Subclass responsibility.- Specified by:
doWritein classClusterRecord- Throws:
JournalException- if an error occurs
-
getActionType
public int getActionType()
-
getCreateWorkspaceAction
public org.apache.jackrabbit.core.cluster.WorkspaceRecord.CreateWorkspaceAction getCreateWorkspaceAction()
-
process
public void process(ClusterRecordProcessor processor)
Description copied from class:ClusterRecordProcess this record, calling the appropriateprocessmethod.- Specified by:
processin classClusterRecord- Parameters:
processor- processor
-
-