Should not allow nodes to have same node name
[controller.git] / opendaylight / clustering / test / src / main / java / org / opendaylight / controller / clustering / test / internal / LoggingListener.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.clustering.test.internal;
11
12 import org.opendaylight.controller.clustering.services.IGetUpdates;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
15
16 public class LoggingListener implements IGetUpdates<Integer, StringContainer> {
17     protected static Logger logger = LoggerFactory
18             .getLogger(LoggingListener.class);
19
20     @Override
21     public void entryCreated(Integer key, String containerName,
22             String cacheName, boolean originLocal) {
23         logger.debug(" Cache entry with key " + key + " created in cache "
24                 + cacheName);
25     }
26
27     @Override
28     public void entryUpdated(Integer key, StringContainer newValue,
29             String containerName, String cacheName, boolean originLocal) {
30         logger.debug(" Cache entry with key " + key + " modified to value "
31                 + newValue + "  in cache " + cacheName);
32     }
33
34     @Override
35     public void entryDeleted(Integer key, String containerName,
36             String cacheName, boolean originLocal) {
37         logger.debug(" Cache entry with key " + key + " removed in cache "
38                 + cacheName);
39     }
40 }