GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.spi.discovery.multicast
Interface GridMulticastDiscoverySpiMBean

All Superinterfaces:
GridSpiManagementMBean
All Known Implementing Classes:
GridMulticastDiscoverySpi

@GridMBeanDescription(value="MBean that provides access to IP-multicast based discovery SPI configuration.")
public interface GridMulticastDiscoverySpiMBean
extends GridSpiManagementMBean

Management bean for GridMulticastDiscoverySpi.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.1.0

 

Method Summary
 long getHeartbeatFrequency()
          Gets delay between heartbeat requests.
 int getLeaveAttempts()
          Gets number of attempts to notify another nodes that this one is leaving grid.
 String getLocalHost()
          Gets local host IP address that discovery SPI uses.
 int getLocalPortRange()
          Gets local port range for either TCP or multicast ports.
 int getMaximumMissedHeartbeats()
          Gets number of heartbeat requests that could be missed before remote node is considered to be failed.
 String getMulticastGroup()
          Gets IP address of multicast group.
 int getMulticastPort()
          Gets port number which multicast messages are sent to.
 int getRemoteNodeCount()
          Gets the number of remote nodes.
 Collection<UUID> getRemoteNodeIds()
          Gets set of remote nodes IDs that have READY state.
 int getTcpPort()
          Gets local port number that is used by discovery SPI.
 int getTimeToLive()
          Gets TCP messages time-to-live.
 boolean isCheckMulticastEnabled()
          By default this value is true.
 
Methods inherited from interface org.gridgain.grid.spi.GridSpiManagementMBean
getAuthor, getGridGainHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion
 

Method Detail

getMulticastGroup

@GridMBeanDescription(value="IP address of multicast group.")
String getMulticastGroup()
Gets IP address of multicast group.

Returns:
Multicast IP address.

getMulticastPort

@GridMBeanDescription(value="Port number which multicast messages are sent to.")
int getMulticastPort()
Gets port number which multicast messages are sent to.

Returns:
Port number.

getTcpPort

@GridMBeanDescription(value="Local port number that is used by discovery SPI.")
int getTcpPort()
Gets local port number that is used by discovery SPI.

Returns:
Port number.

getLocalPortRange

@GridMBeanDescription(value="Local port range for either TCP or multicast ports.")
int getLocalPortRange()
Gets local port range for either TCP or multicast ports. See GridMulticastDiscoverySpi.setLocalPortRange(int) for details.

Returns:
Local port range

getHeartbeatFrequency

@GridMBeanDescription(value="Delay between heartbeat requests in milliseconds.")
long getHeartbeatFrequency()
Gets delay between heartbeat requests. SPI sends broadcast messages in configurable time interval to another nodes to notify them about node state.

Returns:
Time period in milliseconds.

getMaximumMissedHeartbeats

@GridMBeanDescription(value="Number of heartbeat requests that could be missed before remote node is considered to be failed.")
int getMaximumMissedHeartbeats()
Gets number of heartbeat requests that could be missed before remote node is considered to be failed.

Returns:
Number of requests.

getLeaveAttempts

@GridMBeanDescription(value="Number of attempts to notify another nodes that this one is leaving grid.")
int getLeaveAttempts()
Gets number of attempts to notify another nodes that this one is leaving grid. It might be impossible to send leaving request and node will try to do it several times.

Returns:
Number of retries.

getLocalHost

@GridMBeanDescription(value="Local host IP address that discovery SPI uses.")
String getLocalHost()
Gets local host IP address that discovery SPI uses.

Returns:
IP address.

getRemoteNodeIds

@GridMBeanDescription(value="Set of remote nodes IDs.")
Collection<UUID> getRemoteNodeIds()
Gets set of remote nodes IDs that have READY state.

Returns:
Set of remote nodes IDs.

getRemoteNodeCount

@GridMBeanDescription(value="Number of remote nodes.")
int getRemoteNodeCount()
Gets the number of remote nodes.

Returns:
Number of remote nodes.

getTimeToLive

@GridMBeanDescription(value="TCP messages time-to-live.")
int getTimeToLive()
Gets TCP messages time-to-live.

Returns:
TCP messages time-to-live.

isCheckMulticastEnabled

boolean isCheckMulticastEnabled()
By default this value is true. On startup GridGain will check if local node can receive multicast packets, and if not, will not allow the node to startup.

Returns:
checkMulticastEnabled True if multicast check is enabled, false otherwise.

GridGain™ 2.1.0
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.