Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bug 1115146 - Purge (delete) data using smaller batches
Browse files Browse the repository at this point in the history
Fixed a mistake on Log type
  • Loading branch information
tsegismont committed Jul 24, 2014
1 parent d4ae35c commit c66a451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import javax.sql.DataSource;
import javax.transaction.UserTransaction;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.rhq.enterprise.server.RHQConstants;
import org.rhq.enterprise.server.measurement.instrumentation.MeasurementMonitor;
Expand All @@ -44,7 +44,7 @@
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class PurgeManagerBean implements PurgeManagerLocal {
private static final Logger LOG = LoggerFactory.getLogger(PurgeManagerBean.class);
private static final Log LOG = LogFactory.getLog(PurgeManagerBean.class);

@Resource(name = "RHQ_DS", mappedName = RHQConstants.DATASOURCE_JNDI_NAME)
private DataSource dataSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import javax.transaction.Status;
import javax.transaction.UserTransaction;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.rhq.core.db.DatabaseType;
import org.rhq.core.db.DatabaseTypeFactory;
Expand All @@ -49,7 +49,7 @@
* @author Thomas Segismont
*/
abstract class PurgeTemplate<KEY> {
private static final Logger LOG = LoggerFactory.getLogger(PurgeTemplate.class);
private static final Log LOG = LogFactory.getLog(PurgeTemplate.class);

private static final String BATCH_SIZE_SYSTEM_PROPERTY = "org.rhq.enterprise.server.purge.PurgeTemplate.BATCH_SIZE";
private static final int BATCH_SIZE = Integer.getInteger(BATCH_SIZE_SYSTEM_PROPERTY, 3000);
Expand Down

0 comments on commit c66a451

Please sign in to comment.