Class WorkerNodeFS
- 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.WorkerNodeFS
-
- All Implemented Interfaces:
java.lang.Cloneable
public class WorkerNodeFS extends AbstractSiteData
This data class describes the WorkerNode Filesystem layout.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description private ProfilesmProfilesThe profiles associated with the headnode filesystem.private WorkerNodeScratchmScratchThe scratch area on the head node.private WorkerNodeStoragemStorageThe storage area on the head node.
-
Constructor Summary
Constructors Constructor Description WorkerNodeFS()The default constructor.WorkerNodeFS(WorkerNodeScratch scratch, WorkerNodeStorage 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.WorkerNodeScratchgetScratch()Returns the scratch area on the head node.WorkerNodeStoragegetStorage()Returns the storage area on the head node.voidsetProfiles(Profiles profiles)Sets the profiles associated with the file server.voidsetScratch(WorkerNodeScratch scratch)Sets the scratch area on the head node.voidsetStorage(WorkerNodeStorage 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 WorkerNodeScratch mScratch
The scratch area on the head node.
-
mStorage
private WorkerNodeStorage mStorage
The storage area on the head node.
-
mProfiles
private Profiles mProfiles
The profiles associated with the headnode filesystem.
-
-
Constructor Detail
-
WorkerNodeFS
public WorkerNodeFS()
The default constructor.
-
WorkerNodeFS
public WorkerNodeFS(WorkerNodeScratch scratch, WorkerNodeStorage storage)
The overloaded constructor.- Parameters:
scratch- the scratch area.storage- the storage area.
-
-
Method Detail
-
setScratch
public void setScratch(WorkerNodeScratch scratch)
Sets the scratch area on the head node.- Parameters:
scratch- the scratch area.
-
getScratch
public WorkerNodeScratch getScratch()
Returns the scratch area on the head node.- Returns:
- the scratch area.
-
setStorage
public void setStorage(WorkerNodeStorage storage)
Sets the storage area on the head node.- Parameters:
storage- the storage area.
-
getStorage
public WorkerNodeStorage getStorage()
Returns the storage area on the head node.- Returns:
- the storage area.
-
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.
-
addProfile
public void addProfile(Profile p)
Adds a profile.- Parameters:
p- the profile to be added
-
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.
-
-