JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
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
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
     
    Closed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Management / Monitoring
  • Resolution
    RESOLVED
  • Priority
    Normal
  • 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.

#2
Comment posted by
 lolo4j
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.