org.gridbus.broker.farming.common.data
Class DataFile

java.lang.Object
  extended by org.gridbus.broker.farming.common.data.DataFile

public class DataFile
extends java.lang.Object

This class represents a DataFile and stores all its attributes

Version:
1.0
Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
DataFile(java.lang.String Filename)
          Constructor for DataFile.
 
Method Summary
 java.lang.String getFilename()
          Returns the filename.
 java.lang.Object getHosts()
          Returns a vector containing the names of the hosts on which this file is to be found.
 long getSizeInBytes()
          Returns the size of the file in bytes
 java.lang.String getType()
           
 void setFilename(java.lang.String filename)
          Sets the name of this file
 void setHosts(java.lang.Object hosts)
          Sets vector containing the names of the hosts on which this file is to be found.
 void setSizeInBytes(long l)
          Set the size of the file in bytes
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFile

public DataFile(java.lang.String Filename)
Constructor for DataFile.

Parameters:
Filename -
Method Detail

getFilename

public java.lang.String getFilename()
Returns the filename.

Returns:
String

getHosts

public java.lang.Object getHosts()
Returns a vector containing the names of the hosts on which this file is to be found.

Returns:
hosts vector

setFilename

public void setFilename(java.lang.String filename)
Sets the name of this file

Parameters:
filename -

setHosts

public void setHosts(java.lang.Object hosts)
Sets vector containing the names of the hosts on which this file is to be found.

Parameters:
hosts - The hosts to set

getSizeInBytes

public long getSizeInBytes()
Returns the size of the file in bytes

Returns:
fileSize

setSizeInBytes

public void setSizeInBytes(long l)
Set the size of the file in bytes

Parameters:
l - (size in bytes)

getType

public java.lang.String getType()
Returns:

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.