From: Pavel V. <va...@us...> - 2002-07-24 23:58:45
|
Update of /cvsroot/javaprofiler/test/module In directory usw-pr-cvs1:/tmp/cvs-serv19421 Modified Files: TestAllocHistView.java Log Message: shmem conector (for linux) Index: TestAllocHistView.java =================================================================== RCS file: /cvsroot/javaprofiler/test/module/TestAllocHistView.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** TestAllocHistView.java 24 Jul 2002 22:30:40 -0000 1.4 --- TestAllocHistView.java 24 Jul 2002 23:58:41 -0000 1.5 *************** *** 63,67 **** --- 63,69 ---- frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { + System.out.print( "Disconecting ... " ); vm.dispose(); //necessary cleanup especialy for shmem conectors + System.out.println( "END" ); System.exit(0); } *************** *** 100,104 **** refreshTypes(); try { ! sleep(500); } catch ( InterruptedException e ) { --- 102,106 ---- refreshTypes(); try { ! sleep(1000); } catch ( InterruptedException e ) { *************** *** 142,150 **** Bootstrap.virtualMachineManager().defaultConnector(); ! Connector con = new SocketAttachConnector(); Map args = con.defaultArguments(); ((Connector.IntegerArgument) args.get("port")).setValue(25595); ((Connector.Argument) args.get("host")).setValue("localhost"); ! return (new SocketAttachConnector()).connect( args ); /*} --- 144,157 ---- Bootstrap.virtualMachineManager().defaultConnector(); ! /*Connector con = new SocketAttachConnector(); Map args = con.defaultArguments(); ((Connector.IntegerArgument) args.get("port")).setValue(25595); ((Connector.Argument) args.get("host")).setValue("localhost"); ! return (new SocketAttachConnector()).connect( args );*/ ! ! Connector con = new ShmemAttachConnector(); ! Map args = con.defaultArguments(); ! ((Connector.Argument) args.get("address")).setValue("com"); ! return (new ShmemAttachConnector()).connect( args ); /*} |