Class XML3PrintVisitor

  • All Implemented Interfaces:
    SiteDataVisitor

    public class XML3PrintVisitor
    extends AbstractXMLPrintVisitor
    Prints the Site Catalog compatible with Site Catalog schema version 3 https://pegasus.isi.edu/wms/docs/schemas/sc-4.0/sc-3.0.html
    Version:
    $Revision: 5858 $
    Author:
    Rajiv Mayani
    • Field Detail

      • SCHEMA_NAMESPACE

        public static final java.lang.String SCHEMA_NAMESPACE
        The "official" namespace URI of the site catalog schema.
        See Also:
        Constant Field Values
      • SCHEMA_LOCATION

        public static final java.lang.String SCHEMA_LOCATION
        The "not-so-official" location URL of the DAX schema definition.
        See Also:
        Constant Field Values
      • SCHEMA_VERSION

        public static final java.lang.String SCHEMA_VERSION
        The version to report.
        See Also:
        Constant Field Values
      • mDirectory

        private Directory[] mDirectory
        Keep track of which directories are found in the site.
      • mFileServer

        private java.util.List<FileServer>[] mFileServer
        Keep track of which file servers are listed in the specified directories.
      • mLastDirectoryTraversed

        private Directory.TYPE mLastDirectoryTraversed
        Track which type of directory was traversed last.
      • isFSWritten

        private boolean isFSWritten
        Ensure that Directory information is written only once.
    • Constructor Detail

      • XML3PrintVisitor

        public XML3PrintVisitor()
    • Method Detail

      • visit

        public void visit​(SiteStore store)
                   throws java.io.IOException
        Visit the SiteStore object
        Parameters:
        store - the site store
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(SiteStore store)
                    throws java.io.IOException
        Depart the Site Store object.
        Parameters:
        store - the SiteStore
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • visit

        public void visit​(SiteCatalogEntry entry)
                   throws java.io.IOException
        Visit the Site CatalogEntry object
        Parameters:
        entry - the site catalog entry
        Throws:
        java.io.IOException - in case of problem of writing
      • depart

        public void depart​(SiteCatalogEntry entry)
                    throws java.io.IOException
        Depart the Site Catalog Entry object.
        Parameters:
        entry - the site catalog entry
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • writeFS

        private void writeFS()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHeadFS

        private void writeHeadFS()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHeadFSScratch

        private void writeHeadFSScratch()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHeadFSStorage

        private void writeHeadFSStorage()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeWorkerFS

        private void writeWorkerFS()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeWorkerFSScratch

        private void writeWorkerFSScratch()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • visit

        public void visit​(GridGateway gateway)
                   throws java.io.IOException
        Visit the GridGateway object
        Parameters:
        gateway - the grid gateway
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(GridGateway entry)
                    throws java.io.IOException
        Depart the GridGateway object
        Parameters:
        entry - GridGateway object
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • visit

        public void visit​(Directory directory)
                   throws java.io.IOException
        Visit the directory object
        Parameters:
        directory - the directory
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(Directory directory)
                    throws java.io.IOException
        Depart the shared directory
        Parameters:
        directory - the directory
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • visit

        public void visit​(FileServer server)
                   throws java.io.IOException
        Visit FileServer site data object
        Parameters:
        server - the object corresponding to the FileServer
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(FileServer server)
                    throws java.io.IOException
        Depart the Directory object
        Parameters:
        server - the object corresponding to the FileServer
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • visit

        public void visit​(ReplicaCatalog catalog)
                   throws java.io.IOException
        Visit the ReplicaCatalog object
        Parameters:
        catalog - the object describing the catalog
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(ReplicaCatalog catalog)
                    throws java.io.IOException
        Depart the ReplicaCatalog object
        Parameters:
        catalog - the object describing the catalog
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • visit

        public void visit​(Connection c)
                   throws java.io.IOException
        Visit the connection object
        Parameters:
        c - the connection.
        Throws:
        java.io.IOException - in case of error while writing to underlying stream
      • depart

        public void depart​(Connection c)
                    throws java.io.IOException
        Depart the connection object
        Parameters:
        c - the connection.
        Throws:
        java.io.IOException - in case of error while writing to underlying stream