GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.spi.loadbalancing.weightedrandom
Interface GridWeightedRandomLoadBalancingSpiMBean

All Superinterfaces:
GridSpiManagementMBean
All Known Implementing Classes:
GridWeightedRandomLoadBalancingSpi

@GridMBeanDescription(value="MBean that provides access to weighted random load balancing SPI configuration.")
public interface GridWeightedRandomLoadBalancingSpiMBean
extends GridSpiManagementMBean

Management MBean for GridWeightedRandomLoadBalancingSpi SPI.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

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

 

Method Summary
 int getNodeWeight()
          Gets weight of this node.
 boolean isUseWeights()
          Checks whether node weights are considered when doing random load balancing.
 
Methods inherited from interface org.gridgain.grid.spi.GridSpiManagementMBean
getAuthor, getGridGainHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion
 

Method Detail

isUseWeights

@GridMBeanDescription(value="Whether node weights are considered when doing random load balancing.")
boolean isUseWeights()
Checks whether node weights are considered when doing random load balancing.

Returns:
If true then random load is distributed according to node weights.

getNodeWeight

@GridMBeanDescription(value="Weight of this node.")
int getNodeWeight()
Gets weight of this node.

Returns:
Weight of this node.

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.