JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request JPPF-84  -  Add isLocal() to JPPFManagementInfo
Posted Oct 18, 2012 - updated Oct 18, 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
     jandam
  • Owned by
    Not owned by anyone
  • Category
    Management / Monitoring
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Targetted for
    icon_milestones.png JPPF 3.2
Issue description
It can be useful for monitoring application to know that node is local before making connection to AdminMBean. JPPFManagementInfo already has field type. That can hold flag whether node is local. Now are used only values 0 for DRIVER and 1 for NODE. I suggest to use 'and' MASK=15 for getType and value for indicator LOCAL=128. So getType will be getType() { return type & MASK; } and isNodeLocal() { return (type & LOCAL) == LOCAL)

#2
Comment posted by
 jandam
Oct 18, 13:57
Implemented in trunk revision 2483. Constant JPPFManagementInfo.LOCAL=64, added method: isLocal()

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.