GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.spi.collision.jobstealing
Interface GridJobStealingCollisionSpiMBean

All Superinterfaces:
GridSpiManagementMBean
All Known Implementing Classes:
GridJobStealingCollisionSpi

@GridMBeanDescription(value="MBean for job stealing based collision SPI.")
public interface GridJobStealingCollisionSpiMBean
extends GridSpiManagementMBean

Management MBean for job stealing based collision 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 getActiveJobsThreshold()
          Gets number of jobs that can be executed in parallel.
 int getCurrentActiveJobsCount()
          Gets current number of jobs that are being executed.
 int getCurrentJobsToStealCount()
          Gets current number of jobs to be stolen.
 int getCurrentWaitJobsCount()
          Gets current number of jobs that wait for the execution.
 int getMaximumStealingAttempts()
          Gets maximum number of attempts to steal job by another node.
 long getMessageExpireTime()
          Message expire time configuration parameter.
 Map<String,? extends Serializable> getStealingAttributes()
          Configuration parameter to enable stealing to/from only nodes that have these attributes set (see GridNode.getAttribute(String) and GridConfiguration.getUserAttributes() methods).
 int getTotalStolenJobsCount()
          Gets total number of stolen jobs.
 int getWaitJobsThreshold()
          Gets job count threshold at which this node will start stealing jobs from other nodes.
 boolean isStealingEnabled()
          Gets flag indicating whether this node should attempt to steal jobs from other nodes.
 
Methods inherited from interface org.gridgain.grid.spi.GridSpiManagementMBean
getAuthor, getGridGainHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, getVendorEmail, getVendorUrl, getVersion
 

Method Detail

getCurrentJobsToStealCount

@GridMBeanDescription(value="Number of jobs to be stolen.")
int getCurrentJobsToStealCount()
Gets current number of jobs to be stolen. This is outstanding requests number.

Returns:
Number of jobs to be stolen.

getCurrentWaitJobsCount

@GridMBeanDescription(value="Number of jobs that wait for execution.")
int getCurrentWaitJobsCount()
Gets current number of jobs that wait for the execution.

Returns:
Number of jobs that wait for execution.

getCurrentActiveJobsCount

@GridMBeanDescription(value="Number of active jobs.")
int getCurrentActiveJobsCount()
Gets current number of jobs that are being executed.

Returns:
Number of active jobs.

getTotalStolenJobsCount

@GridMBeanDescription(value="Number of stolen jobs.")
int getTotalStolenJobsCount()
Gets total number of stolen jobs.

Returns:
Number of stolen jobs.

getActiveJobsThreshold

@GridMBeanDescription(value="Number of jobs that can be executed in parallel.")
int getActiveJobsThreshold()
Gets number of jobs that can be executed in parallel.

Returns:
Number of jobs that can be executed in parallel.

getWaitJobsThreshold

@GridMBeanDescription(value="Job count threshold.")
int getWaitJobsThreshold()
Gets job count threshold at which this node will start stealing jobs from other nodes.

Returns:
Job count threshold.

getMessageExpireTime

@GridMBeanDescription(value="Message expire time.")
long getMessageExpireTime()
Message expire time configuration parameter. If no response is received from a busy node to a job stealing message, then implementation will assume that message never got there, or that remote node does not have this node included into topology of any of the jobs it has.

Returns:
Message expire time.

isStealingEnabled

@GridMBeanDescription(value="Flag indicating whether this node should attempt to steal jobs from other nodes.")
boolean isStealingEnabled()
Gets flag indicating whether this node should attempt to steal jobs from other nodes. If false, then this node will steal allow jobs to be stolen from it, but won't attempt to steal any jobs from other nodes.

Default value is true.

Returns:
Flag indicating whether this node should attempt to steal jobs from other nodes.

getMaximumStealingAttempts

@GridMBeanDescription(value="Maximum number of attempts to steal job by another node.")
int getMaximumStealingAttempts()
Gets maximum number of attempts to steal job by another node. If not specified, GridJobStealingCollisionSpi.DFLT_MAX_STEALING_ATTEMPTS value will be used.

Returns:
Maximum number of attempts to steal job by another node.

getStealingAttributes

@GridMBeanDescription(value="Node attributes to enable job stealing for.")
Map<String,? extends Serializable> getStealingAttributes()
Configuration parameter to enable stealing to/from only nodes that have these attributes set (see GridNode.getAttribute(String) and GridConfiguration.getUserAttributes() methods).

Returns:
Node attributes to enable job stealing for.

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.