org.gridbus.broker.common
Class DataFile

java.lang.Object
  extended by org.gridbus.broker.common.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.Object clone()
           
 int getDataSourceType()
           
 java.lang.String getFilename()
          Returns the filename.
 java.lang.String getFileType()
           
 DataHost getPreferredDataHost()
           
 long getSizeInBytes()
          Returns the size of the file in bytes
 void setDataSourceType(int dataSource)
           
 void setFilename(java.lang.String filename)
          Sets the name of this file
 void setFileType(java.lang.String fileType)
           
 void setPreferredDataHost(DataHost preferredDataHost)
           
 void setSizeInBytes(long l)
          Set the size of the file in bytes
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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

setFilename

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

Parameters:
filename -

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)

getFileType

public java.lang.String getFileType()
Returns:
type of datafile

setFileType

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

getPreferredDataHost

public DataHost getPreferredDataHost()

setPreferredDataHost

public void setPreferredDataHost(DataHost preferredDataHost)
Parameters:
preferredDataHost - The preferredDataHost to set.

getDataSourceType

public int getDataSourceType()
Returns:
Returns the dataSourceType.(One of the constant values defined in DataHostType)

setDataSourceType

public void setDataSourceType(int dataSource)
Parameters:
dataSourceType - The dataSourceType to set.(One of the constant values defined in DataHostType)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright © The University of Melbourne. 2006