Class HeadNodeFS
- 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.HeadNodeFS
-
- All Implemented Interfaces:
java.lang.Cloneable
public class HeadNodeFS extends AbstractSiteData
This data class describes the HeadNode Filesystem layout.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description private ProfilesmProfilesThe profiles associated with the headnode filesystem.private HeadNodeScratchmScratchThe scratch area on the head node.private HeadNodeStoragemStorageThe storage area on the head node.
-
Constructor Summary
Constructors Constructor Description HeadNodeFS()The default constructor.HeadNodeFS(HeadNodeScratch scratch, HeadNodeStorage storage)The overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SiteDataVisitor visitor)Accepts the visitor and calls visit method on the visitor accordinglyvoidaddProfile(Profile p)Adds a profile.java.lang.Objectclone()Returns the clone of the object.ProfilesgetProfiles()Returns the profiles associated with the file server.HeadNodeScratchgetScratch()Returns the scratch area on the head node.HeadNodeStoragegetStorage()Returns the storage area on the head node.voidsetProfiles(Profiles profiles)Sets the profiles associated with the file server.voidsetScratch(HeadNodeScratch scratch)Sets the scratch area on the head node.voidsetStorage(HeadNodeStorage storage)Sets the storage area on the head node.voidtoXML(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.AbstractSiteData
toString, toXML, writeAttribute
-
-
-
-
Field Detail
-
mScratch
private HeadNodeScratch mScratch
The scratch area on the head node.
-
mStorage
private HeadNodeStorage mStorage
The storage area on the head node.
-
mProfiles
private Profiles mProfiles
The profiles associated with the headnode filesystem.
-
-
Constructor Detail
-
HeadNodeFS
public HeadNodeFS()
The default constructor.
-
HeadNodeFS
public HeadNodeFS(HeadNodeScratch scratch, HeadNodeStorage storage)
The overloaded constructor.- Parameters:
scratch- the scratch area.storage- the storage area.
-
-
Method Detail
-
setScratch
public void setScratch(HeadNodeScratch scratch)
Sets the scratch area on the head node.- Parameters:
scratch- the scratch area.
-
getScratch
public HeadNodeScratch getScratch()
Returns the scratch area on the head node.- Returns:
- the scratch area.
-
setStorage
public void setStorage(HeadNodeStorage storage)
Sets the storage area on the head node.- Parameters:
storage- the storage area.
-
getStorage
public HeadNodeStorage getStorage()
Returns the storage area on the head node.- Returns:
- the storage area.
-
addProfile
public void addProfile(Profile p)
Adds a profile.- Parameters:
p- the profile to be added
-
getProfiles
public Profiles getProfiles()
Returns the profiles associated with the file server.- Returns:
- the profiles.
-
setProfiles
public void setProfiles(Profiles profiles)
Sets the profiles associated with the file server.- Parameters:
profiles- the profiles.
-
toXML
public void toXML(java.io.Writer writer, java.lang.String indent) throws java.io.IOExceptionWrites out the xml description of the object.- Specified by:
toXMLin classAbstractSiteData- Parameters:
writer- is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.indent- the indent to be used.- Throws:
java.io.IOException- if something fishy happens to the stream.
-
clone
public java.lang.Object clone()
Returns the clone of the object.- Overrides:
clonein classAbstractSiteData- Returns:
- the clone
-
accept
public void accept(SiteDataVisitor visitor) throws java.io.IOException
Accepts the visitor and calls visit method on the visitor accordingly- Specified by:
acceptin classAbstractSiteData- Parameters:
visitor-- Throws:
java.io.IOException- if something fishy happens to the stream.
-
-