Show / Hide Table of Contents

# Class TcpDiscoverySpi

TCP discover service provider.

##### Inheritance

System.Object
TcpDiscoverySpi

##### Implements

IDiscoverySpi

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Discovery.Tcp

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public class TcpDiscoverySpi : IDiscoverySpi

### Constructors

#### TcpDiscoverySpi()

Initializes a new instance of the TcpDiscoverySpi class.

##### Declaration

    public TcpDiscoverySpi()

### Fields

#### DefaultAckTimeout

Default acknowledgement timeout.

##### Declaration

    public static readonly TimeSpan DefaultAckTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultIpFinderCleanFrequency

Default value for the IpFinderCleanFrequency property.

##### Declaration

    public static readonly TimeSpan DefaultIpFinderCleanFrequency

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultJoinTimeout

Default join timeout.

##### Declaration

    public static readonly TimeSpan DefaultJoinTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultLocalPort

Default value for the LocalPort property.

##### Declaration

    public const int DefaultLocalPort = 47500

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultLocalPortRange

Default value for the LocalPortRange property.

##### Declaration

    public const int DefaultLocalPortRange = 100

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultMaxAckTimeout

Default maximum acknowledgement timeout.

##### Declaration

    public static readonly TimeSpan DefaultMaxAckTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultNetworkTimeout

Default network timeout.

##### Declaration

    public static readonly TimeSpan DefaultNetworkTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultReconnectCount

Default value for the ReconnectCount property.

##### Declaration

    public const int DefaultReconnectCount = 10

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultSocketTimeout

Default socket timeout.

##### Declaration

    public static readonly TimeSpan DefaultSocketTimeout

##### Field Value

Type | Description
--- | ---
System.TimeSpan |

#### DefaultThreadPriority

Default value for the ThreadPriority property.

##### Declaration

    public const int DefaultThreadPriority = 10

##### Field Value

Type | Description
--- | ---
System.Int32 |

#### DefaultTopologyHistorySize

Default value for the TopologyHistorySize property.

##### Declaration

    public const int DefaultTopologyHistorySize = 1000

##### Field Value

Type | Description
--- | ---
System.Int32 |

### Properties

#### AckTimeout

Gets or sets the timeout for receiving acknowledgement for sent message.

##### Declaration

    public TimeSpan AckTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### ClientReconnectDisabled

Gets or sets a value indicating whether client does not try to reconnect after server detected client node failure.

##### Declaration

    public bool ClientReconnectDisabled { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### ForceServerMode

Gets or sets a value indicating whether TcpDiscoverySpi is started in server mode regardless of ClientMode setting.

##### Declaration

    public bool ForceServerMode { get; set; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### IpFinder

Gets or sets the IP finder which defines how nodes will find each other on the network.

##### Declaration

    public ITcpDiscoveryIpFinder IpFinder { get; set; }

##### Property Value

Type | Description
--- | ---
ITcpDiscoveryIpFinder |

#### IpFinderCleanFrequency

Gets or sets the IP finder clean frequency.

##### Declaration

    public TimeSpan IpFinderCleanFrequency { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### JoinTimeout

Gets or sets the join timeout.

##### Declaration

    public TimeSpan JoinTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### LocalAddress

Gets or sets the local host IP address that discovery SPI uses.

##### Declaration

    public string LocalAddress { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### LocalPort

Gets or sets the local port to listen to.

##### Declaration

    public int LocalPort { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### LocalPortRange

Gets or sets the range for local ports. Local node will try to bind on first available port starting from LocalPort up until (LocalPort + LocalPortRange).

##### Declaration

    public int LocalPortRange { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### MaxAckTimeout

Gets or sets the maximum timeout for receiving acknowledgement for sent message.

##### Declaration

    public TimeSpan MaxAckTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### NetworkTimeout

Gets or sets the network timeout.

##### Declaration

    public TimeSpan NetworkTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### ReconnectCount

Gets or sets the number of times node tries to (re)establish connection to another node.

##### Declaration

    public int ReconnectCount { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### SocketTimeout

Gets or sets the socket timeout.

##### Declaration

    public TimeSpan SocketTimeout { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### StatisticsPrintFrequency

Gets or sets the statistics print frequency. System.TimeSpan.Zero for no statistics.

##### Declaration

    public TimeSpan StatisticsPrintFrequency { get; set; }

##### Property Value

Type | Description
--- | ---
System.TimeSpan |

#### ThreadPriority

Sets thread priority, 1 (lowest) to 10 (highest). All threads within SPI will be started with it.

##### Declaration

    public int ThreadPriority { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### TopologyHistorySize

Gets or sets the size of topology snapshots history.

##### Declaration

    public int TopologyHistorySize { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

### Implements

IDiscoverySpi