JPPF Issue Tracker
Please log in to bookmark issues
CLOSED  Feature request JPPF-47  -  Add a management API to determine how many nodes are attached to a driver
Posted Aug 23, 2012 - updated Aug 24, 2012
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
  • Assigned to
    Not assigned to anyone
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Category
    Management / Monitoring
  • Resolution
  • Priority
  • Targetted for
    icon_milestones.png JPPF 3.2
Issue description
Currently, the JPPFDriverMBean interface provides the method
public Collection<JPPFManagementInfo> nodesInformation() throws Exception;
This allows counting the number of nodes attached to the driver by getting the size of the returned collection. However, if all you need is the number of nodes, this method call can be costly when there is a large number of nodes, both in terms of cpu usage and network traffic between driver and client.

We propose to add
public Integer nbNodes() throws Exception;
for that purpose.

Comment posted by
Aug 24, 07:39
This feature is now implemented. Added unit test and updated documentation accordingly. Chages committed to SVN revision 2342

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.