org.jboss.deployers.vfs.spi.structure.modified
Interface SynchAdapter

All Known Implementing Classes:
AbstractSynchAdapter, MergeOverrideSynchAdapter, MergeSynchAdapter, OverrideSynchAdapter

public interface SynchAdapter

Synch adapter.

Author:
Ales Justin

Method Summary
 long add(org.jboss.virtual.VirtualFile fileToAdd, org.jboss.virtual.VirtualFile tempRoot, String pathToFile)
          Add new file to temp.
 boolean delete(org.jboss.virtual.VirtualFile fileToDelete)
          Add new file to temp.
 long update(org.jboss.virtual.VirtualFile fileToUpdate, org.jboss.virtual.VirtualFile modifiedFile)
          Update file.
 

Method Detail

add

long add(org.jboss.virtual.VirtualFile fileToAdd,
         org.jboss.virtual.VirtualFile tempRoot,
         String pathToFile)
         throws IOException
Add new file to temp.

Parameters:
fileToAdd - file to add
tempRoot - temp root
pathToFile - the path to file
Returns:
addition timestamp
Throws:
IOException - for any error

update

long update(org.jboss.virtual.VirtualFile fileToUpdate,
            org.jboss.virtual.VirtualFile modifiedFile)
            throws IOException
Update file.

Parameters:
fileToUpdate - file to update
modifiedFile - the modified file
Returns:
the update timestamp
Throws:
IOException - for any error

delete

boolean delete(org.jboss.virtual.VirtualFile fileToDelete)
               throws IOException
Add new file to temp.

Parameters:
fileToDelete - file to delete
Returns:
true if deleted, false otherwise
Throws:
IOException - for any error


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