Class Directory
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.site.classes.SiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.DirectoryLayout
-
- edu.isi.pegasus.planner.catalog.site.classes.Directory
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Directory extends DirectoryLayout
The Directory class used for Site Catalog Schema version 4 onwards. The type of directory is determined based on type attribute rather than having separate classes for it.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirectory.TYPEEnumerates the new directory types supported in this schema
-
Field Summary
Fields Modifier and Type Field Description private Directory.TYPEmTypeThe type of directory-
Fields inherited from class edu.isi.pegasus.planner.catalog.site.classes.DirectoryLayout
mFileServers, mInternalMount
-
-
Constructor Summary
Constructors Constructor Description Directory()Default constructorDirectory(DirectoryLayout directory, Directory.TYPE type)Convenience constructor for adapter class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SiteDataVisitor visitor)Accept method for the SiteData classes that accepts a visitorjava.lang.Objectclone()Returns the clone of the object.Directory.TYPEgetType()Set the type of directoryvoidsetType(Directory.TYPE type)Set the type of directoryvoidsetType(java.lang.String type)Set the type of directoryvoidtoXML(java.io.Writer writer, java.lang.String indent)Writes out the xml description of the object.-
Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.DirectoryLayout
addFileServer, getFileServers, getFileServersIterator, getInternalMountPoint, hasFileServerForGETOperations, hasFileServerForOperations, hasFileServerForPUTOperations, isEmpty, resetFileServers, selectFileServer, setFileServers, setInternalMountPoint
-
Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
toString, toXML, writeAttribute
-
-
-
-
Field Detail
-
mType
private Directory.TYPE mType
The type of directory
-
-
Constructor Detail
-
Directory
public Directory()
Default constructor
-
Directory
public Directory(DirectoryLayout directory, Directory.TYPE type)
Convenience constructor for adapter class- Parameters:
directory- the directory layout objecttype- the type associated
-
-
Method Detail
-
accept
public void accept(SiteDataVisitor visitor) throws java.io.IOException
Accept method for the SiteData classes that accepts a visitor- Specified by:
acceptin classAbstractSiteData- Parameters:
visitor- the visitor to be used- Throws:
java.io.IOException- if something fishy happens to the stream.
-
setType
public void setType(java.lang.String type)
Set the type of directory- Parameters:
type- the type of directory
-
setType
public void setType(Directory.TYPE type)
Set the type of directory- Parameters:
type- the type of directory
-
getType
public Directory.TYPE getType()
Set the type of directory- Returns:
- the type of directory
-
toXML
public void toXML(java.io.Writer writer, java.lang.String indent) throws java.io.IOExceptionDescription copied from class:AbstractSiteDataWrites out the xml description of the object.- Specified by:
toXMLin classAbstractSiteData- Parameters:
writer-indent-- Throws:
java.io.IOException
-
clone
public java.lang.Object clone()
Returns the clone of the object.- Overrides:
clonein classDirectoryLayout- Returns:
- the clone
-
-