public class MeasurementDataManagerUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_TABLES |
static int |
DEFAULT_NUM_DATA_POINTS
For methods taking a number of data points, the default if the passed value is invalid (<=0).
|
static int |
LIVE_TABLES |
static long |
MILLISECONDS_PER_TABLE |
static long |
RAW_PURGE |
static int |
STORED_DAYS |
static int |
TABLE_COUNT |
static int |
TABLES_PER_DAY |
| Constructor and Description |
|---|
MeasurementDataManagerUtility() |
| Modifier and Type | Method and Description |
|---|---|
MeasurementAggregate |
getAggregateByDefinitionAndContext(long beginTime,
long endTime,
int definitionId,
org.rhq.core.domain.common.EntityContext context) |
MeasurementAggregate |
getAggregateByScheduleId(long beginTime,
long endTime,
long scheduleId) |
static String[] |
getAllRawTables() |
static String[] |
getAllRawTables(int startIndex)
The raw tables starting at the specified index.
|
static String |
getCurrentRawTable() |
static String |
getDeadTable(long time) |
static MeasurementDataManagerUtility |
getInstance(DataSource dataSource) |
org.rhq.core.domain.measurement.MeasurementDataNumeric |
getLatestValueForSchedule(int scheduleId) |
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
getMeasurementDataAggregatesForContext(long beginTime,
long endTime,
org.rhq.core.domain.common.EntityContext context,
int definitionId,
int numDataPoints) |
static String |
getNextRotationTime() |
long |
getPurge1d() |
long |
getPurge1h() |
long |
getPurge6h() |
long |
getPurgeAlert() |
long |
getPurgeRt() |
static long |
getRawTimePeriodStart(long end) |
static String |
getTable(long time) |
static int |
getTableNameIndex(String tableName) |
static String[] |
getTables(long beginTime,
long endTime) |
static String[] |
getTables(long beginTime,
long endTime,
long now) |
static String |
getTableString(String table,
String valuesClause,
String conditions,
boolean isRaw) |
static boolean |
isRawTable(String tableName) |
static boolean |
isRawTimePeriod(long beginTime) |
public static final int STORED_DAYS
public static final int TABLES_PER_DAY
public static final int BUFFER_TABLES
public static final int LIVE_TABLES
public static final int TABLE_COUNT
public static final long MILLISECONDS_PER_TABLE
public static final long RAW_PURGE
public static final int DEFAULT_NUM_DATA_POINTS
public static MeasurementDataManagerUtility getInstance(DataSource dataSource)
public List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> getMeasurementDataAggregatesForContext(long beginTime, long endTime, org.rhq.core.domain.common.EntityContext context, int definitionId, int numDataPoints) throws MeasurementNotFoundException
MeasurementNotFoundExceptionpublic MeasurementAggregate getAggregateByScheduleId(long beginTime, long endTime, long scheduleId) throws MeasurementNotFoundException
MeasurementNotFoundExceptionpublic MeasurementAggregate getAggregateByDefinitionAndContext(long beginTime, long endTime, int definitionId, org.rhq.core.domain.common.EntityContext context) throws MeasurementNotFoundException
MeasurementNotFoundExceptionpublic org.rhq.core.domain.measurement.MeasurementDataNumeric getLatestValueForSchedule(int scheduleId)
public static String getTableString(String table, String valuesClause, String conditions, boolean isRaw)
public static String getTable(long time)
public static String[] getAllRawTables()
public static String[] getAllRawTables(int startIndex)
startIndex - >= 0. If >= TABLE_COUNT normalized via modulo.public static String[] getTables(long beginTime, long endTime)
public static String[] getTables(long beginTime, long endTime, long now)
public static String getDeadTable(long time)
public static String getCurrentRawTable()
public static String getNextRotationTime()
public static int getTableNameIndex(String tableName)
public long getPurge1h()
public long getPurge6h()
public long getPurge1d()
public long getPurgeRt()
public long getPurgeAlert()
public static long getRawTimePeriodStart(long end)
public static boolean isRawTimePeriod(long beginTime)
public static boolean isRawTable(String tableName)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.