Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha2
-
Fix Version/s: 2.0-Alpha3
-
Component/s: Push Library
-
Labels:None
-
Environment:n/a
Description
It will be very useful in development to log a warning when PushContext.push(String group) is called for a non-existent group. Currently, the group name is treated as a single pushId if the group does not exist, but we could still check if that pushId exists, and if not, log a warning. This will improve the monitoring capabilities of an ICEpush application.
Note that in a clustered environment a node may have no knowledge of a particular group, and a warning might be erroneously logged.
Note that in a clustered environment a node may have no knowledge of a particular group, and a warning might be erroneously logged.
Is that warning being logged in auction because of the older icepush.jar version currently used in Glimmer which was checking pushIDs directly (when you previous could push to id's directly)? Couldn't we just move the logging to LocalPushGroupManager like so. The warning could just be ignored for clustered deployments.
Index: /home/philip/workspace/ICEpush/core/src/main/java/org/icepush/LocalPushGroupManager.java
{ LOGGER.log(Level.FINEST, "Push notification triggered for '" + groupName + "' group."); }===================================================================
— /home/philip/workspace/ICEpush/core/src/main/java/org/icepush/LocalPushGroupManager.java (revision 20901)
+++ /home/philip/workspace/ICEpush/core/src/main/java/org/icepush/LocalPushGroupManager.java (working copy)
@@ -94,7 +94,10 @@
if (LOGGER.isLoggable(Level.FINEST))
+ if( ! groupMap.containsKey(groupName))
+ LOGGER.warning(..);
+ else
+ outboundNotifier.notifyObservers(groupMap.get(groupName).getPushIDs());
}
}