edu.isi.pegasus.planner.catalog.site.classes
Class StorageType

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.classes.SiteData
      extended by edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
          extended by edu.isi.pegasus.planner.catalog.site.classes.StorageType
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
HeadNodeScratch, HeadNodeStorage, WorkerNodeScratch, WorkerNodeStorage

public class StorageType
extends AbstractSiteData

An Abstract Data class to describe the filesystem layout on a site, both shared and local on a site/node

Version:
$Revision: 2003 $
Author:
Karan Vahi

Field Summary
protected  LocalDirectory mLocalDirectory
          The local directory on the node.
protected  SharedDirectory mSharedDirectory
          The shared directory on the node.
 
Constructor Summary
StorageType()
          The default constructor
StorageType(LocalDirectory local, SharedDirectory shared)
          The overloaded constructor.
 
Method Summary
 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.
 
Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
toString, toXML, writeAttribute
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mLocalDirectory

protected LocalDirectory mLocalDirectory
The local directory on the node.


mSharedDirectory

protected SharedDirectory mSharedDirectory
The shared directory on the node.

Constructor Detail

StorageType

public StorageType()
The default constructor


StorageType

public StorageType(LocalDirectory local,
                   SharedDirectory shared)
The overloaded constructor.

Parameters:
local - the local directory on the node.
shared - the shared directory on the node.
Method Detail

setLocalDirectory

public void setLocalDirectory(LocalDirectory local)
Sets the local directory.

Parameters:
local - the local directory.

getLocalDirectory

public LocalDirectory getLocalDirectory()
Returns the local directory.

Returns:
the local directory.

selectLocalFileServer

public FileServer selectLocalFileServer()
Selects a FileServer associated with the Local Directory.

Returns:
if specified, else null

selectSharedFileServer

public FileServer selectSharedFileServer()
Selects a FileServer associated with the Shared Directory.

Returns:
if specified, else null

setSharedDirectory

public void setSharedDirectory(SharedDirectory shared)
Sets the shared directory.

Parameters:
shared - the shared directory.

getSharedDirectory

public SharedDirectory getSharedDirectory()
Returns the shared directory.

Returns:
the shared directory.

clone

public Object clone()
Returns the clone of the object.

Overrides:
clone in class AbstractSiteData
Returns:
the clone

toXML

public void toXML(Writer writer,
                  String indent)
           throws IOException
Description copied from class: AbstractSiteData
Writes out the xml description of the object.

Specified by:
toXML in class AbstractSiteData
Parameters:
writer -
indent -
Throws:
IOException


Copyright © 2011 The University of Southern California. All Rights Reserved.