Class Text


  • public class Text
    extends Abstract
    It gets the information about a pool by reading the multiline site catalog that is in a multiline format.
    Version:
    $Revision$
    Author:
    Gaurang Mehta gmehta@isi.edu, Karan Vahi vahi@isi.edu
    • Field Detail

      • mPoolHandle

        private static Text mPoolHandle
        The internal singleton handle.
    • Constructor Detail

      • Text

        private Text​(java.lang.String poolProvider)
        The private constructor that is called only once, when the Singleton is invoked for the first time.
        Parameters:
        poolProvider - the path to the file that contains the pool information in the multiline text format.
      • Text

        private Text​(java.lang.String poolProvider,
                     java.lang.String propFileName)
        The private constructor that is called to return a non singleton instance of the class.
        Parameters:
        poolProvider - the path to the file that contains the pool information in the xml format.
        propFileName - the name of the properties file that needs to be picked up from PEGASUS_HOME/etc directory.If it is null, then the default properties file should be picked up.
    • Method Detail

      • getPoolMode

        public java.lang.String getPoolMode()
        Returns a textual description about the pool mode that is implemented by this class. It is purely informative.
        Specified by:
        getPoolMode in class PoolInfoProvider
        Returns:
        String corresponding to the description.
      • singletonInstance

        public static PoolInfoProvider singletonInstance​(java.lang.String poolProvider,
                                                         java.lang.String propFileName)
        The method returns a singleton instance of the derived InfoProvider class.
        Parameters:
        poolProvider - the path to the file containing the pool information.
        propFileName - the name of the properties file that needs to be picked up from PEGASUS_HOME/etc directory. In the singleton case only the default properties file is picked up.
        Returns:
        a singleton instance of this class.
      • nonSingletonInstance

        public static PoolInfoProvider nonSingletonInstance​(java.lang.String poolProvider,
                                                            java.lang.String propFileName)
        The method that returns a Non Singleton instance of the dervived InfoProvider class. This method if invoked should also ensure that all other internal Pegasus objects like PegasusProperties are invoked in a non singleton manner.
        Parameters:
        poolProvider - the path to the file containing the pool information.
        propFileName - the name of the properties file that needs to be picked up from PEGASUS_HOME/etc directory. If it is null, then the default file should be picked up.
        Returns:
        the non singleton instance of the pool provider.