org.rhq.enterprise.server.measurement
Class MeasurementCompressionManagerBean
java.lang.Object
org.rhq.enterprise.server.measurement.MeasurementCompressionManagerBean
- All Implemented Interfaces:
- MeasurementCompressionManagerLocal
public class MeasurementCompressionManagerBean
- extends java.lang.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 java.sql.SQLException
- Specified by:
compressPurgeAndTruncate in interface MeasurementCompressionManagerLocal
- Throws:
java.sql.SQLException
compressDataInterval
public int compressDataInterval(java.lang.String fromTable,
java.lang.String toTable,
long begin,
long end)
throws java.sql.SQLException
- Specified by:
compressDataInterval in interface MeasurementCompressionManagerLocal
- Throws:
java.sql.SQLException
purgeMeasurementInterval
public int purgeMeasurementInterval(java.lang.String tableName,
long purgeAfter,
long purgeBefore)
throws java.sql.SQLException
- Purge data older than a given time.
- Specified by:
purgeMeasurementInterval in interface MeasurementCompressionManagerLocal
- Throws:
java.sql.SQLException
truncateMeasurements
public void truncateMeasurements(java.lang.String tableName)
throws java.sql.SQLException
- Specified by:
truncateMeasurements in interface MeasurementCompressionManagerLocal
- Throws:
java.sql.SQLException
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.