Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r5344 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui

Subject: perfsonar development work

List archive

perfsonar: r5344 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r5344 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui
  • Date: Fri, 6 Nov 2009 14:20:11 -0500

Author: michael.bischoff
Date: 2009-11-06 14:20:11 -0500 (Fri, 06 Nov 2009)
New Revision: 5344

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/PerfSonarApp.java
Log:
Improved startup time by running LS pre-load in a background thread

Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/PerfSonarApp.java
===================================================================
--- branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/PerfSonarApp.java
2009-11-06 13:18:00 UTC (rev 5343)
+++ branches/perfsonarui/src/org/perfsonar/perfsonarui/ui/PerfSonarApp.java
2009-11-06 19:20:11 UTC (rev 5344)
@@ -243,18 +243,21 @@
}
@SuppressWarnings("boxing")
protected void loadLsclient() {
- System.out.println("Load LS client - start");
String value;
try {
value =
System.getProperty("application.perfsonar.lsclient.eagerRootLses");
- } catch(SecurityException e) {
- return;
- }
- if(value != null && Boolean.valueOf(value)) {
- // trigger creation.
- LsResources.getClient();
- }
- System.out.println("Load LS client - done");
+ } catch(SecurityException e) { return; }
+ if(value == null) return;
+ if(!Boolean.valueOf(value)) return;
+ Runnable preloadLS = new Runnable() {
+ @Override
+ public void run() {
+ logger.info("Load LS client - start");
+ LsResources.getClient();
+ logger.info("Load LS client - done");
+ }
+ };
+ new Thread(preloadLS,"LS-Preloader").start();
}
public void loadPlugins(PerfsonarTabsList perfsonarTabs,String[]
cmdOpts) {
try {



  • perfsonar: r5344 - branches/perfsonarui/src/org/perfsonar/perfsonarui/ui, svnlog, 11/06/2009

Archive powered by MHonArc 2.6.16.

Top of Page