All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.performance.ProceduresInfo Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
package com.genexus.performance;

import java.io.PrintStream;
import java.util.Enumeration;
import java.util.concurrent.ConcurrentHashMap;

import com.genexus.Application;

public class ProceduresInfo
{
	static private ConcurrentHashMap procedureInfo = new ConcurrentHashMap<>();
  	
  static public void dump(PrintStream out)
  {
	  for (Enumeration en = procedureInfo.elements(); en.hasMoreElements(); )
	  {
			ProcedureInfo pInfo = (ProcedureInfo) en.nextElement();
			pInfo.dump(out);
			out.println("");
			out.println("");			
	  }
  } 
  
  static public ProcedureInfo addProcedureInfo(String name)
  {
	  if (!procedureInfo.containsKey(name))
	  {
		  ProcedureInfo pInfo = new ProcedureInfo(name);
		  procedureInfo.put(name, pInfo);
		  if (Application.isJMXEnabled())
			ProcedureJMX.CreateProcedureJMX(pInfo);
	  }
	  return procedureInfo.get(name);
  }	
	
  static public ProcedureInfo getProcedureInfo(String name)
  {
	  return procedureInfo.get(name);
  }  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy