Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect
In directory usw-pr-cvs1:/tmp/cvs-serv21823
Modified Files:
SocketListenConnector.java
Log Message:
First version of listening connector.
Index: SocketListenConnector.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/connect/SocketListenConnector.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SocketListenConnector.java 14 Oct 2001 21:56:31 -0000 1.3
--- SocketListenConnector.java 16 May 2002 11:41:25 -0000 1.4
***************
*** 28,31 ****
--- 28,32 ----
import net.sourceforge.javaprofiler.jpi.connect.*;
import net.sourceforge.javaprofiler.jpiimpl.commun.*;
+ import net.sourceforge.javaprofiler.jpiimpl.VirtualMachineImpl;
/**
***************
*** 53,62 ****
}
if (port==-1) {
! throw new IllegalConnectorArgumentsException("Wrong or missing port number.", "port");
}
! //IProf prof=new IProf(new CommunSetupSocket(CommunSetupSocket.SERVER_MODE, "localhost", port));
! //prof.runClient();
! //PENDING
! return null;
}
--- 54,66 ----
}
if (port==-1) {
! throw new IllegalConnectorArgumentsException(bundle.getString("ERR_MIS_PORT"), "port");
}
! IProf iprof=new IProf(new CommunSetupSocket(CommunSetupSocket.SERVER_MODE, "localhost", port));
! try {
! iprof.run();
! } catch (IProfException ipe) {
! throw new ConnectingException(bundle.getString("ERR_CONNECT")+ipe);
! }
! return new VirtualMachineImpl(iprof);
}
***************
*** 124,127 ****
--- 128,134 ----
/*
* $Log$
+ * Revision 1.4 2002/05/16 11:41:25 stolis
+ * First version of listening connector.
+ *
* Revision 1.3 2001/10/14 21:56:31 stolis
* Connectors updated.
|