/** * Count the number of active role instances on this node * @param role role index * @return 0 if there are none, otherwise the #of nodes that are running and * not being released already. */ public int getActiveRoleInstances(int role) { NodeEntry nodeEntry = get(role); return (nodeEntry != null ) ? nodeEntry.getActive() : 0; }
/** * Count the number of active role instances on this node * @param role role index * @return 0 if there are none, otherwise the #of nodes that are running and * not being released already. */ public int getActiveRoleInstances(int role) { NodeEntry nodeEntry = get(role); return (nodeEntry != null ) ? nodeEntry.getActive() : 0; }