Table of Contents

Class PartitionInfo

Namespace
Org.Apache.Kafka.Common
Assembly
MASES.KNet.dll
public class PartitionInfo : JVMBridgeBase<PartitionInfo>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
PartitionInfo
Implements
Inherited Members

Constructors

PartitionInfo()

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

public PartitionInfo()

PartitionInfo(String, int, Node, Node[], Node[])

public PartitionInfo(String arg0, int arg1, Node arg2, Node[] arg3, Node[] arg4)

Parameters

arg0 String

String

arg1 int

int

arg2 Node

Node

arg3 Node[]

Node

arg4 Node[]

Node

PartitionInfo(String, int, Node, Node[], Node[], Node[])

public PartitionInfo(String arg0, int arg1, Node arg2, Node[] arg3, Node[] arg4, Node[] arg5)

Parameters

arg0 String

String

arg1 int

int

arg2 Node

Node

arg3 Node[]

Node

arg4 Node[]

Node

arg5 Node[]

Node

PartitionInfo(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 PartitionInfo(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

InSyncReplicas()

public Node[] InSyncReplicas()

Returns

Node[]

Node

Leader()

public Node Leader()

Returns

Node

Node

OfflineReplicas()

public Node[] OfflineReplicas()

Returns

Node[]

Node

Partition()

public int Partition()

Returns

int

int

Replicas()

public Node[] Replicas()

Returns

Node[]

Node

Topic()

public String Topic()

Returns

String

String