| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| org.apache.jcs.auxiliary.lateral.ZombieLateralCacheService |
|
|
| 1 | package org.apache.jcs.auxiliary.lateral; |
|
| 2 | ||
| 3 | /* |
|
| 4 | * Licensed to the Apache Software Foundation (ASF) under one |
|
| 5 | * or more contributor license agreements. See the NOTICE file |
|
| 6 | * distributed with this work for additional information |
|
| 7 | * regarding copyright ownership. The ASF licenses this file |
|
| 8 | * to you under the Apache License, Version 2.0 (the |
|
| 9 | * "License"); you may not use this file except in compliance |
|
| 10 | * with the License. You may obtain a copy of the License at |
|
| 11 | * |
|
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 13 | * |
|
| 14 | * Unless required by applicable law or agreed to in writing, |
|
| 15 | * software distributed under the License is distributed on an |
|
| 16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
|
| 17 | * KIND, either express or implied. See the License for the |
|
| 18 | * specific language governing permissions and limitations |
|
| 19 | * under the License. |
|
| 20 | */ |
|
| 21 | ||
| 22 | import java.io.Serializable; |
|
| 23 | import java.util.Collections; |
|
| 24 | import java.util.Set; |
|
| 25 | ||
| 26 | import org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheService; |
|
| 27 | import org.apache.jcs.engine.ZombieCacheService; |
|
| 28 | import org.apache.jcs.engine.behavior.ICacheElement; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * The ZombieLateralCacheService is used as a facade when the lateral is not |
|
| 32 | * available. It balks when the lateral is in error. When lateral service is |
|
| 33 | * restored, this is replaced by a live facade. |
|
| 34 | * |
|
| 35 | */ |
|
| 36 | 14 | public class ZombieLateralCacheService |
| 37 | extends ZombieCacheService |
|
| 38 | implements ILateralCacheService |
|
| 39 | { |
|
| 40 | ||
| 41 | /* |
|
| 42 | * (non-Javadoc) |
|
| 43 | * |
|
| 44 | * @see org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheService#update(org.apache.jcs.engine.behavior.ICacheElement, |
|
| 45 | * long) |
|
| 46 | */ |
|
| 47 | public void update( ICacheElement item, long listenerId ) |
|
| 48 | { |
|
| 49 | // zombies have no inner life |
|
| 50 | 32 | } |
| 51 | ||
| 52 | /* |
|
| 53 | * (non-Javadoc) |
|
| 54 | * |
|
| 55 | * @see org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheService#remove(java.lang.String, |
|
| 56 | * java.io.Serializable, long) |
|
| 57 | */ |
|
| 58 | public void remove( String cacheName, Serializable key, long listenerId ) |
|
| 59 | { |
|
| 60 | // zombies have no inner life |
|
| 61 | 0 | } |
| 62 | ||
| 63 | /* |
|
| 64 | * (non-Javadoc) |
|
| 65 | * |
|
| 66 | * @see org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheService#removeAll(java.lang.String, |
|
| 67 | * long) |
|
| 68 | */ |
|
| 69 | public void removeAll( String cacheName, long listenerId ) |
|
| 70 | { |
|
| 71 | // zombies have no inner life |
|
| 72 | 0 | } |
| 73 | ||
| 74 | /* |
|
| 75 | * (non-Javadoc) |
|
| 76 | * |
|
| 77 | * @see org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheService#getGroupKeys(java.lang.String, |
|
| 78 | * java.lang.String) |
|
| 79 | */ |
|
| 80 | public Set getGroupKeys( String cacheName, String groupName ) |
|
| 81 | { |
|
| 82 | 0 | return Collections.EMPTY_SET; |
| 83 | } |
|
| 84 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |