GoldenGateBindings / com.fitbit.goldengate.bindings.io / Blaster

Blaster

class Blaster : StackService

Stack service for supporting blasting random packets over attached GG stack.

To start blasting call start method, blasting will only be stopped after calling stop

Parameters

lwipBased - true is configured with a Network Interface, false otherwise (default is true)

packetSize - Size of each packet to send.

maxPacketCount - Number of packets to send, or 0 for unlimited.

sendInterval - Time interval between packets, in milliseconds, or 0 for max speed.

Constructors

<init>

Blaster(lwipBased: Boolean = true, packetSize: Int = BLASTER_DEFAULT_PACKET_SIZE, maxPacketCount: Int = 0, sendInterval: Long = 0L)

Stack service for supporting blasting random packets over attached GG stack.

Functions

attach

fun attach(dataSinkDataSource: DataSinkDataSource): Unit

Attach the source and sink

close

fun close(): Unit

detach

fun detach(): Unit

getStats

fun getStats(): Maybe<PerfDataStats>

Get stats for ongoing blast operation

start

fun start(): Unit

Start Blasting data packets

stop

fun stop(): Unit

Stop Blasting data packets

Inherited Functions

setFilterGroup

open fun setFilterGroup(group: CoapGroupRequestFilterMode, key: NodeKey<String>): Unit

Update the current filter group used by the CoAP request filter.