org.globus.cog.gridface.impl.gftpanel
Class Transfer
java.lang.Object
java.util.Observable
org.globus.cog.gridface.impl.gftpanel.Transfer
- All Implemented Interfaces:
- MarkerListener, Runnable
- public class Transfer
- extends Observable
- implements Runnable, MarkerListener
|
Constructor Summary |
Transfer(GridFTPPanel panel,
GridFTPHost source,
GridFTPHost destination)
|
Transfer(GridFTPPanel panel,
GridFTPHost source,
GridFTPHost destination,
boolean stats)
|
Transfer(GridFTPPanel displayPanel,
GridFTPHost source,
GridFTPHost destination,
int repeat,
int sleep,
boolean stats)
|
destination
public GridFTPHost destination
source
public GridFTPHost source
displayPanel
public GridFTPPanel displayPanel
exception
protected Exception exception
destinationHandle
protected GridFTPClient destinationHandle
sourceHandle
protected GridFTPClient sourceHandle
errorDescription
protected String errorDescription
status
protected String status
time
protected String time
thread
protected Thread thread
timer
protected Timer timer
canceled
protected boolean canceled
done
protected boolean done
stats
protected boolean stats
failures
protected int failures
repeat
protected int repeat
repetition
protected int repetition
sleep
protected int sleep
successes
protected int successes
progress
protected float progress
rate
protected float rate
totalSize
protected long totalSize
transferSeconds
protected long transferSeconds
transferSize
protected long transferSize
wallClockSeconds
protected long wallClockSeconds
Transfer
public Transfer(GridFTPPanel displayPanel,
GridFTPHost source,
GridFTPHost destination,
int repeat,
int sleep,
boolean stats)
Transfer
public Transfer(GridFTPPanel panel,
GridFTPHost source,
GridFTPHost destination,
boolean stats)
Transfer
public Transfer(GridFTPPanel panel,
GridFTPHost source,
GridFTPHost destination)
SetDisplayPanel
public void SetDisplayPanel(GridFTPPanel aPanel)
formatFloat
public static String formatFloat(float f)
getDisplayFilesize
public String getDisplayFilesize()
getDisplayRate
public String getDisplayRate()
getDisplayTime
public String getDisplayTime()
doRepetition
public void doRepetition()
cancel
public void cancel()
isCanceled
public boolean isCanceled()
done
public void done()
resetState
protected void resetState()
isDone
public boolean isDone()
getFilesize
public long getFilesize()
getProgress
public float getProgress()
getRate
public float getRate()
setSendAnonymousStats
public void setSendAnonymousStats(boolean stats)
getSendAnonymousStats
public boolean getSendAnonymousStats()
getStatus
public String getStatus()
setProgress
protected void setProgress(float progress)
setRate
protected void setRate(float rate)
setStatus
protected void setStatus(String status)
error
protected void error(String description,
Exception exception)
readProxy
protected void readProxy()
authenticateSource
protected void authenticateSource()
authenticateDestination
protected void authenticateDestination()
getFileSize
protected void getFileSize()
transferFile
protected void transferFile()
run
public void run()
- Specified by:
run in interface Runnable
runTransfer
public void runTransfer()
sendAnonymousStats
protected void sendAnonymousStats()
updateTime
protected void updateTime()
markerArrived
public void markerArrived(Marker m)
- Specified by:
markerArrived in interface MarkerListener
toString
public String toString()