Interface FlowGenOptions
-
- All Superinterfaces:
org.opennms.nephron.CortexOptions,org.apache.beam.sdk.transforms.display.HasDisplayData,org.opennms.nephron.NephronOptions,org.apache.beam.sdk.options.PipelineOptions
- All Known Subinterfaces:
BenchmarkOptions
public interface FlowGenOptions extends org.opennms.nephron.NephronOptionsDefines the distribution of generated flows. Parameters can be grouped into the following areas:- Randomness
-
- seed
- playbackMode
- startMs (only use in playback mode)
- Flow instances
-
- fixedWindowsSizeMs (inherited from NephronOptions)
- numWindows
- flowsPerWindow || flowsPerSecond
- Flow attributes
-
- numExporters, numInterfaces, numApplications, numHosts, numDscps, numEcns
- lastSwitchedSigma, flowDurationLambda
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.beam.sdk.options.PipelineOptions
org.apache.beam.sdk.options.PipelineOptions.AtomicLongFactory, org.apache.beam.sdk.options.PipelineOptions.CheckEnabled, org.apache.beam.sdk.options.PipelineOptions.DirectRunner, org.apache.beam.sdk.options.PipelineOptions.JobNameFactory, org.apache.beam.sdk.options.PipelineOptions.UserAgentFactory
-
-
Method Summary
-
Methods inherited from interface org.opennms.nephron.CortexOptions
getCortexAccumulationDelayMs, getCortexConsideredHosts, getCortexMaxBatchBytes, getCortexMaxBatchSize, getCortexOrgId, getCortexWriteUrl, setCortexAccumulationDelayMs, setCortexConsideredHosts, setCortexMaxBatchBytes, setCortexMaxBatchSize, setCortexOrgId, setCortexWriteUrl
-
Methods inherited from interface org.apache.beam.sdk.transforms.display.HasDisplayData
populateDisplayData
-
Methods inherited from interface org.opennms.nephron.NephronOptions
getAllowedLatenessMs, getAutoCommit, getBootstrapServers, getDefaultMaxInputDelayMs, getEarlyProcessingDelayMs, getElasticConnectTimeout, getElasticFlowIndex, getElasticIndexStrategy, getElasticPassword, getElasticRetryCount, getElasticRetryDuration, getElasticSocketTimeout, getElasticUrl, getElasticUser, getFixedWindowSizeMs, getFlowDestTopic, getFlowSourceTopic, getGroupId, getKafkaClientProperties, getLateProcessingDelayMs, getMaxFlowDurationMs, getSummaryAccumulationDelayMs, getTopK, setAllowedLatenessMs, setAutoCommit, setBootstrapServers, setDefaultMaxInputDelayMs, setEarlyProcessingDelayMs, setElasticConnectTimeout, setElasticFlowIndex, setElasticIndexStrategy, setElasticPassword, setElasticRetryCount, setElasticRetryDuration, setElasticSocketTimeout, setElasticUrl, setElasticUser, setFixedWindowSizeMs, setFlowDestTopic, setFlowSourceTopic, setGroupId, setKafkaClientProperties, setLateProcessingDelayMs, setMaxFlowDurationMs, setSummaryAccumulationDelayMs, setTopK
-
-
-
-
Method Detail
-
getSeed
@Long(123456L) Long getSeed()
-
setSeed
void setSeed(Long num)
-
getFlowsPerWindow
@Long(1000L) Long getFlowsPerWindow()
-
setFlowsPerWindow
void setFlowsPerWindow(Long num)
-
getMinSplits
@Integer(1) Integer getMinSplits()
-
setMinSplits
void setMinSplits(Integer num)
-
getMaxSplits
@Integer(1) Integer getMaxSplits()
-
setMaxSplits
void setMaxSplits(Integer num)
-
getNumWindows
@Integer(10) Integer getNumWindows()
-
setNumWindows
void setNumWindows(Integer num)
-
getMinExporter
@Integer(2) Integer getMinExporter()
-
setMinExporter
void setMinExporter(Integer num)
-
getNumExporters
@Integer(5) Integer getNumExporters()
-
setNumExporters
void setNumExporters(Integer num)
-
getNumClockSkewGroups
@Integer(1) Integer getNumClockSkewGroups()
-
setNumClockSkewGroups
void setNumClockSkewGroups(Integer num)
-
getClockSkewMs
@Long(10000L) Long getClockSkewMs()
-
setClockSkewMs
void setClockSkewMs(Long num)
-
getClockSkewDirection
@Enum("BOTH") ClockSkewDirection getClockSkewDirection()
-
setClockSkewDirection
void setClockSkewDirection(ClockSkewDirection value)
-
getMinInterface
@Integer(3) Integer getMinInterface()
-
setMinInterface
void setMinInterface(Integer num)
-
getNumInterfaces
@Integer(1) Integer getNumInterfaces()
-
setNumInterfaces
void setNumInterfaces(Integer num)
-
getNumProtocols
@Integer(10) Integer getNumProtocols()
-
setNumProtocols
void setNumProtocols(Integer num)
-
getNumApplications
@Integer(10) Integer getNumApplications()
-
setNumApplications
void setNumApplications(Integer num)
-
getNumHosts
@Integer(5) Integer getNumHosts()
-
setNumHosts
void setNumHosts(Integer num)
-
getNumEcns
@Integer(4) Integer getNumEcns()
-
setNumEcns
void setNumEcns(Integer num)
-
getNumDscps
@Integer(17) Integer getNumDscps()
-
setNumDscps
void setNumDscps(Integer num)
-
getLastSwitchedSigmaMs
@Long(0L) Long getLastSwitchedSigmaMs()
The standard derivation of a normal distribution that determines the shift of the end of a flow with regard to an end that would be calculated by a linear time progression.The values less than one standard deviation away from the mean account for 68.27% of the set; while two standard deviations from the mean account for 95.45%; and three standard deviations account for 99.73%.
-
setLastSwitchedSigmaMs
void setLastSwitchedSigmaMs(Long millis)
-
getFlowDurationLambda
@Double(0.5) Double getFlowDurationLambda()
The lambda (decay) factor of an exponential distribution that determines flow durations.The following table shows some probability values for specific flow durations.
For example if lambda is 0.5 then 39% of flows have a length shorter than 1 second and 99% of flows have a length that is shorter than 10 seconds..Probabilty of some flow durations duration l=0.25 l=0.5 l=1.0 1 0.22 0.39 0.63 2 0.39 0.63 0.86 3 0.53 0.78 0.95 4 0.63 0.86 0.98 5 0.71 0.92 0.99 6 0.78 0.95 0.997 10 0.92 0.99 0.99999 20 0.99 0.99999 1
-
setFlowDurationLambda
void setFlowDurationLambda(Double lambda)
-
getPlaybackMode
@Boolean(true) Boolean getPlaybackMode()
In playback mode timestamps are calculated based on the givenstartwhereas in non-playback mode the current time is used. In non-playback mode either the setting forflowsPerWindoworflowsPerSecondis calculated:- If
flowsPerSecondis set thenflowsPerWindowis calculated byflowsPerSec * windowSizeInSec - otherwise
flowsPerSecondis calculated byflowsPerWindow / windowSizeInSec
- If
-
setPlaybackMode
void setPlaybackMode(Boolean value)
-
getStartMs
@Long(1500000000000L) Long getStartMs()
-
setStartMs
void setStartMs(Long num)
-
getFlowsPerSecond
@Long(0L) Long getFlowsPerSecond()
-
setFlowsPerSecond
void setFlowsPerSecond(Long value)
-
-