From: Jan S. <st...@us...> - 2002-07-04 17:58:26
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl In directory usw-pr-cvs1:/tmp/cvs-serv2848/net/sourceforge/javaprofiler/jpiimpl Modified Files: VirtualMachineImpl.java Log Message: Implements VirtualMachineRef instead of VirtualMachine. Index: VirtualMachineImpl.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** VirtualMachineImpl.java 16 May 2002 11:35:22 -0000 1.6 --- VirtualMachineImpl.java 4 Jul 2002 17:58:20 -0000 1.7 *************** *** 24,29 **** import net.sourceforge.javaprofiler.jpi.*; - import net.sourceforge.javaprofiler.jpi.dump.HeapDump; - import net.sourceforge.javaprofiler.jpi.event.EventQueue; import net.sourceforge.javaprofiler.jpiimpl.commun.*; import net.sourceforge.javaprofiler.jpiimpl.data.*; --- 24,27 ---- *************** *** 35,39 **** * @author Jan Stola */ ! public class VirtualMachineImpl implements VirtualMachine { private IProf iprof; private boolean isSuspendedVM; --- 33,37 ---- * @author Jan Stola */ ! public class VirtualMachineImpl implements VirtualMachineRef { private IProf iprof; private boolean isSuspendedVM; *************** *** 80,105 **** } } ! ! /** ! * Returns number of all loaded types by the mirrored virtual machine. ! * ! * @return number of all loaded types by the mirrored virtual machine. ! */ ! public int getClassCount() { ! //PENDING ! return 0; ! } ! ! /** ! * Performed heap dump of the mirrored virtual machine. ! * ! * @return a {@link net.sourceforge.javaprofiler.jpi.dump.HeapDump} object ! * representing the content of the memory of the mirrored virtual machine. ! */ ! public HeapDump dumpHeap() { ! //PENDING ! return null; ! } ! /** * Returns the <code>Process</code> object for this virtual machine if --- 78,82 ---- } } ! /** * Returns the <code>Process</code> object for this virtual machine if *************** *** 124,129 **** SnapshotImpl snap = new SnapshotImpl( iprof ); resumeThreads(); ! //return snap; ! return null; } --- 101,109 ---- SnapshotImpl snap = new SnapshotImpl( iprof ); resumeThreads(); ! return snap; ! } ! ! public Snapshot createSnapshot(int filterMask) { ! return createSnapshot(); } *************** *** 189,224 **** iprof.stop(); } ! ! /** ! * Returns a list of the currently running threads. For each running thread ! * in the target VM, a {@link ThreadInfo} that holds information about it ! * is placed in the list. The returned list contains threads created through ! * <code>Thread</code>, all native threads attached to the target ! * VM through JNI, and system threads created by the target VM. ! * <p>Thread objects that have not yet been started ! * (through <code>Thread.start()</code>) and thread objects that ! * have completed their execution are not included in the returned list. ! * ! * @return a <code>List</code> of {@link ThreadInfo} objects, one for each ! * running thread in the mirrored VM. ! */ ! public List threads() { ! //PENDING ! return null; ! } ! ! /** ! * Performes monitor dump of the mirrored virtual machine. ! * A {@link MonitorInfo} object is included for all monitors ! * existing in the mirrored virtual machine. ! * ! * @return a <code>List</code> of {@link MonitorInfo} objects representing ! * monitors in the mirrored virtual machine. ! */ ! public List dumpMonitors() { ! //PENDING ! return null; ! } ! /** * Resumes all threads in the virtual machine as described in --- 169,173 ---- iprof.stop(); } ! /** * Resumes all threads in the virtual machine as described in *************** *** 245,274 **** return 0; } ! ! /** ! * Returns <code>index</code>-th loaded type by the mirrored virtual machine. ! * ! * @param index index of some loaded type by the mirrored virtual machine. ! * @return a {@link ReferenceType} object representing <code>index</code>-th ! * loaded type by the mirrored virtual machine. ! */ ! public ReferenceType getClass(int index) { ! //PENDING ! return null; ! } ! ! /** ! * Returns the event queue for this virtual machine. A virtual machine has ! * only one {@link net.sourceforge.javaprofiler.jpi.event.EventQueue} object, ! * this method will return the same instance each time it is invoked. ! * ! * @return the {@link net.sourceforge.javaprofiler.jpi.event.EventQueue} ! * for this virtual machine. ! */ ! public EventQueue eventQueue() { ! //PENDING ! return null; ! } ! /** * Performes the garbage collection in the mirrored virtual machine. --- 194,198 ---- return 0; } ! /** * Performes the garbage collection in the mirrored virtual machine. *************** *** 283,311 **** } } ! ! /** ! * Returns number of currently running threads in the mirrored virtual machine. ! * ! * @return number of currently running threads in the mirrored virtual machine. ! */ ! public int getThreadCount() { ! //PENDING ! return 0; ! } ! ! /** ! * Returns all loaded types. For each loaded type in the target VM ! * a {@link ReferenceType} will be placed in the returned list. The list ! * will include <code>ReferenceTypes</code> which mirror classes, interfaces, ! * and array types. ! * ! * @return a <code>List</code> of {@link ReferenceType} objects, each ! * mirroring a loaded type in the target VM. ! */ ! public List classes() { ! //PENDING ! return null; ! } ! /** * Shuts profiled JVM down. When profiled JVM is ending, it sends --- 207,211 ---- } } ! /** * Shuts profiled JVM down. When profiled JVM is ending, it sends *************** *** 349,356 **** --- 249,301 ---- } + public List getThreads() { + return null; + } + + public List getMethods() { + return null; + } + + public List getCPUTraces() { + return null; + } + + public List getAllocTraces() { + return null; + } + + public List getMonTraces() { + return null; + } + + public List getTypes() { + return null; + } + + public List getThreadGroups() { + return null; + } + + public List getClasses() { + return null; + } + + public List getGCRuns() { + return null; + } + + public void addChildrenListener( int type, ChildrenListener listener) { + } + + public void removeChildrenListener( int type, ChildrenListener listener) { + } + } /* * $Log$ + * Revision 1.7 2002/07/04 17:58:20 stolis + * Implements VirtualMachineRef instead of VirtualMachine. + * * Revision 1.6 2002/05/16 11:35:22 stolis * Process field added. |