avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/altprofile/profiler ProfilerManager.java
Date Tue, 05 Mar 2002 12:45:24 GMT
leif        02/03/05 04:45:24

  Modified:    src/scratchpad/org/apache/avalon/excalibur/altprofile/profiler
                        ProfilerManager.java
  Log:
  Add the ability to save profiler sample data across JVM invocations.
  
  Revision  Changes    Path
  1.3       +55 -5     jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/altprofile/profiler/ProfilerManager.java
  
  Index: ProfilerManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/altprofile/profiler/ProfilerManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProfilerManager.java	5 Mar 2002 09:31:03 -0000	1.2
  +++ ProfilerManager.java	5 Mar 2002 12:45:24 -0000	1.3
  @@ -7,14 +7,19 @@
    */
   package org.apache.avalon.excalibur.altprofile.profiler;
   
  +import java.io.File;
  +import java.io.InputStream;
  +import java.io.OutputStream;
  +
   import org.apache.avalon.excalibur.altprofile.Profilable;
   
   import org.apache.avalon.framework.configuration.Configuration;
  +import org.apache.avalon.framework.configuration.ConfigurationException;
   
   /**
    *
    * @author <a href="mailto:leif@silveregg.co.jp">Leif Mortenson</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2002/03/05 09:31:03 $
  + * @version CVS $Revision: 1.3 $ $Date: 2002/03/05 12:45:24 $
    * @since 4.1
    */
   public interface ProfilerManager
  @@ -63,11 +68,56 @@
       void registerProfilable( Profilable profilable, Configuration configuration ) throws
Exception;
       
       /**
  -     * Profilable to be unregistered from the profile manager.  Should be
  -     *  called whenever a Profilable is disposed.
  +     * Loads the profiler state from the specified file.
  +     *
  +     * @param stateFile File to read the profiler's state from.
  +     *
  +     * @throws Exception if there are any problems loading the state.
  +     */
  +    void loadProfilerStateFromFile( File stateFile ) throws Exception;
  +    
  +    /**
  +     * Loads the profiler state from the specified stream.
  +     *
  +     * @param is Stream to read the profiler's state from.
  +     *
  +     * @throws Exception if there are any problems loading the state.
  +     */
  +    void loadProfilerStateFromStream( InputStream is ) throws Exception;
  +    
  +    /**
  +     * Loads the profiler state from the specified Configuration.
  +     *
  +     * @param state Configuration object to load the state from.
  +     *
  +     * @throws ConfigurationException If there were any problems loading the
  +     *                                state.
  +     */
  +    void loadProfilerStateFromConfiguration( Configuration state ) throws ConfigurationException;
  +    
  +    /**
  +     * Saves the Profiler's state to the specified file.
  +     *
  +     * @param stateFile File to write the profiler's state to.
  +     *
  +     * @throws Exception if there are any problems saving the state.
  +     */
  +    void saveProfilerStateToFile( File stateFile ) throws Exception;
  +    
  +    /**
  +     * Saves the Profiler's state to the specified output stream.
  +     *
  +     * @param os Stream to write the profiler's state to.
  +     *
  +     * @throws Exception if there are any problems saving the state.
  +     */
  +    void saveProfilerStateToStream( OutputStream os ) throws Exception;
  +    
  +    /**
  +     * Returns the desktop state as a Configuration object.
        *
  -     * @param profilable Profilable to unregister from the ProfilerManager.
  +     * @return The desktop state as a Configuration object.
        */
  -    //void unregisterProfilable( Profilable profilable );
  +    Configuration saveProfilerStateToConfiguration();
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message