Package org.apache.kato.katoview.commands.helpers

Examples of org.apache.kato.katoview.commands.helpers.ThreadData


     
      // retrieve any orphaned Java threads from the hashmap
      ArrayList ta = (ArrayList)threads.remove(null);
      if ( ta != null ) {
        for ( int i=0; i<ta.size(); i++) {
          ThreadData td = (ThreadData)ta.get(i);
          printJavaThreadInfo(out, td.getThread(), getMonitors(td.getRuntime()));
        }
      }
    }
  }
View Full Code Here


        out.print("\n");
        printProperties(it, out);
        out.print("\n");
       
        out.print("\t   associated Java thread: ");
        ThreadData td = (ThreadData)threads.remove(currID);
        if (null != td) {
          out.print("\n");
          printJavaThreadInfo(out, td.getThread(), getMonitors(td.getRuntime()));
        } else {
          out.print("<no associated Java thread>\n");
        }
        out.print("\n");
        found = true;
View Full Code Here

            // thread id set to null means we want all the threads, and we
            // save all orphaned java threads in a list within the hashmap
            if ( null == currID) {
              if (threads.containsKey(null)) {
                ArrayList ta = (ArrayList)threads.get(null);
                ta.add(new ThreadData(jt, jr));
                } else {
                  ArrayList ta = new ArrayList(1);
                  ta.add(new ThreadData(jt, jr));
                  threads.put(null, ta);
                }
            } else {
              threads.put(currID, new ThreadData(jt, jr));
            }
          } else if (id.equals(currID)) {
            // we just want the specific java thread that matches the native one
            threads.put(currID, new ThreadData(jt, jr));
          }
        }
      }
    }
   
View Full Code Here

TOP

Related Classes of org.apache.kato.katoview.commands.helpers.ThreadData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.