com.partnersoft.v3x.apps.Propagate
Class FileSystemUpdateActor
java.lang.Object
com.partnersoft.v3x.apps.Propagate.FileSystemUpdateActor
- All Implemented Interfaces:
- UpdateActor
public class FileSystemUpdateActor
- extends java.lang.Object
- implements UpdateActor
Updates files using basic file system operations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSystemUpdateActor
public FileSystemUpdateActor(java.io.File sourceDir,
java.io.File destinationDir)
addFile
public void addFile(java.lang.String filename)
throws java.io.IOException
- Specified by:
addFile in interface UpdateActor
- Throws:
java.io.IOException
removeFile
public void removeFile(java.lang.String filename)
throws java.io.IOException
- Specified by:
removeFile in interface UpdateActor
- Throws:
java.io.IOException
updateFile
public void updateFile(java.lang.String filename)
throws java.io.IOException
- Specified by:
updateFile in interface UpdateActor
- Throws:
java.io.IOException
copyFile
public void copyFile(java.lang.String sourceFilename,
java.lang.String destinationFilename)
throws java.io.IOException
- Specified by:
copyFile in interface UpdateActor
- Throws:
java.io.IOException
checksumsMatch
public boolean checksumsMatch(java.lang.String packageName)
throws java.io.IOException
- Specified by:
checksumsMatch in interface UpdateActor
- Throws:
java.io.IOException
availableVersion
public int availableVersion(java.lang.String packageName)
throws java.io.IOException
- Specified by:
availableVersion in interface UpdateActor
- Throws:
java.io.IOException
loadObject
public java.lang.Object loadObject(java.lang.String path)
throws java.io.IOException
- Specified by:
loadObject in interface UpdateActor
- Throws:
java.io.IOException
sync
public void sync()
throws java.io.IOException
- Specified by:
sync in interface UpdateActor
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface UpdateActor
- Throws:
java.io.IOException
getSourceDir
public java.io.File getSourceDir()
setSourceDir
public void setSourceDir(java.io.File newSourceDir)
getDestinationDir
public java.io.File getDestinationDir()
setDestinationDir
public void setDestinationDir(java.io.File newDestinationDir)
getLog
public Log getLog()
isVerbose
public boolean isVerbose()
- Specified by:
isVerbose in interface UpdateActor
setVerbose
public void setVerbose(boolean tizit)
- Specified by:
setVerbose in interface UpdateActor