Examples of ThreadData


Examples of org.apache.geronimo.security.ThreadData

        }
        return null;
    }

    public static EnterpriseBean pushContextData(EnterpriseBean bean) {
        ThreadData threadData = ContextManager.getThreadData();
        EnterpriseBean oldBean = threadData.getBean();
        threadData.setBean(bean);
        return oldBean;
    }
View Full Code Here

Examples of org.apache.geronimo.security.ThreadData

        threadData.setBean(bean);
        return oldBean;
    }

    public static void popContextData(EnterpriseBean oldBean) {
        ThreadData threadData = ContextManager.getThreadData();
        threadData.setBean(oldBean);
    }
View Full Code Here

Examples of org.apache.geronimo.security.ThreadData

        }
        return null;
    }

    public static HttpServletRequest pushContextData(HttpServletRequest httpServletRequest) {
        ThreadData threadData = ContextManager.getThreadData();
        HttpServletRequest oldRequest = threadData.getRequest();
        threadData.setRequest(httpServletRequest);
        return oldRequest;
    }
View Full Code Here

Examples of org.apache.geronimo.security.ThreadData

        threadData.setRequest(httpServletRequest);
        return oldRequest;
    }

    public static void popContextData(HttpServletRequest oldRequest) {
        ThreadData threadData = ContextManager.getThreadData();
        threadData.setRequest(oldRequest);
    }
View Full Code Here

Examples of org.apache.geronimo.security.ThreadData

        }
        return null;
    }

    public static Object[] pushContextData(Object[] args) {
        ThreadData threadData = ContextManager.getThreadData();
        Object[] oldArgs = threadData.getArgs();
        threadData.setArgs(args);
        return oldArgs;
    }
View Full Code Here

Examples of org.apache.geronimo.security.ThreadData

        threadData.setArgs(args);
        return oldArgs;
    }

    public static void popContextData(Object[] oldArgs) {
        ThreadData threadData = ContextManager.getThreadData();
        threadData.setArgs(oldArgs);
    }
View Full Code Here

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

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

        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

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

            // 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
Copyright © 2018 www.massapi.com. 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.