ce33ac8639cf89977c1c1f7f79d19e15a2da3dae
[controller.git] / opendaylight / clustering / services_implementation / src / main / java / org / opendaylight / controller / clustering / services_implementation / internal / ClusterGlobalManager.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.services_implementation.internal;
11
12 import java.util.Map;
13 import org.opendaylight.controller.clustering.services.ICacheUpdateAware;
14 import org.opendaylight.controller.clustering.services.IClusterGlobalServices;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
17
18 public class ClusterGlobalManager
19     extends ClusterManagerCommon
20     implements IClusterGlobalServices {
21     protected static final Logger logger = LoggerFactory.getLogger(ClusterGlobalManager.class);
22
23     @Override
24     void setCacheUpdateAware(Map props, ICacheUpdateAware s) {
25         logger.trace("setCacheUpdateAware");
26         if (props.get("containerName") != null) {
27             // If we got a reference with the containerName property
28             // that is not what we are looking for, so filter it out.
29             return;
30         }
31         super.setCacheUpdateAware(props, s);
32     }
33
34     @Override
35     void unsetCacheUpdateAware(Map props, ICacheUpdateAware s) {
36         logger.trace("unsetCacheUpdateAware");
37         if (props.get("containerName") != null) {
38             // If we got a reference with the containerName property
39             // that is not what we are looking for, so filter it out.
40             return;
41         }
42         super.unsetCacheUpdateAware(props, s);
43     }
44 }