tassl.application.cometcloud
Class FileProperties

java.lang.Object
  extended by tassl.application.cometcloud.FileProperties
All Implemented Interfaces:
java.io.Serializable

public class FileProperties
extends java.lang.Object
implements java.io.Serializable

Information about files or directories

See Also:
Serialized Form

Constructor Summary
FileProperties(java.lang.String name, java.lang.String location, double size, java.lang.String zone, java.lang.String sitename)
           
FileProperties(java.lang.String name, java.lang.String location, double size, java.lang.String zone, java.lang.String sitename, java.util.List<java.lang.String> constraints)
           
 
Method Summary
 FileProperties duplicate()
          Return a new Object that is a deep copy of the current one This is used to avoid clone.
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getConstraints()
          List of sitenames and zones where the dataset can be moved
 java.lang.String getLocation()
          URI of the dataset.
 java.lang.String getName()
          When the dataset refers to a file, this is the name of the file
 java.lang.String getSitename()
          Name of the site where the dataset is located
 double getSize()
          When the dataset refers to a file, this is its size
 java.lang.String getZone()
          Zone where the dataset is located
 int hashCode()
           
 void setConstraints(java.util.List<java.lang.String> constraints)
           
 void setLocation(java.lang.String location)
           
 void setName(java.lang.String name)
           
 void setSitename(java.lang.String sitename)
           
 void setSize(double size)
           
 void setZone(java.lang.String zone)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileProperties

public FileProperties(java.lang.String name,
                      java.lang.String location,
                      double size,
                      java.lang.String zone,
                      java.lang.String sitename,
                      java.util.List<java.lang.String> constraints)

FileProperties

public FileProperties(java.lang.String name,
                      java.lang.String location,
                      double size,
                      java.lang.String zone,
                      java.lang.String sitename)
Method Detail

getZone

public java.lang.String getZone()
Zone where the dataset is located

Returns:

getSitename

public java.lang.String getSitename()
Name of the site where the dataset is located

Returns:

getConstraints

public java.util.List<java.lang.String> getConstraints()
List of sitenames and zones where the dataset can be moved

Returns:

getName

public java.lang.String getName()
When the dataset refers to a file, this is the name of the file

Returns:

getLocation

public java.lang.String getLocation()
URI of the dataset. machine:/path/

Returns:

getSize

public double getSize()
When the dataset refers to a file, this is its size

Returns:

setName

public void setName(java.lang.String name)

setLocation

public void setLocation(java.lang.String location)

setSize

public void setSize(double size)

setZone

public void setZone(java.lang.String zone)

setSitename

public void setSitename(java.lang.String sitename)

setConstraints

public void setConstraints(java.util.List<java.lang.String> constraints)

toString

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

duplicate

public FileProperties duplicate()
Return a new Object that is a deep copy of the current one This is used to avoid clone.

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object