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

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.FileSystemType
              extended by edu.isi.pegasus.planner.catalog.site.classes.InternalMountPoint
All Implemented Interfaces:
Cloneable

public class InternalMountPoint
extends FileSystemType

A data class to signify the Internal Mount Point for a filesystem.

Author:
Karan Vahi

Field Summary
 
Fields inherited from class edu.isi.pegasus.planner.catalog.site.classes.FileSystemType
mFreeSize, mMountPoint, mTotalSize
 
Constructor Summary
InternalMountPoint()
          The default constructor.
InternalMountPoint(String mountPoint)
          The overloaded constructor.
InternalMountPoint(String mountPoint, String totalSize, String freeSize)
          The overloaded constructor.
 
Method Summary
 boolean isEmpty()
          A convenience method that returns true if all the attributes values are uninitialized or empty strings.
 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.FileSystemType
clone, getFreeSize, getMountPoint, getTotalSize, setFreeSize, setMountPoint, setTotalSize
 
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
 

Constructor Detail

InternalMountPoint

public InternalMountPoint()
The default constructor.


InternalMountPoint

public InternalMountPoint(String mountPoint)
The overloaded constructor.

Parameters:
mountPoint - the mount point of the system.

InternalMountPoint

public InternalMountPoint(String mountPoint,
                          String totalSize,
                          String freeSize)
The overloaded constructor.

Parameters:
mountPoint - the mount point of the system.
totalSize - the total size of the system.
freeSize - the free size
Method Detail

isEmpty

public boolean isEmpty()
A convenience method that returns true if all the attributes values are uninitialized or empty strings. Useful for serializing the object as XML.

Returns:
boolean

toXML

public void toXML(Writer writer,
                  String indent)
           throws IOException
Writes out the xml description of the object.

Specified by:
toXML in class AbstractSiteData
Parameters:
writer - is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.
indent - the indent to use.
Throws:
IOException - if something fishy happens to the stream.


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