public class InstrumentSampleUtils
extends java.lang.Object
| Constructor and Description |
|---|
InstrumentSampleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateFullInstrumentSampleName(java.lang.String instrumentName,
int sampleType,
long sampleInterval,
int sampleSize)
Generates a fully qualified sample name given its parameters.
|
static java.lang.String |
generateInstrumentSampleName(int sampleType,
long sampleInterval,
int sampleSize)
Generates a sample name given its parameters.
|
static java.lang.String |
getInstrumentSampleTypeName(int type) |
static int |
resolveInstrumentSampleType(java.lang.String type)
Resolves an instrument sample type based on a name.
|
public static int resolveInstrumentSampleType(java.lang.String type)
throws org.apache.avalon.framework.configuration.ConfigurationException
type - Type of the InstrumentSample to resolve. Accepted values are:
"max", "maximum", "min", "minimum", "mean",
"ctr", and "counter".org.apache.avalon.framework.configuration.ConfigurationException - if the specified sample type is unknown.public static java.lang.String getInstrumentSampleTypeName(int type)
public static java.lang.String generateInstrumentSampleName(int sampleType,
long sampleInterval,
int sampleSize)
sampleType - Type of the sample.sampleInterval - Interval of the sample.sampleSize - Size of the sample.public static java.lang.String generateFullInstrumentSampleName(java.lang.String instrumentName,
int sampleType,
long sampleInterval,
int sampleSize)
instrumentName - Name of the instrument which owns the sample.sampleType - Type of the sample.sampleInterval - Interval of the sample.sampleSize - Size of the sample.