Class StorageType

    • 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.
      • setLocalDirectory

        public void setLocalDirectory​(Directory local)
        Sets the local directory.
        Parameters:
        local - the local directory.
      • getLocalDirectory

        public LocalDirectory getLocalDirectory()
        Returns the local directory.
        Returns:
        the local directory.
      • setSharedDirectory

        public void setSharedDirectory​(SharedDirectory shared)
        Sets the shared directory.
        Parameters:
        shared - the shared directory.
      • setSharedDirectory

        public void setSharedDirectory​(Directory shared)
        Sets the shared directory.
        Parameters:
        shared - the shared directory.
      • getSharedDirectory

        public SharedDirectory getSharedDirectory()
        Returns the shared directory.
        Returns:
        the shared directory.
      • clone

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

        private void complain​(Directory.TYPE type)
        Throws a Runtime Exception
        Parameters:
        Directory - .TYPE the directory type
      • toXML

        public void toXML​(java.io.Writer writer,
                          java.lang.String indent)
                   throws java.io.IOException
        Description copied from class: AbstractSiteData
        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.
      • accept

        public void accept​(SiteDataVisitor visitor)
                    throws java.io.IOException
        Description copied from class: AbstractSiteData
        Accept method for the SiteData classes that accepts a visitor
        Specified by:
        accept in class AbstractSiteData
        Parameters:
        visitor - the visitor to be used
        Throws:
        java.io.IOException - if something fishy happens to the stream.