Lines Matching refs:notification
119 public void handleNotification(Notification notification, java.lang.Object handback) {
122 sb.append(notification.getType());
124 sb.append(notification.getSequenceNumber());
126 sb.append(notification.getMessage());
128 sb.append(notification.getUserData());
131 String notif = "Notification: '" + notification + "'";
132 String source = "Notification: source: '" + notification.getSource() + "'";
135 if (notification.getType().equals("ogaaction")) {
141 handleObjectName(sb, notification, handback);
143 } else if (notification.getType().equals("ogainfostring")) {
150 logger.finest("Received notification from '" + pingBean + "' " + sb.toString());
152 } else if (notification.getType().equals("ogainfolong")) {
159 logger.info("Received notification from '" + pingBean + "' " + sb.toString());
160 if ("StartIndexing".equals(notification.getMessage())) {
161 starttime = ((Long) notification.getUserData()).longValue();
162 } else if ("FinishedIndexing".equals(notification.getMessage())) {
163 endtime = ((Long) notification.getUserData()).longValue();
165 logger.warning("Unknown message " + notification.getMessage());
175 private void handleObjectName(StringBuilder sb, Notification notification, Object handback) {
177 logger.fine("Received notification from '" + pingBean + "' " + sb.toString());
179 //filesInfo.append(notification.getMessage());
180 filesInfo.append(notification.getUserData().toString());