org.jboss.system.server.profileservice.repository.clustered.local.file
Class RemoveFileAction
java.lang.Object
org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction<T>
org.jboss.system.server.profileservice.repository.clustered.sync.AbstractContentMetadataMutatorAction<FileBasedSynchronizationActionContext>
org.jboss.system.server.profileservice.repository.clustered.local.file.AbstractLocalContentChangeAction
org.jboss.system.server.profileservice.repository.clustered.local.file.RemoveFileAction
- All Implemented Interfaces:
- SynchronizationAction<FileBasedSynchronizationActionContext>, TwoPhaseCommitAction<FileBasedSynchronizationActionContext>
public class RemoveFileAction
- extends AbstractLocalContentChangeAction
SynchronizationAction
that removes a File
.
- Version:
- $Revision: $
- Author:
- Brian Stansberry
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.local.file.AbstractLocalContentChangeAction |
createTempFile, doCancel, doCommit, doComplete, doPrepare, doRollbackFromCancelled, doRollbackFromComplete, doRollbackFromOpen, getTargetFile, safeCleanup, safeCleanup |
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction |
cancel, commit, complete, getContext, getMarkedRemovedItem, getRepositoryContentModification, getState, isCancelled, isComplete, prepare, rollback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoveFileAction
public RemoveFileAction(File targetFile,
FileBasedSynchronizationActionContext context,
ContentModification modification)
- Create a new RemoveFileAction.
modifyTarget
protected boolean modifyTarget()
throws IOException
- Specified by:
modifyTarget
in class AbstractLocalContentChangeAction
- Throws:
IOException
getLogger
protected org.jboss.logging.Logger getLogger()
- Specified by:
getLogger
in class AbstractLocalContentChangeAction
doRollbackFromPrepared
protected void doRollbackFromPrepared()
- Overrides:
doRollbackFromPrepared
in class AbstractLocalContentChangeAction
doRollbackFromRollbackOnly
protected void doRollbackFromRollbackOnly()
- Overrides:
doRollbackFromRollbackOnly
in class AbstractLocalContentChangeAction
updateContentMetadata
protected void updateContentMetadata()
- Overrides:
updateContentMetadata
in class AbstractContentMetadataMutatorAction<FileBasedSynchronizationActionContext>
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.