fulmine.distribution.connection.tcp
Class FTTcpNetwork

java.lang.Object
  extended by fulmine.distribution.connection.tcp.TcpNetwork
      extended by fulmine.distribution.connection.tcp.FTTcpNetwork
All Implemented Interfaces:
INetwork, IHeartbeatMonitor

public class FTTcpNetwork
extends TcpNetwork

A TcpNetwork subclass that configures the discoverer to use default UDP parameters for an FT cluster. The FT cluster network can be configured using system properties:

Author:
Ramon Servadei

Field Summary
static String DEFAULT_UDP_FT_DISCOVERY_NETWORK
          The default UDP multicast network for cluster discovery
static String DEFAULT_UDP_FT_DISCOVERY_PORT
          The default UDP port for cluster discovery
static String FT_NETWORK_INTERFACE_NAME
          The system property to use to set the NIC for FT cluster discovery.
static String UDP_FT_DISCOVERY_NETWORK
          The system property to override the default UDP multicast network for FT cluster discovery.
static String UDP_FT_DISCOVERY_PORT
          The system property to override the default UDP multicast port for FT cluster discovery.
 
Fields inherited from interface fulmine.distribution.IHeartbeatMonitor
DEFAULT_ALLOWED_MISSED_COUNT, DEFAULT_HEARTBEAT_PERIOD
 
Constructor Summary
FTTcpNetwork(String hostAddress, int tcpPort)
          Constructor that retrieves the FT clustering network values from system properties or uses default values if no system properties are set.
FTTcpNetwork(String hostAddress, int tcpPort, String udpNetwork, int udpPort, String udpNic)
          Constructor that accepts all necessary parameters for the FT cluster network.
 
Method Summary
 
Methods inherited from class fulmine.distribution.connection.tcp.TcpNetwork
createBroker, createChannel, createDiscoverer, getAllowableNetworkHeartbeatMissCount, getNetworkHeartbeatPeriod, isListeningOnlyMode, setAllowableNetworkHeartbeatMissCount, setContext, setListeningOnlyMode, setNetworkHeartbeatPeriod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UDP_FT_DISCOVERY_NETWORK

public static final String UDP_FT_DISCOVERY_NETWORK
The system property to override the default UDP multicast network for FT cluster discovery.

See Also:
TcpConnectionDiscoverer#DEFAULT_UDP_FT_DISCOVERY_NETWORK, Constant Field Values

DEFAULT_UDP_FT_DISCOVERY_NETWORK

public static final String DEFAULT_UDP_FT_DISCOVERY_NETWORK
The default UDP multicast network for cluster discovery

See Also:
Constant Field Values

UDP_FT_DISCOVERY_PORT

public static final String UDP_FT_DISCOVERY_PORT
The system property to override the default UDP multicast port for FT cluster discovery.

See Also:
TcpConnectionDiscoverer#DEFAULT_UDP_FT_DISCOVERY_PORT, Constant Field Values

DEFAULT_UDP_FT_DISCOVERY_PORT

public static final String DEFAULT_UDP_FT_DISCOVERY_PORT
The default UDP port for cluster discovery

See Also:
Constant Field Values

FT_NETWORK_INTERFACE_NAME

public static final String FT_NETWORK_INTERFACE_NAME
The system property to use to set the NIC for FT cluster discovery. This is an optional setting overriding the default. The value must be the NIC name.

See Also:
Constant Field Values
Constructor Detail

FTTcpNetwork

public FTTcpNetwork(String hostAddress,
                    int tcpPort)
Constructor that retrieves the FT clustering network values from system properties or uses default values if no system properties are set.

Parameters:
ftContextIdentity - the identity of the FT context, starts with the FT 'cluster identity'.
context - the local context
hostAddress - the IP address of the FT network IConnectionBroker
tcpPort - the TCP port of the FT network IConnectionBroker

FTTcpNetwork

public FTTcpNetwork(String hostAddress,
                    int tcpPort,
                    String udpNetwork,
                    int udpPort,
                    String udpNic)
Constructor that accepts all necessary parameters for the FT cluster network.

Parameters:
hostAddress - the IP address of the FT network IConnectionBroker
tcpPort - the TCP port of the FT network IConnectionBroker
udpNetwork - the UDP network for the FT cluster
udpPort - the UDP port for the FT cluster
udpNic - the network interface card name to bind to, null for default


Copyright © 2007-2009. All Rights Reserved.