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

com.genexus.performance.DataStoreProvidersJMX 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 com.genexus.db.DataStoreProvider;

public class DataStoreProvidersJMX implements DataStoreProvidersJMXMBean{

  public DataStoreProvidersJMX()
  {
  }

  static public void CreateDataStoreProvidersJMX()
  {
    try
    {
	  MBeanUtils.createMBeanDataStoreProviders();
    }
    catch(Exception e)
    {
      System.err.println("Cannot register DataStoreProviders MBean."+e.toString());
    }
  }
  
  public long getTotalSQLStatementCount()
  {
	  return DataStoreProvider.getSentenceCount();
  }
  
  public long getSelectSQLStatementCount()
  {
	  return DataStoreProvider.getSentenceSelectCount();
  }
  
  public long getUpdateSQLStatementCount()
  {
	  return DataStoreProvider.getSentenceUpdateCount();
  }
  
  public long getDeleteSQLStatementCount()
  {
	  return DataStoreProvider.getSentenceDeleteCount();
  }
  
  public long getInsertSQLStatementCount()
  {
	  return DataStoreProvider.getSentenceInsertCount();
  }
  
  public long getStoredProcedureCount()
  {
	  return DataStoreProvider.getSentenceCallCount();
  }  
  
  public long getSQLCommandCount()
  {
	  return DataStoreProvider.getSentenceDirectSQLCount();
  }
	
  public void dumpDataStoresInformation()
  {
	  DataStoreProvider.dump();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy