|
From: Michal P. <mic...@us...> - 2002-09-12 14:47:30
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes
In directory usw-pr-cvs1:/tmp/cvs-serv28382/net/sourceforge/javaprofiler/module/nodes
Modified Files:
SessionKiller.java
Log Message:
VMDisconnectedException removed.
Index: SessionKiller.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SessionKiller.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SessionKiller.java 11 Sep 2002 16:12:15 -0000 1.4
--- SessionKiller.java 12 Sep 2002 14:47:27 -0000 1.5
***************
*** 26,30 ****
import net.sourceforge.javaprofiler.jpi.Snapshot;
- import net.sourceforge.javaprofiler.jpi.VMDisconnectedException;
import net.sourceforge.javaprofiler.module.ProfilerSettings;
import net.sourceforge.javaprofiler.module.data.Session;
--- 26,29 ----
***************
*** 49,66 ****
while (iter.hasNext()) {
session=(Session)iter.next();
! try {
if (session.getVM().isShutdown()) {
// create snapshot
ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class, true);
if (ps.getSnapshotOnExit()) {
! session.createSnapshot();
}
session.getVM().shutdown();
ProfilerData.getData().removeSession(session);
}
! } catch (VMDisconnectedException e) {
// session disconnected, should be removed from memory
ProfilerData.getData().removeSession(session);
! }
}
Thread.sleep(2000);
--- 48,65 ----
while (iter.hasNext()) {
session=(Session)iter.next();
! //try {
if (session.getVM().isShutdown()) {
// create snapshot
ProfilerSettings ps=(ProfilerSettings)SystemOption.findObject(ProfilerSettings.class, true);
if (ps.getSnapshotOnExit()) {
! session.createSnapshot();
}
session.getVM().shutdown();
ProfilerData.getData().removeSession(session);
}
! /*} catch (VMDisconnectedException e) {
// session disconnected, should be removed from memory
ProfilerData.getData().removeSession(session);
! }*/
}
Thread.sleep(2000);
***************
*** 75,78 ****
--- 74,81 ----
/*
* $Log$
+ * Revision 1.5 2002/09/12 14:47:27 michalpise
+ *
+ * VMDisconnectedException removed.
+ *
* Revision 1.4 2002/09/11 16:12:15 vachis
* bug fix
***************
*** 88,90 ****
* Thread that removes disconnected/shutdowned sessions from memory.
*
! */
\ No newline at end of file
--- 91,93 ----
* Thread that removes disconnected/shutdowned sessions from memory.
*
! */
|