Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect
In directory usw-pr-cvs1:/tmp/cvs-serv14368
Modified Files:
SocketAttachConnector.java ShmemAttachConnector.java
Log Message:
Changes forced by the change of the IProf.run method prototype.
Index: SocketAttachConnector.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketAttachConnector.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SocketAttachConnector.java 14 Oct 2001 21:56:31 -0000 1.3
--- SocketAttachConnector.java 20 Apr 2002 10:46:21 -0000 1.4
***************
*** 64,72 ****
}
IProf iprof=new IProf(new CommunSetupSocket(CommunSetupSocket.CLIENT_MODE, host, port));
! if (iprof.run()) {
! return new VirtualMachineImpl(iprof);
! } else {
! throw new ConnectingException("Unable to connect to the profiled process.");
! }
}
--- 64,73 ----
}
IProf iprof=new IProf(new CommunSetupSocket(CommunSetupSocket.CLIENT_MODE, host, port));
! try {
! iprof.run();
! } catch (IProfException ipe) {
! throw new ConnectingException("Unable to connect to the profiled process: "+ipe);
! }
! return new VirtualMachineImpl(iprof);
}
***************
*** 138,141 ****
--- 139,145 ----
/*
* $Log$
+ * Revision 1.4 2002/04/20 10:46:21 stolis
+ * Changes forced by the change of the IProf.run method prototype.
+ *
* Revision 1.3 2001/10/14 21:56:31 stolis
* Connectors updated.
Index: ShmemAttachConnector.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/ShmemAttachConnector.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ShmemAttachConnector.java 14 Oct 2001 21:56:31 -0000 1.3
--- ShmemAttachConnector.java 20 Apr 2002 10:46:21 -0000 1.4
***************
*** 57,65 ****
}
IProf iprof=new IProf(new CommunSetupShMem(address, 256*1024));
! if (iprof.run()) {
! return new VirtualMachineImpl(iprof);
! } else {
! throw new ConnectingException("Unable to connect to the profiled process.");
}
}
--- 57,66 ----
}
IProf iprof=new IProf(new CommunSetupShMem(address, 256*1024));
! try {
! iprof.run();
! } catch (IProfException ipe) {
! throw new ConnectingException("Unable to connect to the profiled process: "+ipe);
}
+ return new VirtualMachineImpl(iprof);
}
***************
*** 127,130 ****
--- 128,134 ----
/*
* $Log$
+ * Revision 1.4 2002/04/20 10:46:21 stolis
+ * Changes forced by the change of the IProf.run method prototype.
+ *
* Revision 1.3 2001/10/14 21:56:31 stolis
* Connectors updated.
|