From: Jan S. <st...@us...> - 2002-01-27 23:06:02
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data In directory usw-pr-cvs1:/tmp/cvs-serv5135 Added Files: Snapshot.java Log Message: Wrapper for snapshot. --- NEW FILE: Snapshot.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.data; /** * Snapshot. * * @author Jan Stola */ public class Snapshot { //PENDING reference to file (if the snapshot is saved) /** Mirror of the virtual machine. */ private net.sourceforge.javaprofiler.jpi.Snapshot snapshot; /** * Creates new <code>Snapshot</code>. * * @param snapshot snapshot of some profiled process. */ public Snapshot(net.sourceforge.javaprofiler.jpi.Snapshot vm) { this.snapshot=snapshot; } /** * Returns corresponding <code>net.sourceforge.javaprofiler.jpi.Snapshot</code> object. * * @return <code>net.sourceforge.javaprofiler.jpi.Snapshot</code> object. */ public net.sourceforge.javaprofiler.jpi.Snapshot getSnapshot() { return snapshot; } /** * Returns name of this snapshot. * * @return name of this snapshot. */ public String getName() { return snapshot.getName(); } } /* * $Log: Snapshot.java,v $ * Revision 1.1 2002/01/27 23:05:58 stolis * Wrapper for snapshot. * */ |