|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.excalibur.instrument.manager.InstrumentSampleUtils
public class InstrumentSampleUtils
A series of methods which are useful when working with InstrumentSamples. These methods can be used on the server as well as the client.
Constructor Summary | |
---|---|
InstrumentSampleUtils()
|
Method Summary | |
---|---|
static String |
generateFullInstrumentSampleName(String instrumentName,
int sampleType,
long sampleInterval,
int sampleSize)
Generates a fully qualified sample name given its parameters. |
static String |
generateInstrumentSampleName(int sampleType,
long sampleInterval,
int sampleSize)
Generates a sample name given its parameters. |
static String |
getInstrumentSampleTypeName(int type)
|
static int |
resolveInstrumentSampleType(String type)
Resolves an instrument sample type based on a name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstrumentSampleUtils()
Method Detail |
---|
public static int resolveInstrumentSampleType(String type) throws ConfigurationException
type
- Type of the InstrumentSample to resolve. Accepted values are:
"max", "maximum", "min", "minimum", "mean",
"ctr", and "counter".
ConfigurationException
- if the specified sample type is unknown.public static String getInstrumentSampleTypeName(int type)
public static 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 String generateFullInstrumentSampleName(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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |