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

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.MkDirAction
All Implemented Interfaces:
SynchronizationAction<FileBasedSynchronizationActionContext>, TwoPhaseCommitAction<FileBasedSynchronizationActionContext>

public class MkDirAction
extends AbstractLocalContentChangeAction

SynchronizationAction that makes a directory.

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
MkDirAction(File targetFile, FileBasedSynchronizationActionContext context, ContentModification modification)
          Create a new MkDirAction.
 
Method Summary
protected  org.jboss.logging.Logger getLogger()
           
protected  boolean modifyTarget()
           
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.local.file.AbstractLocalContentChangeAction
createTempFile, doCancel, doCommit, doComplete, doPrepare, doRollbackFromCancelled, doRollbackFromComplete, doRollbackFromOpen, doRollbackFromPrepared, doRollbackFromRollbackOnly, getTargetFile, safeCleanup, safeCleanup
 
Methods inherited from class org.jboss.system.server.profileservice.repository.clustered.sync.AbstractContentMetadataMutatorAction
rollbackContentMetadata, updateContentMetadata
 
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

MkDirAction

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

Parameters:
targetFile - the directory to create
context - the overall context of the modification
modification - the modification
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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.