public abstract class DirectoryType extends AbstractSiteData
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DirectoryType()
The default constructor.
|
DirectoryType(List<FileServer> fs,
InternalMountPoint imt)
The overloaded constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
toString, toXML, toXML, writeAttribute
protected List<FileServer> mFileServers
protected InternalMountPoint mInternalMount
public DirectoryType()
public DirectoryType(List<FileServer> fs, InternalMountPoint imt)
fs
- list of file serversimt
- the internal mount point.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
Copyright © 2011 The University of Southern California. All Rights Reserved.