public class StorageType extends AbstractSiteData
| Modifier and Type | Field and Description |
|---|---|
protected LocalDirectory |
mLocalDirectory
The local directory on the node.
|
protected SharedDirectory |
mSharedDirectory
The shared directory on the node.
|
| Constructor and Description |
|---|
StorageType()
The default constructor
|
StorageType(LocalDirectory local,
SharedDirectory shared)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns the clone of the object.
|
LocalDirectory |
getLocalDirectory()
Returns the local directory.
|
SharedDirectory |
getSharedDirectory()
Returns the shared directory.
|
FileServer |
selectLocalFileServer()
Selects a
FileServer associated with the Local Directory. |
FileServer |
selectSharedFileServer()
Selects a
FileServer associated with the Shared Directory. |
void |
setLocalDirectory(LocalDirectory local)
Sets the local directory.
|
void |
setSharedDirectory(SharedDirectory shared)
Sets the shared directory.
|
void |
toXML(Writer writer,
String indent)
Writes out the xml description of the object.
|
toString, toXML, writeAttributeprotected LocalDirectory mLocalDirectory
protected SharedDirectory mSharedDirectory
public StorageType()
public StorageType(LocalDirectory local, SharedDirectory shared)
local - the local directory on the node.shared - the shared directory on the node.public void setLocalDirectory(LocalDirectory local)
local - the local directory.public LocalDirectory getLocalDirectory()
public FileServer selectLocalFileServer()
FileServer associated with the Local Directory.public FileServer selectSharedFileServer()
FileServer associated with the Shared Directory.public void setSharedDirectory(SharedDirectory shared)
shared - the shared directory.public SharedDirectory getSharedDirectory()
public Object clone()
clone in class AbstractSiteDatapublic void toXML(Writer writer, String indent) throws IOException
AbstractSiteDatatoXML in class AbstractSiteDatawriter - indent - IOExceptionCopyright © 2011 The University of Southern California. All Rights Reserved.