Examples of PoolInfo


Examples of org.apache.hadoop.corona.PoolInfo

      filters.getHtmlOutput().append(
          "<b>poolInfos:</b> " + poolInfoFilter + "<br>");
      for (String poolInfoString : poolInfoFilter.split(",")) {
        String[] poolInfoStrings = poolInfoString.split("[.]");
        if (poolInfoStrings.length == 2) {
          filters.getPoolInfoFilterSet().add(new PoolInfo(poolInfoStrings[0],
              poolInfoStrings[1]));
        }
      }
    }
    return filters;
View Full Code Here

Examples of org.apache.hadoop.corona.PoolInfo

  public static PoolInfoHtml getPoolInfoHtml(
      Map<PoolInfo, PoolInfo> redirects,
      PoolInfo poolInfo) {
    String redirectAttributes = null;
    if (redirects != null) {
      PoolInfo destination = redirects.get(poolInfo);
      if (destination != null) {
        redirectAttributes = "Redirected to " +
            PoolInfo.createStringFromPoolInfo(destination);
      }
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

    public String getDriverProperties() {
        return spec.getDetail(DataSourceSpec.DRIVERPROPERTIES);
    }

    protected PoolInfo getPoolInfo(){
        return new PoolInfo(getPoolName(), getApplicationName(), getModuleName());   
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

    private PoolInfo poolInfo;
    private SQLTraceCache sqlTraceCache;

    public JdbcStatsProvider(String poolName, String appName, String moduleName, int sqlTraceCacheSize,
            long timeToKeepQueries) {
        poolInfo = new PoolInfo(poolName, appName, moduleName);
        if(sqlTraceCacheSize > 0) {
            this.sqlTraceCache = new SQLTraceCache(poolName, appName, moduleName, sqlTraceCacheSize, timeToKeepQueries);
        }
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

    public void statementCacheHitEvent(@ProbeParam("poolName") String poolName,
                                       @ProbeParam("appName") String appName,
                                       @ProbeParam("moduleName") String moduleName
                                       ) {

        PoolInfo poolInfo = new PoolInfo(poolName, appName, moduleName);
        if(this.poolInfo.equals(poolInfo)){
            numStatementCacheHit.increment();
        }
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

    public void statementCacheMissEvent(@ProbeParam("poolName") String poolName,
                                        @ProbeParam("appName") String appName,
                                        @ProbeParam("moduleName") String moduleName
                                        ) {

        PoolInfo poolInfo = new PoolInfo(poolName, appName, moduleName);
        if(this.poolInfo.equals(poolInfo)){
            numStatementCacheMiss.increment();
        }
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

                                   @ProbeParam("poolName") String poolName,
                                   @ProbeParam("appName") String appName,
                                   @ProbeParam("moduleName") String moduleName,
                                   @ProbeParam("sql") String sql) {

        PoolInfo poolInfo = new PoolInfo(poolName, appName, moduleName);
        if(this.poolInfo.equals(poolInfo)){
            if(sqlTraceCache != null) {
                if (sql != null) {
                    SQLTrace cacheObj = new SQLTrace(sql, 1,
                            System.currentTimeMillis());
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

    public void potentialStatementLeakEvent(
                                   @ProbeParam("poolName") String poolName,
                                   @ProbeParam("appName") String appName,
                                   @ProbeParam("moduleName") String moduleName) {

        PoolInfo poolInfo = new PoolInfo(poolName, appName, moduleName);
        if(this.poolInfo.equals(poolInfo)){
            numPotentialStatementLeak.increment();
        }
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

        return false;
    }

    boolean pingConnectionPool(String tmpJMSResource) throws ResourceException
    {
        PoolInfo poolInfo = new PoolInfo(tmpJMSResource);
        return connectorRuntime.pingConnectionPool(poolInfo);
    }
View Full Code Here

Examples of org.glassfish.resource.common.PoolInfo

     */
    public void execute(AdminCommandContext context) {
        final ActionReport report = context.getActionReport();

        try {
            PoolInfo poolInfo = new PoolInfo(poolName, applicationName, moduleName);
            Set<String> validationTableNames = connectorRuntime.getValidationTableNames(poolInfo);
            Properties extraProperties = new Properties();
            extraProperties.put("validationTableNames", new ArrayList(validationTableNames));
            report.setExtraProperties(extraProperties);
        } catch (Exception e) {
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.