Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r5376 - in trunk/ps-mdm-lsclient-impl: . src/main/java/org/perfsonar/ri/lsclient/level1 src/test/java/org/perfsonar/ri/lsclient src/test/java/org/perfsonar/ri/lsclient/utils

Subject: perfsonar development work

List archive

perfsonar: r5376 - in trunk/ps-mdm-lsclient-impl: . src/main/java/org/perfsonar/ri/lsclient/level1 src/test/java/org/perfsonar/ri/lsclient src/test/java/org/perfsonar/ri/lsclient/utils


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r5376 - in trunk/ps-mdm-lsclient-impl: . src/main/java/org/perfsonar/ri/lsclient/level1 src/test/java/org/perfsonar/ri/lsclient src/test/java/org/perfsonar/ri/lsclient/utils
  • Date: Fri, 4 Dec 2009 10:37:32 -0500

Author: krzjed
Date: 2009-12-04 10:37:31 -0500 (Fri, 04 Dec 2009)
New Revision: 5376

Added:
trunk/ps-mdm-lsclient-impl/src/test/java/org/perfsonar/ri/lsclient/utils/

trunk/ps-mdm-lsclient-impl/src/test/java/org/perfsonar/ri/lsclient/utils/ResultCollectorTest.java

trunk/ps-mdm-lsclient-impl/src/test/java/org/perfsonar/ri/lsclient/utils/ResultContainerTest.java
Modified:
trunk/ps-mdm-lsclient-impl/pom.xml

trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/RootGlses.java
Log:
Added unit tests for thread-safe data containers

Modified: trunk/ps-mdm-lsclient-impl/pom.xml
===================================================================
--- trunk/ps-mdm-lsclient-impl/pom.xml 2009-12-04 13:11:46 UTC (rev 5375)
+++ trunk/ps-mdm-lsclient-impl/pom.xml 2009-12-04 15:37:31 UTC (rev 5376)
@@ -132,7 +132,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
- <version>2.0.1</version>
+ <version>2.2</version>
<configuration>
<xmlOutput>true</xmlOutput>
<!-- Optional derectory to put
findbugs xdoc xml report -->

Modified:
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/RootGlses.java
===================================================================
---
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/RootGlses.java
2009-12-04 13:11:46 UTC (rev 5375)
+++
trunk/ps-mdm-lsclient-impl/src/main/java/org/perfsonar/ri/lsclient/level1/RootGlses.java
2009-12-04 15:37:31 UTC (rev 5376)
@@ -19,7 +19,7 @@
private final Object timerMutex;
protected volatile Timer timer;
protected final Logger logger = Logger.getLogger(getClass());
- private static final int TIMEOUT = 20000;
+ private static final int TIMEOUT = 2000;

public RootGlses() {
this.timerMutex = new Object();
@@ -42,6 +42,7 @@
connection.setUseCaches(false);
long startTime = System.nanoTime();
connection.connect();
+ logger.info(service + " timed fo " +
Long.valueOf(System.nanoTime() - startTime) + "ns.");
collector.addPair(Long.valueOf(System.nanoTime() -
startTime), service);
} catch (MalformedURLException e) {
logger.error("Supplied service endpoint('" +
service.getEndPoint()

Added:
trunk/ps-mdm-lsclient-impl/src/test/java/org/perfsonar/ri/lsclient/utils/ResultCollectorTest.java

Added:
trunk/ps-mdm-lsclient-impl/src/test/java/org/perfsonar/ri/lsclient/utils/ResultContainerTest.java



  • perfsonar: r5376 - in trunk/ps-mdm-lsclient-impl: . src/main/java/org/perfsonar/ri/lsclient/level1 src/test/java/org/perfsonar/ri/lsclient src/test/java/org/perfsonar/ri/lsclient/utils, svnlog, 12/04/2009

Archive powered by MHonArc 2.6.16.

Top of Page