Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r542 committed - Explained some Exception handling. makefiles commited

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r542 committed - Explained some Exception handling. makefiles commited


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r542 committed - Explained some Exception handling. makefiles commited
  • Date: Fri, 26 Aug 2011 21:08:14 +0000

Revision: 542
Author:

Date: Fri Aug 26 14:06:20 2011
Log: Explained some Exception handling. makefiles commited
http://code.google.com/p/ndt/source/detail?r=542

Modified:
/branches/kkumar_code_organize/Applet/Makefile.am
/branches/kkumar_code_organize/Applet/Makefile.in
/branches/kkumar_code_organize/Applet/Tcpbw100.java
/branches/kkumar_code_organize/FILES

=======================================
--- /branches/kkumar_code_organize/Applet/Makefile.am Sat Aug 20 10:12:56 2011
+++ /branches/kkumar_code_organize/Applet/Makefile.am Fri Aug 26 14:06:20 2011
@@ -26,7 +26,7 @@
noinst_PROGRAMS = Tcpbw100.jar

Tcpbw100_JAVA = Tcpbw100.java
-Tcpbw100_jar_SOURCES = Tcpbw100.java StatusPanel.java Protocol.java Message.java UserAgentTools.java NDTConstants.java OsfwWorker.java NewFrame.java ResultsTextPane.java MessageType.java
+Tcpbw100_jar_SOURCES = Tcpbw100.java StatusPanel.java Protocol.java Message.java UserAgentTools.java NDTConstants.java OsfwWorker.java NewFrame.java ResultsTextPane.java MessageType.java NDTUtils.java

Tcpbw100$(EXEEXT): $(Tcpbw100_OBJECTS) $(Tcpbw100_DEPENDENCIES)
@rm -f Tcpbw100$(EXEEXT)
@@ -65,9 +65,10 @@
# $(GCJ) $(NDTGCJFLAGS) $(Tcpbw100_jar_SOURCES)

#dependency management
-Tcpbw100.class: StatusPanel.class Protocol.class Message.class UserAgentTools.class NDTConstants.class OsfwWorker.class NewFrame.class ResultsTextPane.class MessageType.class
+Tcpbw100.class: StatusPanel.class Protocol.class Message.class UserAgentTools.class NDTConstants.class OsfwWorker.class NewFrame.class ResultsTextPane.class MessageType.class NDTUtils.class
Protocol.class: Message.class
OsfwWorker.class: NDTConstants.class Message.class Protocol.class
+

#Include all classes into jar
Tcpbw100.jar: all.class
=======================================
--- /branches/kkumar_code_organize/Applet/Makefile.in Sat Aug 20 10:12:56 2011
+++ /branches/kkumar_code_organize/Applet/Makefile.in Fri Aug 26 14:06:20 2011
@@ -170,7 +170,7 @@
noinst_PROGRAMS = Tcpbw100.jar

Tcpbw100_JAVA = Tcpbw100.java
-Tcpbw100_jar_SOURCES = Tcpbw100.java StatusPanel.java Protocol.java Message.java UserAgentTools.java NDTConstants.java OsfwWorker.java NewFrame.java ResultsTextPane.java MessageType.java
+Tcpbw100_jar_SOURCES = Tcpbw100.java StatusPanel.java Protocol.java Message.java UserAgentTools.java NDTConstants.java OsfwWorker.java NewFrame.java ResultsTextPane.java MessageType.java NDTUtils.java

EXTRA_DIST = MANIFEST.MF Tcpbw100_msgs_ca_ES.properties Tcpbw100_msgs_nb_NO.properties Tcpbw100_msgs_en_US.properties Tcpbw100_msgs_nl_NL.properties Tcpbw100_msgs_fr_FR.properties Tcpbw100_msgs_ru_RU.properties Tcpbw100_msgs_pt_BR.properties
subdir = Applet
@@ -183,7 +183,8 @@
am_Tcpbw100_jar_OBJECTS = Tcpbw100.$(OBJEXT) StatusPanel.$(OBJEXT) \
Protocol.$(OBJEXT) Message.$(OBJEXT) UserAgentTools.$(OBJEXT) \
NDTConstants.$(OBJEXT) OsfwWorker.$(OBJEXT) NewFrame.$(OBJEXT) \
- ResultsTextPane.$(OBJEXT) MessageType.$(OBJEXT)
+ ResultsTextPane.$(OBJEXT) MessageType.$(OBJEXT) \
+ NDTUtils.$(OBJEXT)
Tcpbw100_jar_OBJECTS = $(am_Tcpbw100_jar_OBJECTS)
Tcpbw100_jar_LDADD = $(LDADD)
Tcpbw100_jar_DEPENDENCIES =
@@ -194,8 +195,9 @@
am__depfiles_maybe = depfiles

@AMDEP_TRUE@DEP_FILES
= ./$(DEPDIR)/Message.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/MessageType.Po \
-@AMDEP_TRUE@
./$(DEPDIR)/NDTConstants.Po ./$(DEPDIR)/NewFrame.Po \
-@AMDEP_TRUE@
./$(DEPDIR)/OsfwWorker.Po ./$(DEPDIR)/Protocol.Po \
+@AMDEP_TRUE@
./$(DEPDIR)/NDTConstants.Po ./$(DEPDIR)/NDTUtils.Po \
+@AMDEP_TRUE@
./$(DEPDIR)/NewFrame.Po ./$(DEPDIR)/OsfwWorker.Po \
+@AMDEP_TRUE@
./$(DEPDIR)/Protocol.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/ResultsTextPane.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/StatusPanel.Po ./$(DEPDIR)/Tcpbw100.Po \
@AMDEP_TRUE@ ./$(DEPDIR)/UserAgentTools.Po
@@ -229,6 +231,7 @@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/Message.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/MessageType.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/NDTConstants.Po@am__quote@
+@AMDEP_TRUE@@am__include@

@am__quote@./$(DEPDIR)/NDTUtils.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/NewFrame.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/OsfwWorker.Po@am__quote@
@AMDEP_TRUE@@am__include@
@am__quote@./$(DEPDIR)/Protocol.Po@am__quote@
@@ -521,7 +524,7 @@
# $(GCJ) $(NDTGCJFLAGS) $(Tcpbw100_jar_SOURCES)

#dependency management
-Tcpbw100.class: StatusPanel.class Protocol.class Message.class UserAgentTools.class NDTConstants.class OsfwWorker.class NewFrame.class ResultsTextPane.class MessageType.class
+Tcpbw100.class: StatusPanel.class Protocol.class Message.class UserAgentTools.class NDTConstants.class OsfwWorker.class NewFrame.class ResultsTextPane.class MessageType.class NDTUtils.class
Protocol.class: Message.class
OsfwWorker.class: NDTConstants.class Message.class Protocol.class

=======================================
--- /branches/kkumar_code_organize/Applet/Tcpbw100.java Fri Aug 26 12:28:15 2011
+++ /branches/kkumar_code_organize/Applet/Tcpbw100.java Fri Aug 26 14:06:20 2011
@@ -678,6 +678,7 @@
}
} catch (InterruptedException
e) {
// do nothing.
+ System.err.println("INFO: Thread interrupted while sleeping before starting the next test.");
}
}
} catch (IOException e) {
@@ -1116,6 +1117,10 @@
_txtDiagnosis.selectAll();
} catch (SecurityException e) {
_bCanCopy = false;
+ // this Exception is only when the client
cannot copy
+ // some data, and is acted on by disabling the
+ // copy button.
+ System.err.println(" You may not have some security Permissions. Please confirm");
}
}
// "Statistics" copy button functionality
@@ -1547,7 +1552,8 @@
sfwCtl.send_msg(MessageType.TEST_MSG, new
String(

NDTConstants.SFW_PREDEFINED_TEST_MESSAGE).getBytes());
} catch (Exception e) {
- e.printStackTrace(); //sfwFail needed
+ e.printStackTrace();
+ //Indication that there might be a firewall from
C->S side.
}

// Server expected to respond back with a TEST_MSG too
@@ -1737,13 +1743,18 @@
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
- System.out.println("Thread
interrupted : " + e);
+ System.err.println("Thread
interrupted : " + e);
+ // Thread was interrupted
while timing 10 seconds
+ // of the C->S test. So, streaming 10 seconds of data may not be complete.
+ // But, the throughput is correctly calculated based on the number of packets
+ // that were actually sent
+
}
try {
outStream.close();
outSocket.close();
} catch (IOException e) {
- System.out.println("Caught IOException while closing stream after thread interrupted : " + e);
+ System.err.println("Caught IOException while closing stream after thread interrupted : " + e);
}
}
}.start();
@@ -1763,6 +1774,11 @@
System.out.println("Client socket timed
out");
break;
}
+ // In both cases above, thread was
interrupted while timing 10 seconds
+ // of the C->S test. So, streaming 10 seconds of data may not be complete.
+ // But, the throughput is correctly calculated based on the number of packets
+ // that were actually sent
+
_iPkts++;
// number of bytes sent = (num of iterations)
X (buffer size)
pub_bytes = (_iPkts * _iLength);
@@ -2324,6 +2340,7 @@
} catch (SecurityException e) {
System.err
.println("Couldn't set system property. Check your security settings.");
+ // retain this way for now
}
}
_chkboxPreferIPv6.setEnabled(false);
=======================================
--- /branches/kkumar_code_organize/FILES Sat Aug 20 10:12:56 2011
+++ /branches/kkumar_code_organize/FILES Fri Aug 26 14:06:20 2011
@@ -41,7 +41,7 @@
in the 'Applet' sub-directory
Makefile.am - Used by configure to build the runnable Makefile
Makefile.in - Used by configure to build the runnable Makefile
-Tcpbw100.java, StatusPanel.java, Protocol.java, Message.java, UserAgentTools.java, NDTConstants.java, OsfwWorker.java, NewFrame.java, ResultsTextPane.java, MessageType.java
+Tcpbw100.java, StatusPanel.java, Protocol.java, Message.java, UserAgentTools.java, NDTConstants.java, OsfwWorker.java, NewFrame.java, ResultsTextPane.java, MessageType.java, NDTUtils.java
- The source code for the client side java applet and
related classes
*.class - Corresponding java class versions of the client applet and related classes
Tcpbw100$N.class - java subclasses of the client applet


  • [ndt-dev] [ndt] r542 committed - Explained some Exception handling. makefiles commited, ndt, 08/26/2011

Archive powered by MHonArc 2.6.16.

Top of Page