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

com.genexus.performance.ProcedureJMX 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.util.Date;

public class ProcedureJMX implements ProcedureJMXMBean{
	
	ProcedureInfo procedureInfo;
	
	public ProcedureJMX(ProcedureInfo pInfo)
	{
	  procedureInfo = pInfo;
	}
  
  static public void CreateProcedureJMX(ProcedureInfo pInfo)
  {
    try
    {
      MBeanUtils.createMBeanProcedure(pInfo);
    }
    catch(Exception e)
    {
      System.err.println("Cannot register Procedure MBean."+e.toString());
    }
  }
  
  public long getCount()
  {
	  return procedureInfo.getCount();
  }
    
  public Date getLastExecute()
  {
	  return procedureInfo.getTimeLastExecute();
  }
  
  public long getTotalTime()
  {
	  return procedureInfo.getTotalTimeExecute();
  }
  
  public float getAverageTime()
  {
	  return procedureInfo.getAverageTimeExecute();
  }
  
  public long getWorstTime()
  {
	  return procedureInfo.getWorstTimeExecute();
  }
  
  public long getBestTime()
  {
	  return procedureInfo.getBestTimeExecute();
  }  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy