edu.isi.pegasus.planner.catalog.site.classes
public class WorkerNodeFS extends AbstractSiteData
Modifier and Type | Field and 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 and Description |
---|
WorkerNodeFS()
The default constructor.
|
WorkerNodeFS(WorkerNodeScratch scratch,
WorkerNodeStorage storage)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SiteDataVisitor visitor)
Accepts the visitor and calls visit method on the visitor accordingly
|
void |
addProfile(Profile p)
Adds a profile.
|
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(Writer writer,
String indent)
Writes out the xml description of the object.
|
toString, toXML, writeAttribute
private WorkerNodeScratch mScratch
private WorkerNodeStorage mStorage
private Profiles mProfiles
public WorkerNodeFS()
public WorkerNodeFS(WorkerNodeScratch scratch, WorkerNodeStorage storage)
scratch
- the scratch area.storage
- the storage area.public void setScratch(WorkerNodeScratch scratch)
scratch
- the scratch area.public WorkerNodeScratch getScratch()
public void setStorage(WorkerNodeStorage storage)
storage
- the storage area.public WorkerNodeStorage getStorage()
public Profiles getProfiles()
public void setProfiles(Profiles profiles)
profiles
- the profiles.public void addProfile(Profile p)
p
- the profile to be addedpublic void toXML(Writer writer, String indent) throws IOException
toXML
in class AbstractSiteData
writer
- is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent
- the indent to be used.IOException
- if something fishy happens to the stream.public Object clone()
clone
in class AbstractSiteData
public void accept(SiteDataVisitor visitor) throws IOException
accept
in class AbstractSiteData
visitor
- IOException
- if something fishy happens to the stream.