org.jboss.system.server.profileservice.repository.clustered.local.file
Class RemoveFileAction

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction<T>
      extended by org.jboss.system.server.profileservice.repository.clustered.sync.AbstractContentMetadataMutatorAction<FileBasedSynchronizationActionContext>
          extended by org.jboss.system.server.profileservice.repository.clustered.local.file.AbstractLocalContentChangeAction
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractSynchronizationAction
AbstractSynchronizationAction.State
 
Constructor Summary
RemoveFileAction(File targetFile, FileBasedSynchronizationActionContext context, ContentModification modification)
          Create a new RemoveFileAction.
 
Method Summary
protected  void doRollbackFromPrepared()
           
protected  void doRollbackFromRollbackOnly()
           
protected  org.jboss.logging.Logger getLogger()
           
protected  boolean modifyTarget()
           
protected  void updateContentMetadata()
           
 
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.AbstractContentMetadataMutatorAction
rollbackContentMetadata
 
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
 

Constructor Detail

RemoveFileAction

public RemoveFileAction(File targetFile,
                        FileBasedSynchronizationActionContext context,
                        ContentModification modification)
Create a new RemoveFileAction.

Method Detail

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.