public class WorkerNodeStorage extends StorageType
Modifier and Type | Field and Description |
---|---|
protected WorkerSharedDirectory |
mWorkerShared
The directory shared only amongst the worker nodes.
|
mLocalDirectory, mSharedDirectory
Constructor and Description |
---|
WorkerNodeStorage()
The default constructor
|
WorkerNodeStorage(LocalDirectory local,
SharedDirectory shared)
The overloaded constructor.
|
WorkerNodeStorage(StorageType type)
The overloaded constructor
|
Modifier and Type | Method and Description |
---|---|
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(Writer writer,
String indent)
Writes out the xml description of the object.
|
accept, clone, getLocalDirectory, getSharedDirectory, setLocalDirectory, setLocalDirectory, setSharedDirectory, setSharedDirectory
toString, toXML, writeAttribute
protected WorkerSharedDirectory mWorkerShared
public WorkerNodeStorage()
public WorkerNodeStorage(StorageType type)
type
- StorageTypepublic WorkerNodeStorage(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 void toXML(Writer writer, String indent) throws IOException
toXML
in class StorageType
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.