Revision 6470
Added by Matt Jones over 12 years ago
HazelcastService.java | ||
---|---|---|
244 | 244 |
/** |
245 | 245 |
* Listen for new Hazelcast member events |
246 | 246 |
*/ |
247 |
@Override |
|
248 | 247 |
public void instanceCreated(InstanceEvent event) { |
249 | 248 |
logMetacat.info("New Hazelcast instance created: " + |
250 | 249 |
event.getInstance().getId() + ", " + |
... | ... | |
252 | 251 |
|
253 | 252 |
} |
254 | 253 |
|
255 |
@Override |
|
256 | 254 |
public void instanceDestroyed(InstanceEvent event) { |
257 | 255 |
logMetacat.info("Hazelcast instance removed: " + |
258 | 256 |
event.getInstance().getId() + ", " + |
... | ... | |
263 | 261 |
/** |
264 | 262 |
* Refresh the Hazelcast service by restarting it |
265 | 263 |
*/ |
266 |
@Override |
|
267 | 264 |
protected void doRefresh() throws ServiceException { |
268 | 265 |
|
269 | 266 |
// TODO: verify that the correct config file is still used |
... | ... | |
278 | 275 |
* |
279 | 276 |
* @param event - The EntryEvent that occurred |
280 | 277 |
*/ |
281 |
@Override |
|
282 | 278 |
public void entryAdded(EntryEvent<Identifier, SystemMetadata> event) { |
283 | 279 |
// handle as update - that method will create if necessary |
284 | 280 |
entryUpdated(event); |
... | ... | |
291 | 287 |
* |
292 | 288 |
* @param event - The EntryEvent that occurred |
293 | 289 |
*/ |
294 |
@Override |
|
295 | 290 |
public void entryEvicted(EntryEvent<Identifier, SystemMetadata> event) { |
296 | 291 |
// nothing to do, entries are still in the backing store |
297 | 292 |
|
... | ... | |
304 | 299 |
* |
305 | 300 |
* @param event - The EntryEvent that occurred |
306 | 301 |
*/ |
307 |
@Override |
|
308 | 302 |
public void entryRemoved(EntryEvent<Identifier, SystemMetadata> event) { |
309 | 303 |
// we don't remove objects |
310 | 304 |
|
... | ... | |
317 | 311 |
* |
318 | 312 |
* @param event - The EntryEvent that occurred |
319 | 313 |
*/ |
320 |
@Override |
|
321 | 314 |
public void entryUpdated(EntryEvent<Identifier, SystemMetadata> event) { |
322 | 315 |
|
323 | 316 |
logMetacat.debug("Entry added/updated to System Metadata map: " + event.getKey().getValue()); |
Also available in: Unified diff
Removing incorrect @Override annotations that were preventing compilation. The methods marked did not actually override a method in the superclass, so they were not compiling. I think @Overrides was being mistaken for methods that implement an interface but aren't actually in the superclass.