g-Eclipse
Release 1.0.0

eu.geclipse.core.filesystem
Class TransferInformation

java.lang.Object
  extended by eu.geclipse.core.filesystem.TransferInformation
All Implemented Interfaces:
ITransferInformation

public class TransferInformation
extends java.lang.Object
implements ITransferInformation

Simple bean class representing transfer operation between two file stores.


Constructor Summary
TransferInformation(java.lang.Integer id, IFileStore source, IFileStore destination, java.lang.String data, long size)
          Basic constructor which sets up all required fields.
 
Method Summary
 java.lang.String getData()
          Transfer-specific information which should be stored and used for transfer resuming.
 IFileStore getDestination()
          Return EFS for the destination of transfer
 java.lang.Integer getId()
          Getter of the internal transfer number
 long getSize()
          Getter of the size of the transfer
 IFileStore getSource()
          Returns EFS for the source of transfer
 boolean isMove()
          Specifies if the transfer was move or copy operation.
 void setData(java.lang.String data)
          Setter for the transfer-specific data.
 void setDestination(IFileStore destination)
          Setter of the destination file store of this transfer.
 void setId(java.lang.Integer id)
          Setter of the transfer ID.
 void setMove(boolean move)
           
 void setSize(long size)
          Setter of the size of this transfer
 void setSource(IFileStore source)
          Setter of the source file store of this transfer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferInformation

public TransferInformation(java.lang.Integer id,
                           IFileStore source,
                           IFileStore destination,
                           java.lang.String data,
                           long size)
Basic constructor which sets up all required fields.

Parameters:
id - transfer id
source - file store from transfer should occur
destination - target file store
data - transfer-specific data
size - size of the transfered file info associated with the file store
Method Detail

isMove

public boolean isMove()
Description copied from interface: ITransferInformation
Specifies if the transfer was move or copy operation.

Specified by:
isMove in interface ITransferInformation
Returns:
move status of the transfer operation

setMove

public void setMove(boolean move)
Parameters:
move - move status of the transfer operation

getId

public java.lang.Integer getId()
Description copied from interface: ITransferInformation
Getter of the internal transfer number

Specified by:
getId in interface ITransferInformation
Returns:
unique, internal id of the transfer

getData

public java.lang.String getData()
Description copied from interface: ITransferInformation
Transfer-specific information which should be stored and used for transfer resuming.

Specified by:
getData in interface ITransferInformation
Returns:
Transfer-specific token

getDestination

public IFileStore getDestination()
Description copied from interface: ITransferInformation
Return EFS for the destination of transfer

Specified by:
getDestination in interface ITransferInformation
Returns:
EFS of the target

getSource

public IFileStore getSource()
Description copied from interface: ITransferInformation
Returns EFS for the source of transfer

Specified by:
getSource in interface ITransferInformation
Returns:
EFS of the source

setId

public void setId(java.lang.Integer id)
Setter of the transfer ID. This is only local information.

Parameters:
id - identification number to be set

setData

public void setData(java.lang.String data)
Setter for the transfer-specific data.

Specified by:
setData in interface ITransferInformation
Parameters:
data -

setDestination

public void setDestination(IFileStore destination)
Setter of the destination file store of this transfer.

Parameters:
destination -

setSource

public void setSource(IFileStore source)
Setter of the source file store of this transfer.

Parameters:
source -

getSize

public long getSize()
Description copied from interface: ITransferInformation
Getter of the size of the transfer

Specified by:
getSize in interface ITransferInformation
Returns:
size of the transfered file, or 0 if the transfer object is a folder.

setSize

public void setSize(long size)
Setter of the size of this transfer

Parameters:
size - of the transferred file, or 0 if transfer object is a folder.

g-Eclipse
Release 1.0.0