|
||||||||||
| 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.WorkspaceRecord
public class WorkspaceRecord
Record for propagating workspace modifications across the cluster. Currently only workspace creation is propagated because workspace deletion is not yet implemented.
| Nested Class Summary | |
|---|---|
static class |
WorkspaceRecord.Action
Base workspace action |
| Field Summary | |
|---|---|
static int |
CREATE_WORKSPACE_ACTION_TYPE
Subtype for determining workspace action. |
| Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord |
|---|
END_MARKER, record, workspace |
| Constructor Summary | |
|---|---|
protected |
WorkspaceRecord(Record record)
Creates a new empty WorkspaceRecord. |
protected |
WorkspaceRecord(String workspace,
ClonedInputSource inputSource,
Record record)
Creates a new WorkspaceRecord for create workspace action. |
| Method Summary | |
|---|---|
protected void |
doRead()
Deserialize this record. |
protected void |
doWrite()
Serialize this record. |
int |
getActionType()
|
org.apache.jackrabbit.core.cluster.WorkspaceRecord.CreateWorkspaceAction |
getCreateWorkspaceAction()
|
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 CREATE_WORKSPACE_ACTION_TYPE
| Constructor Detail |
|---|
protected WorkspaceRecord(String workspace,
ClonedInputSource inputSource,
Record record)
WorkspaceRecord for create workspace action.
workspace - workspace nameinputSource - input source with configuration for the workspacerecord - journal recordprotected WorkspaceRecord(Record record)
WorkspaceRecord.
record - | Method Detail |
|---|
protected void doRead()
throws JournalException
ClusterRecord
doRead in class ClusterRecordJournalException - if an error occurs
protected void doWrite()
throws JournalException
ClusterRecord
doWrite in class ClusterRecordJournalException - if an error occurspublic int getActionType()
public org.apache.jackrabbit.core.cluster.WorkspaceRecord.CreateWorkspaceAction getCreateWorkspaceAction()
public void process(ClusterRecordProcessor processor)
ClusterRecordprocess
method.
process in class ClusterRecordprocessor - processor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||