public class TimeSeriesPruner
extends java.lang.Object
Constructor and Description |
---|
TimeSeriesPruner() |
Modifier and Type | Method and Description |
---|---|
void |
process()
process this task
|
void |
setData(MutableArrayValue param)
Sets the data to be pruned
|
void |
setDefaultPruningSettings()
default settings for pruning
|
void |
setKeepBackTo(int field,
int amount)
specify how far back to keep records
e.g.
|
void |
setPruneLevel(int periodField,
int periodAmount,
int severityField,
int severityAmount)
specify how much to prune for a period (can be called multiple times)
If none specified, default settings will apply
|
void |
setRemoveOlderThan(int field,
int amount)
specify how far back to keep records
e.g.
|
public void process() throws java.lang.Exception
java.lang.Exception
- A serious problem occurredpublic void setDefaultPruningSettings()
public void setKeepBackTo(int field, int amount)
field
- e.g. Calendar.MONTHamount
- e.g. 1public void setRemoveOlderThan(int field, int amount)
field
- e.g. Calendar.MONTHamount
- e.g. 6public void setPruneLevel(int periodField, int periodAmount, int severityField, int severityAmount)
periodField
- e.g. Calendar.MONTHperiodAmount
- e.g. 3severityField
- e.g. Calendar.MINUTEseverityAmount
- e.g. 1 (only MINUTE support at present)public void setData(MutableArrayValue param)
param
- mandatorystSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.