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 |
addProfile(Profile p)
Adds a profile.
|
Object |
clone()
Returns the clone of the object.
|
WorkerNodeScratch |
getScratch()
Returns the scratch area on the head node.
|
WorkerNodeStorage |
getStorage()
Returns the storage area on the head node.
|
FileServer |
selectScratchLocalFileServer()
Selects a
FileServer associated with the Local Directory on
the Scratch system. |
FileServer |
selectScratchSharedFileServer()
Selects a
FileServer associated with the Shared Directory on
the Scratch system. |
FileServer |
selectStorageLocalFileServer()
Selects a
FileServer associated with the Local Directory on
the Storage system. |
FileServer |
selectStorageSharedFileServer()
Selects a
FileServer associated with the Shared Directory on
the Storage system. |
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 FileServer selectScratchLocalFileServer()
FileServer
associated with the Local Directory on
the Scratch system.public FileServer selectScratchSharedFileServer()
FileServer
associated with the Shared Directory on
the Scratch system.public WorkerNodeScratch getScratch()
public void setStorage(WorkerNodeStorage storage)
storage
- the storage area.public FileServer selectStorageLocalFileServer()
FileServer
associated with the Local Directory on
the Storage system.public FileServer selectStorageSharedFileServer()
FileServer
associated with the Shared Directory on
the Storage system.public WorkerNodeStorage getStorage()
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
Copyright © 2011 The University of Southern California. All Rights Reserved.