|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.measurement.shared.MeasTabManagerUtil
public class MeasTabManagerUtil
Field Summary | |
---|---|
static java.lang.String |
MEAS_TABLE
|
static java.lang.String |
MEAS_VIEW
|
static int |
NUMBER_OF_TABLES
|
static int |
NUMBER_OF_TABLES_PER_DAY
|
static java.lang.String |
OLD_MEAS_TABLE
|
Constructor Summary | |
---|---|
MeasTabManagerUtil()
|
Method Summary | |
---|---|
static long |
getBaseTime()
|
static java.util.List |
getMeasIds(java.sql.Connection conn,
java.lang.Integer[] tids,
java.lang.Integer[] iids)
|
static java.util.List |
getMeasIdsFromTemplateIds(java.sql.Connection conn,
java.lang.Integer[] tids)
|
static java.lang.String |
getMeasInStmt(java.lang.Integer[] measIds,
boolean prependAnd)
|
static long |
getMeasTabEndTime(java.util.Calendar cal,
long timems)
|
static long |
getMeasTabEndTime(long timems)
|
static java.lang.String |
getMeasTabname(java.util.Calendar cal,
long timems)
|
static java.lang.String |
getMeasTabname(long timems)
|
static long |
getMeasTabStartTime(java.util.Calendar cal,
long timems)
|
static long |
getMeasTabStartTime(long timems)
|
static java.lang.String[] |
getMetricTables(long begin,
long end)
Get the array of tables that fall in the time range |
static long |
getPrevMeasTabTime(java.util.Calendar cal,
long timems)
|
static long |
getPrevMeasTabTime(long timems)
|
static java.lang.String |
getUnionStatement(java.lang.Integer[] measIds,
long timestamp)
Get the UNION statement from the detailed measurement tables based on the beginning of the time range. |
static java.lang.String |
getUnionStatement(long millisBack)
|
static java.lang.String |
getUnionStatement(long millisBack,
int measId)
|
static java.lang.String |
getUnionStatement(long millisBack,
java.lang.Integer[] measIds)
|
static java.lang.String |
getUnionStatement(long begin,
long end)
Get the UNION statement from the detailed measurement tables based on the beginning of the time range. |
static java.lang.String |
getUnionStatement(long begin,
long end,
int measId)
Get the UNION statement from the detailed measurement tables based on the beginning of the time range. |
static java.lang.String |
getUnionStatement(long begin,
long end,
java.lang.Integer[] measIds)
Get the UNION statement from the detailed measurement tables based on the beginning of the time range. |
static void |
main(java.lang.String[] args)
This is meant to be a regression test for the measurement rollover scheme |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NUMBER_OF_TABLES
public static final int NUMBER_OF_TABLES_PER_DAY
public static final java.lang.String MEAS_TABLE
public static final java.lang.String MEAS_VIEW
public static final java.lang.String OLD_MEAS_TABLE
Constructor Detail |
---|
public MeasTabManagerUtil()
Method Detail |
---|
public static long getBaseTime()
public static final java.lang.String getUnionStatement(long begin, long end)
begin
- The beginning of the time range.end
- The end of the time range
public static java.lang.String[] getMetricTables(long begin, long end)
public static final java.lang.String getUnionStatement(long begin, long end, java.lang.Integer[] measIds)
begin
- The beginning of the time range.end
- The end of the time rangemeasId
- The array of measurement ids to set the where clause against
public static java.lang.String getUnionStatement(java.lang.Integer[] measIds, long timestamp)
begin
- The beginning of the time range.end
- The end of the time rangemeasId
- The array of measurement ids to set the where clause against
public static java.lang.String getMeasInStmt(java.lang.Integer[] measIds, boolean prependAnd)
public static java.lang.String getMeasTabname(long timems)
public static java.lang.String getMeasTabname(java.util.Calendar cal, long timems)
public static long getMeasTabEndTime(java.util.Calendar cal, long timems)
public static long getMeasTabEndTime(long timems)
public static long getMeasTabStartTime(java.util.Calendar cal, long timems)
public static long getMeasTabStartTime(long timems)
public static long getPrevMeasTabTime(long timems)
public static long getPrevMeasTabTime(java.util.Calendar cal, long timems)
public static java.lang.String getUnionStatement(long begin, long end, int measId)
begin
- The beginning of the time range.end
- The end of the time rangemeasId
- The measurement id to set the where clause against
public static java.lang.String getUnionStatement(long millisBack)
public static java.lang.String getUnionStatement(long millisBack, java.lang.Integer[] measIds)
public static java.lang.String getUnionStatement(long millisBack, int measId)
public static java.util.List getMeasIdsFromTemplateIds(java.sql.Connection conn, java.lang.Integer[] tids) throws java.sql.SQLException
java.sql.SQLException
public static java.util.List getMeasIds(java.sql.Connection conn, java.lang.Integer[] tids, java.lang.Integer[] iids) throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |