|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.repository.clustered.local.AbstractLocalContentManager<FileBasedSynchronizationActionContext>
org.jboss.system.server.profileservice.repository.clustered.local.file.FilesystemLocalContentManager
public class FilesystemLocalContentManager
LocalContentManager
that persists to the local filesystem.
Constructor Summary | |
---|---|
protected |
FilesystemLocalContentManager(Map<String,URI> namedURIMap,
org.jboss.profileservice.spi.ProfileKey profileKey,
String localNodeName,
ContentMetadataPersister contentMetadataPersister,
URI tempDirURI)
Create a new FilesystemRepositoryContentPersister. |
Method Summary | |
---|---|
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createDirectoryTimestampMismatchAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node updating a directory timestamp to match the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createMkdirFromClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node adding a directory due to its presence on the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createMkdirToClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node adding a directory to the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createPrepareRmdirFromClusterAction(ContentModification mod,
boolean localLed)
|
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createPrepareRmdirToClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node removing a directory from the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createPullFromClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node pulling content from the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createPushStreamToClusterAction(ContentModification mod,
InputStream stream)
Create an action to handle the local end of a node pushing content that is read from an external-to-the-repository stream to the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createPushToClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node pushing content to the cluster. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createRemoveFromClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node removing content that the rest of the cluster regards as invalid. |
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> |
createRemoveToClusterAction(ContentModification mod,
boolean localLed)
Create an action to handle the local end of a node removing content from the cluster. |
protected FileBasedSynchronizationActionContext |
createSynchronizationActionContext(SynchronizationId<?> id,
RepositoryContentMetadata toUpdate)
Create a SynchronizationActionContext for the given cluster-wide
content synchronization. |
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.local.AbstractLocalContentManager |
---|
commitSynchronization, createEmptyContentMetadata, createStoreName, getCachedVirtualFile, getContentMetadataForAdd, getContentMetadataForRemove, getCurrentContentMetadata, getItemForAddition, getLocalNodeName, getOfficialContentMetadata, getRootURIForModification, getStoreName, getSynchronizationActionContext, getVirtualFileForItem, initiateSynchronization, installCurrentContentMetadata, prepareSynchronization, rollbackSynchronization |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FilesystemLocalContentManager(Map<String,URI> namedURIMap, org.jboss.profileservice.spi.ProfileKey profileKey, String localNodeName, ContentMetadataPersister contentMetadataPersister, URI tempDirURI)
namedURIMap
- storeName
- localNodeName
- contentMetadataPersister
- Method Detail |
---|
protected FileBasedSynchronizationActionContext createSynchronizationActionContext(SynchronizationId<?> id, RepositoryContentMetadata toUpdate)
AbstractLocalContentManager
SynchronizationActionContext
for the given cluster-wide
content synchronization.
createSynchronizationActionContext
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
id
- the id of the synchronizationtoUpdate
- metadata object that should be updated as synchronization
actions are performed.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createPullFromClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createPullFromClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createPushToClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createPushToClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createPushStreamToClusterAction(ContentModification mod, InputStream stream)
AbstractLocalContentManager
DeploymentRepository.addDeployment(String, org.jboss.profileservice.spi.ProfileDeployment)
.
This is only invoked on the node that is driving the synchronization process.
createPushStreamToClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part ofstream
- the stream from which content will be read.
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createRemoveFromClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createRemoveFromClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createRemoveToClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createRemoveToClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createDirectoryTimestampMismatchAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createDirectoryTimestampMismatchAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createMkdirFromClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createMkdirFromClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createMkdirToClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createMkdirToClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createPrepareRmdirFromClusterAction(ContentModification mod, boolean localLed)
createPrepareRmdirFromClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
protected TwoPhaseCommitAction<FileBasedSynchronizationActionContext> createPrepareRmdirToClusterAction(ContentModification mod, boolean localLed)
AbstractLocalContentManager
createPrepareRmdirToClusterAction
in class AbstractLocalContentManager<FileBasedSynchronizationActionContext>
mod
- object describing the content modification this action is
part oflocalLed
- true
if this node is driving the synchronization
process the action is part of; false
if
another node is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |