com.partnersoft.v3x.apps.Propagate
Class GuppyPushUpdateActor

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

public class GuppyPushUpdateActor
extends java.lang.Object
implements UpdateActor

Pushes files to a Guppy server.


Constructor Summary
GuppyPushUpdateActor(java.lang.String networkAddress, java.io.File sourceDir, 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 localFilename, java.lang.String remoteFilename)
           
 GuppyClient getClient()
           
 Log getLog()
           
 java.lang.String getNetworkAddress()
           
 java.io.File getSourceDir()
           
 boolean isVerbose()
           
 java.lang.Object loadObject(java.lang.String path)
           
 void removeFile(java.lang.String filename)
           
 void reverseCopyFile(java.lang.String localFilename, java.lang.String remoteFilename)
           
 void setLog(Log newLog)
           
 void setNetworkAddress(java.lang.String newAddress)
           
 void setSourceDir(java.io.File newSourceDir)
           
 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

GuppyPushUpdateActor

public GuppyPushUpdateActor(java.lang.String networkAddress,
                            java.io.File sourceDir,
                            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 localFilename,
                     java.lang.String remoteFilename)
              throws java.io.IOException
Specified by:
copyFile in interface UpdateActor
Throws:
java.io.IOException

reverseCopyFile

public void reverseCopyFile(java.lang.String localFilename,
                            java.lang.String remoteFilename)
                     throws java.io.IOException
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

getClient

public GuppyClient getClient()

getNetworkAddress

public java.lang.String getNetworkAddress()

setNetworkAddress

public void setNetworkAddress(java.lang.String newAddress)

getSourceDir

public java.io.File getSourceDir()

setSourceDir

public void setSourceDir(java.io.File newSourceDir)

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