Table of Contents

Class StreamsResetter

Namespace
Org.Apache.Kafka.Tools
Assembly
MASES.KNet.dll
public class StreamsResetter : JVMBridgeBase<StreamsResetter>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IJVMBridgeMain
Inheritance
JVMBridgeBase
JVMBridgeBase<StreamsResetter>
StreamsResetter
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
IJVMBridgeMain
Inherited Members
JVMBridgeBase<StreamsResetter>.IsAssignableFrom(IJavaType)
JVMBridgeBase<StreamsResetter>.IsAssignableFrom<T>()
JVMBridgeBase<StreamsResetter>.Execute<T>(params T[])
JVMBridgeBase<StreamsResetter>.DynBridgeClazz
JVMBridgeBase<StreamsResetter>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

StreamsResetter()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public StreamsResetter()

StreamsResetter(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public StreamsResetter(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

DoDelete(List<String>, Admin)

public void DoDelete(List<String> arg0, Admin arg1)

Parameters

arg0 List<String>

List

arg1 Admin

Admin

Execute(String[])

public int Execute(String[] arg0)

Parameters

arg0 String[]

String

Returns

int

int

Execute(String[], Properties)

public int Execute(String[] arg0, Properties arg1)

Parameters

arg0 String[]

String

arg1 Properties

Properties

Returns

int

int

Main(String[])

public static void Main(String[] arg0)

Parameters

arg0 String[]

String

MatchesInternalTopicFormat(String)

public static bool MatchesInternalTopicFormat(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

MaybeSeekToEnd(String, Consumer<byte[], byte[]>, Set<TopicPartition>)

public void MaybeSeekToEnd(String arg0, Consumer<byte[], byte[]> arg1, Set<TopicPartition> arg2)

Parameters

arg0 String

String

arg1 Consumer<byte[], byte[]>

Consumer

arg2 Set<TopicPartition>

Set

ResetApplication(string, string, params string[])

Resets an applicationId of Apache Kafka Streams

public static bool ResetApplication(string bootstrapserver, string applicationId, params string[] inputTopics)

Parameters

bootstrapserver string

The bootstrap server of the Apache Kafka cluster

applicationId string

The application id to be resetted

inputTopics string[]

Input topics to be resetted

Returns

bool

true if everything goes well, otherwise false

Exceptions

ArgumentNullException

Either applicationId or bootstrapserver are null

ResetApplicationForced(string, string, params string[])

Resets an applicationId of Apache Kafka Streams and forces deletion of active members from the group

public static bool ResetApplicationForced(string bootstrapserver, string applicationId, params string[] inputTopics)

Parameters

bootstrapserver string

The bootstrap server of the Apache Kafka cluster

applicationId string

The application id to be resetted

inputTopics string[]

Input topics to be resetted

Returns

bool

true if everything goes well, otherwise false

Exceptions

ArgumentNullException

Either applicationId or bootstrapserver are null

ResetOffsetsFromResetPlan(Consumer<byte[], byte[]>, Set<TopicPartition>, Map<TopicPartition, Long>)

public void ResetOffsetsFromResetPlan(Consumer<byte[], byte[]> arg0, Set<TopicPartition> arg1, Map<TopicPartition, Long> arg2)

Parameters

arg0 Consumer<byte[], byte[]>

Consumer

arg1 Set<TopicPartition>

Set

arg2 Map<TopicPartition, Long>

Map

ResetOffsetsTo(Consumer<byte[], byte[]>, Set<TopicPartition>, Long)

public void ResetOffsetsTo(Consumer<byte[], byte[]> arg0, Set<TopicPartition> arg1, Long arg2)

Parameters

arg0 Consumer<byte[], byte[]>

Consumer

arg1 Set<TopicPartition>

Set

arg2 Long

Long

ResetToDatetime(Consumer<byte[], byte[]>, Set<TopicPartition>, Long)

public void ResetToDatetime(Consumer<byte[], byte[]> arg0, Set<TopicPartition> arg1, Long arg2)

Parameters

arg0 Consumer<byte[], byte[]>

Consumer

arg1 Set<TopicPartition>

Set

arg2 Long

Long

ShiftOffsetsBy(Consumer<byte[], byte[]>, Set<TopicPartition>, long)

public void ShiftOffsetsBy(Consumer<byte[], byte[]> arg0, Set<TopicPartition> arg1, long arg2)

Parameters

arg0 Consumer<byte[], byte[]>

Consumer

arg1 Set<TopicPartition>

Set

arg2 long

long