public class WorkerNodeScratch extends StorageType
| Modifier and Type | Field and Description |
|---|---|
protected WorkerSharedDirectory |
mWorkerShared
The directory shared only amongst the worker nodes.
|
mLocalDirectory, mSharedDirectory| Constructor and Description |
|---|
WorkerNodeScratch()
The default constructor
|
WorkerNodeScratch(LocalDirectory local,
SharedDirectory shared)
The overloaded constructor.
|
WorkerNodeScratch(StorageType type)
The overloaded constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns the clone of the object.
|
WorkerSharedDirectory |
getWorkerSharedDirectory()
Returns the directory shared amongst the worker nodes only.
|
void |
setWorkerSharedDirectory(WorkerSharedDirectory directory)
Sets the directory shared amongst the worker nodes only.
|
void |
toXML(java.io.Writer writer,
java.lang.String indent)
Writes out the xml description of the object.
|
accept, getLocalDirectory, getSharedDirectory, setLocalDirectory, setLocalDirectory, setSharedDirectory, setSharedDirectorytoString, toXML, writeAttributeprotected WorkerSharedDirectory mWorkerShared
public WorkerNodeScratch()
public WorkerNodeScratch(StorageType type)
type - StorageTypepublic WorkerNodeScratch(LocalDirectory local, SharedDirectory shared)
local - the local directory on the node.shared - the shared directory on the node.public void setWorkerSharedDirectory(WorkerSharedDirectory directory)
directory - the worker node shared directory.public WorkerSharedDirectory getWorkerSharedDirectory()
public java.lang.Object clone()
clone in class StorageTypepublic void toXML(java.io.Writer writer,
java.lang.String indent)
throws java.io.IOException
toXML in class StorageTypewriter - is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent - the indent to be used.java.io.IOException - if something fishy happens to the stream.