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 Profiles
mProfiles
The profiles associated with the headnode filesystem.private WorkerNodeScratch
mScratch
The scratch area on the head node.private WorkerNodeStorage
mStorage
The 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 void
accept(SiteDataVisitor visitor)
Accepts the visitor and calls visit method on the visitor accordinglyvoid
addProfile(Profile p)
Adds a profile.java.lang.Object
clone()
Returns the clone of the object.Profiles
getProfiles()
Returns the profiles associated with the file server.WorkerNodeScratch
getScratch()
Returns the scratch area on the head node.WorkerNodeStorage
getStorage()
Returns the storage area on the head node.void
setProfiles(Profiles profiles)
Sets the profiles associated with the file server.void
setScratch(WorkerNodeScratch scratch)
Sets the scratch area on the head node.void
setStorage(WorkerNodeStorage storage)
Sets the storage area on the head node.void
toXML(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.IOException
Writes out the xml description of the object.- Specified by:
toXML
in 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:
clone
in 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:
accept
in classAbstractSiteData
- Parameters:
visitor
-- Throws:
java.io.IOException
- if something fishy happens to the stream.
-
-