Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 70368 invoked from network); 5 Mar 2002 12:45:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Mar 2002 12:45:26 -0000 Received: (qmail 28755 invoked by uid 97); 5 Mar 2002 12:45:25 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 28734 invoked by uid 97); 5 Mar 2002 12:45:25 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 28723 invoked by uid 97); 5 Mar 2002 12:45:24 -0000 Date: 5 Mar 2002 12:45:24 -0000 Message-ID: <20020305124524.92654.qmail@icarus.apache.org> From: leif@apache.org To: jakarta-avalon-excalibur-cvs@apache.org Subject: cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/altprofile/profiler ProfilerManager.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 Leif Mortenson - * @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: For additional commands, e-mail: