Author: wire
Date: Tue Aug 16 11:15:50 2005
New Revision: 233026

URL: http://svn.apache.org/viewcvs?rev=233026&view=rev
Log:
Added log4j support

Modified:
    
webservices/muse/trunk/src/examples/ieeedemo/client/test/simulators/StatusSimulator.java

Modified: 
webservices/muse/trunk/src/examples/ieeedemo/client/test/simulators/StatusSimulator.java
URL: 
http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/client/test/simulators/StatusSimulator.java?rev=233026&r1=233025&r2=233026&view=diff
==============================================================================
--- 
webservices/muse/trunk/src/examples/ieeedemo/client/test/simulators/StatusSimulator.java
 (original)
+++ 
webservices/muse/trunk/src/examples/ieeedemo/client/test/simulators/StatusSimulator.java
 Tue Aug 16 11:15:50 2005
@@ -15,10 +15,12 @@
 import org.apache.interop.common.ui.MessagesJPanel;

 import org.apache.interop.common.ui.StatusJPanel;

 import org.apache.interop.common.ui.TemperatureJPanel;

+import org.apache.interop.common.ui.jgraph.WsGraphCell;

 import org.apache.interop.wcmgr.impl.WcImpl;

 import org.apache.interop.wcmgr.impl.WsImpl;

 import org.apache.interop.wcmgr.model.IWc;

 import org.apache.interop.wcmgr.model.IWs;

+import org.jgraph.graph.DefaultGraphCell;

 

 

 /**

@@ -50,12 +52,12 @@
 

                

                timer=new Timer(true);

-               timer.scheduleAtFixedRate(new StatusSimulator(mp),5000,5000);

+               timer.scheduleAtFixedRate(new StatusSimulator(mp),1000,1000);

 

                

                // This thread now sleeps forever

                while(true){

-                       Thread.sleep(10000);

+                       Thread.sleep(2000);

                }

 

        }

@@ -69,7 +71,7 @@
                long rand = Math.round(3*Math.random())+1;

 

                String name="Ws"+rand;

-               mp.setCurrentWc(name);

+               mp.setCurrentWs(name);

 

 

                rand = Math.round(3*Math.random())+1;

@@ -88,6 +90,11 @@
                        mp.setColor(name,Color.GREEN);

                        return;

                }

+

+               double response = Math.round(1000*Math.random())+1;

+               WsGraphCell ws = (WsGraphCell)mp.findNode(name);

+               ws.getWs().setResponseTime(response);           

+               mp.updateWs(name);

 

        }

        




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to