public class ScalingPolicy
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ScalingPolicy.ScaleType |
Constructor and Description |
---|
ScalingPolicy() |
Modifier and Type | Method and Description |
---|---|
static ScalingPolicy |
byDataRate(int targetKBps,
int scaleFactor,
int minNumSegments)
Create a scaling policy to configure a stream to scale up and down according
to byte rate.
|
static ScalingPolicy |
byEventRate(int targetRate,
int scaleFactor,
int minNumSegments)
Create a scaling policy to configure a stream to scale up and down according
to event rate.
|
static ScalingPolicy |
fixed(int numSegments)
Create a scaling policy to configure a stream to have a fixed number of segments.
|
public static ScalingPolicy fixed(int numSegments)
numSegments
- Fixed number of segments for the stream.public static ScalingPolicy byEventRate(int targetRate, int scaleFactor, int minNumSegments)
targetRate
- Target rate in events per second to enable scaling events
per segment.scaleFactor
- Maximum number of splits of a segment for a scale-up event.minNumSegments
- Minimum number of segments that a stream can have
independent of the number of scale down events.public static ScalingPolicy byDataRate(int targetKBps, int scaleFactor, int minNumSegments)
targetKBps
- Target rate in kilo bytes per second to enable scaling events
per segment.scaleFactor
- Maximum number of splits of a segment for a scale-up event.minNumSegments
- Minimum number of segments that a stream can have
independent of the number of scale down events.