edu.isi.pegasus.planner.catalog.site.classes
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 |
|---|---|
void |
accept(SiteDataVisitor visitor)
Accept method for the SiteData classes that accepts a visitor
|
Object |
clone()
Returns the clone of the object.
|
private void |
complain(Directory.TYPE type)
Throws a Runtime Exception
|
LocalDirectory |
getLocalDirectory()
Returns the local directory.
|
SharedDirectory |
getSharedDirectory()
Returns the shared directory.
|
void |
setLocalDirectory(Directory local)
Sets the local directory.
|
void |
setLocalDirectory(LocalDirectory local)
Sets the local directory.
|
void |
setSharedDirectory(Directory shared)
Sets the shared 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 void setLocalDirectory(Directory local)
local - the local directory.public LocalDirectory getLocalDirectory()
public void setSharedDirectory(SharedDirectory shared)
shared - the shared directory.public void setSharedDirectory(Directory shared)
shared - the shared directory.public SharedDirectory getSharedDirectory()
public Object clone()
clone in class AbstractSiteDataprivate void complain(Directory.TYPE type)
Directory.TYPE - the directory typepublic void toXML(Writer writer, String indent) throws IOException
AbstractSiteDatatoXML in class AbstractSiteDatawriter - 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 void accept(SiteDataVisitor visitor) throws IOException
AbstractSiteDataaccept in class AbstractSiteDatavisitor - the visitor to be usedIOException - if something fishy happens to the stream.