org.mmbase.module.builders.vwms
Class aFile2Copy

java.lang.Object
  |
  +--org.mmbase.module.builders.vwms.aFile2Copy

public class aFile2Copy
extends java.lang.Object

An object that holds information needed for the transfer of a file. This is used with the CAHE PAGE mechanism, which copies calculated pages to a mirror server. File2Copy objects are handled by the FileCopier class.

Version:
5 Apr 2001
Author:
Daniel Ockeloen, Pierre van Rooden (javadocs)

Field Summary
 java.lang.String dsthost
          Name of the destination host
 java.lang.String dstpath
          Requested path of the file at the destination host
 java.lang.String dstuser
          Name of the destination user.
 java.lang.String filename
          File name
 java.lang.String srcpath
          Path of the file at this server
 java.lang.String sshpath
          Path to ssh command
 
Constructor Summary
aFile2Copy(java.lang.String dstuser, java.lang.String dsthost, java.lang.String dstpath, java.lang.String srcpath, java.lang.String filename, java.lang.String sshpath)
          Constructor for the File2Copy object
 
Method Summary
 int hashCode()
          Returns a hashcode based on the orifinal file source path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dstuser

public java.lang.String dstuser
Name of the destination user. Needed to log in to the host (using ssh).

dsthost

public java.lang.String dsthost
Name of the destination host

dstpath

public java.lang.String dstpath
Requested path of the file at the destination host

srcpath

public java.lang.String srcpath
Path of the file at this server

filename

public java.lang.String filename
File name

sshpath

public java.lang.String sshpath
Path to ssh command
Constructor Detail

aFile2Copy

public aFile2Copy(java.lang.String dstuser,
                  java.lang.String dsthost,
                  java.lang.String dstpath,
                  java.lang.String srcpath,
                  java.lang.String filename,
                  java.lang.String sshpath)
Constructor for the File2Copy object
Parameters:
dstuser - User name needed to log on at the destination host
dsthost - Name of the destination host
dstpath - Requested path of the file at the destination host
srcpath - Path of the file at this server
filename - File name
sshpath - Path to ssh command
Method Detail

hashCode

public int hashCode()
Returns a hashcode based on the orifinal file source path.
Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode identifying the file, as an int.


MMBase 2001