org.rhq.enterprise.server.measurement
Class MeasurementCompressionManagerBean
java.lang.Object
org.rhq.enterprise.server.measurement.MeasurementCompressionManagerBean
- All Implemented Interfaces:
- MeasurementCompressionManagerLocal
public class MeasurementCompressionManagerBean
- extends Object
- implements MeasurementCompressionManagerLocal
Compresses data that increases in size over time to maintain the system for long durations. Any table that
continuously grows in a non-negligible manner should be compressed and/or purged in this job.
- Author:
- Greg Hinkle, jay shaughnessy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeasurementCompressionManagerBean
public MeasurementCompressionManagerBean()
compressPurgeAndTruncate
public void compressPurgeAndTruncate()
throws SQLException
- Specified by:
compressPurgeAndTruncate in interface MeasurementCompressionManagerLocal
- Throws:
SQLException
compressDataInterval
public int compressDataInterval(String fromTable,
String toTable,
long begin,
long end)
throws SQLException
- Specified by:
compressDataInterval in interface MeasurementCompressionManagerLocal
- Throws:
SQLException
purgeMeasurementInterval
public int purgeMeasurementInterval(String tableName,
long purgeAfter,
long purgeBefore)
throws SQLException
- Purge data older than a given time.
- Specified by:
purgeMeasurementInterval in interface MeasurementCompressionManagerLocal
- Throws:
SQLException
truncateMeasurements
public void truncateMeasurements(String tableName)
throws SQLException
- Specified by:
truncateMeasurements in interface MeasurementCompressionManagerLocal
- Throws:
SQLException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.