C# Class SqlAzureWriterStormApplication.IISLogGeneratorSpout

IISLogGeneratorSpout - A SCP.Net C# Bolt that emits random IIS Logs for upstream tasks. This is a non-transactional spout that can operate with or without acks In enableAck = true mode, it caches the tuples and re-emits them on Fail
Inheritance: ISCPSpout
Show file Open project: Azure-Samples/hdinsight-dotnet-storm-powerbi

Public Properties

Property Type Description
OutputFieldTypes List
OutputFields List
RandomClientIps List
RandomMethods List
RandomResponses List
RandomUris List
random System.Random

Public Methods

Method Description
Ack ( long seqId, object>.Dictionary parms ) : void

The ack method of a spout

Fail ( long seqId, object>.Dictionary parms ) : void

The fail method of a spout

Get ( Context context, Object>.Dictionary parms ) : IISLogGeneratorSpout

IISLogGeneratorSpout contructor delegate that SCP.Net uses to invoke the instance of this class

GetRandomIISLog ( ) : Values

Generate a random IISLog

IISLogGeneratorSpout ( Context context, object>.Dictionary parms = null ) : Microsoft.SCP
NextTuple ( object>.Dictionary parms ) : void

The NextTuple method of a spout

Method Details

Ack() public method

The ack method of a spout
public Ack ( long seqId, object>.Dictionary parms ) : void
seqId long The sequence id of the tuple
parms object>.Dictionary
return void

Fail() public method

The fail method of a spout
public Fail ( long seqId, object>.Dictionary parms ) : void
seqId long The sequence id of the tuple
parms object>.Dictionary
return void

Get() public static method

IISLogGeneratorSpout contructor delegate that SCP.Net uses to invoke the instance of this class
public static Get ( Context context, Object>.Dictionary parms ) : IISLogGeneratorSpout
context Context
parms Object>.Dictionary
return IISLogGeneratorSpout

GetRandomIISLog() public static method

Generate a random IISLog
public static GetRandomIISLog ( ) : Values
return Values

IISLogGeneratorSpout() public method

public IISLogGeneratorSpout ( Context context, object>.Dictionary parms = null ) : Microsoft.SCP
context Context
parms object>.Dictionary
return Microsoft.SCP

NextTuple() public method

The NextTuple method of a spout
public NextTuple ( object>.Dictionary parms ) : void
parms object>.Dictionary
return void

Property Details

OutputFieldTypes public static property

public static List OutputFieldTypes
return List

OutputFields public static property

public static List OutputFields
return List

RandomClientIps public static property

public static List RandomClientIps
return List

RandomMethods public static property

public static List RandomMethods
return List

RandomResponses public static property

public static List RandomResponses
return List

RandomUris public static property

public static List RandomUris
return List

random public static property

public static Random,System random
return System.Random