com.genexus.performance.ProceduresInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxclassR Show documentation
Show all versions of gxclassR Show documentation
Core classes for the runtime used by Java and Android apps generated with GeneXus
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