1   package org.apache.jcs.auxiliary.lateral.socket.tcp.discovery;
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.IOException;
23  import java.io.Serializable;
24  
25  import org.apache.jcs.auxiliary.lateral.LateralCache;
26  import org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheAttributes;
27  import org.apache.jcs.engine.behavior.ICache;
28  import org.apache.jcs.engine.behavior.ICacheElement;
29  
30  /***
31   * For testing things that need a lateral cache
32   *
33   * @author Aaron Smuts
34   *
35   */
36  public class MockLateralCache
37      extends LateralCache
38      implements ICache
39  {
40      private static final long serialVersionUID = 1L;
41  
42      /***
43       * @param cattr
44       */
45      protected MockLateralCache( ILateralCacheAttributes cattr )
46      {
47          super( cattr );
48      }
49  
50      /*
51       * (non-Javadoc)
52       *
53       * @see org.apache.jcs.engine.behavior.ICache#update(org.apache.jcs.engine.behavior.ICacheElement)
54       */
55      public void update( ICacheElement ce )
56          throws IOException
57      {
58          // TODO Auto-generated method stub
59  
60      }
61  
62      /*
63       * (non-Javadoc)
64       *
65       * @see org.apache.jcs.engine.behavior.ICache#get(java.io.Serializable)
66       */
67      public ICacheElement get( Serializable key )
68          throws IOException
69      {
70          // TODO Auto-generated method stub
71          return null;
72      }
73  
74      /*
75       * (non-Javadoc)
76       *
77       * @see org.apache.jcs.engine.behavior.ICache#remove(java.io.Serializable)
78       */
79      public boolean remove( Serializable key )
80          throws IOException
81      {
82          // TODO Auto-generated method stub
83          return false;
84      }
85  
86      /*
87       * (non-Javadoc)
88       *
89       * @see org.apache.jcs.engine.behavior.ICache#removeAll()
90       */
91      public void removeAll()
92          throws IOException
93      {
94          // TODO Auto-generated method stub
95  
96      }
97  
98      /*
99       * (non-Javadoc)
100      *
101      * @see org.apache.jcs.engine.behavior.ICache#dispose()
102      */
103     public void dispose()
104         throws IOException
105     {
106         // TODO Auto-generated method stub
107 
108     }
109 
110     /*
111      * (non-Javadoc)
112      *
113      * @see org.apache.jcs.engine.behavior.ICache#getSize()
114      */
115     public int getSize()
116     {
117         // TODO Auto-generated method stub
118         return 0;
119     }
120 
121     /*
122      * (non-Javadoc)
123      *
124      * @see org.apache.jcs.engine.behavior.ICache#getStatus()
125      */
126     public int getStatus()
127     {
128         // TODO Auto-generated method stub
129         return 0;
130     }
131 
132     /*
133      * (non-Javadoc)
134      *
135      * @see org.apache.jcs.engine.behavior.ICache#getStats()
136      */
137     public String getStats()
138     {
139         // TODO Auto-generated method stub
140         return null;
141     }
142 
143     /*
144      * (non-Javadoc)
145      *
146      * @see org.apache.jcs.engine.behavior.ICache#getCacheName()
147      */
148     public String getCacheName()
149     {
150         return super.getCacheName();
151     }
152 
153     /*
154      * (non-Javadoc)
155      *
156      * @see org.apache.jcs.engine.behavior.ICacheType#getCacheType()
157      */
158     public int getCacheType()
159     {
160         return super.getCacheType();
161     }
162 
163 }