Class WorkerNodeFS

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class WorkerNodeFS
    extends AbstractSiteData
    This data class describes the WorkerNode Filesystem layout.
    Version:
    $Revision$
    Author:
    Karan Vahi
    • Field Detail

      • mProfiles

        private Profiles mProfiles
        The profiles associated with the headnode filesystem.
    • Constructor Detail

      • WorkerNodeFS

        public WorkerNodeFS()
        The default constructor.
      • WorkerNodeFS

        public WorkerNodeFS​(WorkerNodeScratch scratch,
                            WorkerNodeStorage storage)
        The overloaded constructor.
        Parameters:
        scratch - the scratch area.
        storage - the storage area.
    • Method Detail

      • setScratch

        public void setScratch​(WorkerNodeScratch scratch)
        Sets the scratch area on the head node.
        Parameters:
        scratch - the scratch area.
      • getScratch

        public WorkerNodeScratch getScratch()
        Returns the scratch area on the head node.
        Returns:
        the scratch area.
      • setStorage

        public void setStorage​(WorkerNodeStorage storage)
        Sets the storage area on the head node.
        Parameters:
        storage - the storage area.
      • getStorage

        public WorkerNodeStorage getStorage()
        Returns the storage area on the head node.
        Returns:
        the storage area.
      • getProfiles

        public Profiles getProfiles()
        Returns the profiles associated with the file server.
        Returns:
        the profiles.
      • setProfiles

        public void setProfiles​(Profiles profiles)
        Sets the profiles associated with the file server.
        Parameters:
        profiles - the profiles.
      • addProfile

        public void addProfile​(Profile p)
        Adds a profile.
        Parameters:
        p - the profile to be added
      • toXML

        public void toXML​(java.io.Writer writer,
                          java.lang.String indent)
                   throws java.io.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 be used.
        Throws:
        java.io.IOException - if something fishy happens to the stream.
      • clone

        public java.lang.Object clone()
        Returns the clone of the object.
        Overrides:
        clone in class AbstractSiteData
        Returns:
        the clone
      • accept

        public void accept​(SiteDataVisitor visitor)
                    throws java.io.IOException
        Accepts the visitor and calls visit method on the visitor accordingly
        Specified by:
        accept in class AbstractSiteData
        Parameters:
        visitor -
        Throws:
        java.io.IOException - if something fishy happens to the stream.