|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.catalog.site.classes.SiteData
edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
edu.isi.pegasus.planner.catalog.site.classes.DirectoryType
public abstract class DirectoryType
An abstract base class that creates a directory type. It associates multiple file servers and an internal mount point.
| Field Summary | |
|---|---|
protected List<FileServer> |
mFileServers
The list of file servers that can be used to write to access this directory. |
protected InternalMountPoint |
mInternalMount
The internal mount point for the directory. |
| Constructor Summary | |
|---|---|
DirectoryType()
The default constructor. |
|
DirectoryType(List<FileServer> fs,
InternalMountPoint imt)
The overloaded constructor |
|
| Method Summary | |
|---|---|
void |
addFileServer(FileServer server)
Adds a FileServer that can access this directory. |
Object |
clone()
Returns the clone of the object. |
Iterator<FileServer> |
getFileServersIterator()
Returns at iterator to the file servers. |
InternalMountPoint |
getInternalMountPoint()
Returns the internal mount point for the directory. |
void |
initialize()
Initializes the object |
void |
initialize(List<FileServer> fs,
InternalMountPoint imt)
Initializes the object |
boolean |
isEmpty()
A convenience method that returns true if all the attributes values are uninitialized or empty strings. |
FileServer |
selectFileServer()
Selects a random file server and returns it. |
void |
setFileServers(List<FileServer> servers)
Sets the list of FileServers that can access this directory. |
void |
setInternalMountPoint(InternalMountPoint mountPoint)
Sets the internal mount point for the directory. |
| Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData |
|---|
toString, toXML, toXML, writeAttribute |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<FileServer> mFileServers
protected InternalMountPoint mInternalMount
| Constructor Detail |
|---|
public DirectoryType()
public DirectoryType(List<FileServer> fs,
InternalMountPoint imt)
fs - list of file serversimt - the internal mount point.| Method Detail |
|---|
public void initialize()
public void initialize(List<FileServer> fs,
InternalMountPoint imt)
fs - list of file serversimt - the internal mount point.public void addFileServer(FileServer server)
server - the file server.public void setFileServers(List<FileServer> servers)
servers - the list of serverspublic FileServer selectFileServer()
public Iterator<FileServer> getFileServersIterator()
public void setInternalMountPoint(InternalMountPoint mountPoint)
mountPoint - the internal mount point.public InternalMountPoint getInternalMountPoint()
public boolean isEmpty()
public Object clone()
clone in class AbstractSiteData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||