com.partnersoft.v3x.apps.Propagate
Class WebGuppyUpdateActor

java.lang.Object
  extended by com.partnersoft.v3x.apps.Propagate.WebGuppyUpdateActor
All Implemented Interfaces:
UpdateActor

public class WebGuppyUpdateActor
extends java.lang.Object
implements UpdateActor

Updates files using http Guppy requests.


Constructor Summary
WebGuppyUpdateActor(java.lang.String url, java.io.File destinationDir, Log log)
           
 
Method Summary
 void addFile(java.lang.String filename)
           
 int availableVersion(java.lang.String packageName)
           
 boolean checksumsMatch(java.lang.String packageName)
           
 void close()
           
 void copyFile(java.lang.String remoteFilename, java.lang.String localFilename)
           
 java.io.File getDestinationDir()
           
 Log getLog()
           
 java.lang.String getURL()
           
 boolean isVerbose()
           
 java.lang.Object loadObject(java.lang.String path)
           
 void removeFile(java.lang.String filename)
           
 void setDestinationDir(java.io.File newDestinationDir)
           
 void setLog(Log newLog)
           
 void setURL(java.lang.String newAddress)
           
 void setVerbose(boolean tizit)
           
 void sync()
           
 void updateFile(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebGuppyUpdateActor

public WebGuppyUpdateActor(java.lang.String url,
                           java.io.File destinationDir,
                           Log log)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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 remoteFilename,
                     java.lang.String localFilename)
              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

getURL

public java.lang.String getURL()

setURL

public void setURL(java.lang.String newAddress)

getDestinationDir

public java.io.File getDestinationDir()

setDestinationDir

public void setDestinationDir(java.io.File newDestinationDir)

getLog

public Log getLog()

setLog

public void setLog(Log newLog)

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in interface UpdateActor

setVerbose

public void setVerbose(boolean tizit)
Specified by:
setVerbose in interface UpdateActor