1 18 package org.apache.activemq.kaha; 19 20 import java.io.IOException ; 21 import java.util.Set ; 22 27 public interface Store{ 28 31 public static final String DEFAULT_CONTAINER_NAME="kaha"; 32 33 36 public final static Marshaller BytesMarshaller = new BytesMarshaller(); 37 38 41 public final static Marshaller ObjectMarshaller = new ObjectMarshaller(); 42 43 46 public final static Marshaller StringMarshaller = new StringMarshaller(); 47 52 public void close() throws IOException ; 53 54 59 public void force() throws IOException ; 60 61 66 public void clear() throws IOException ; 67 68 74 public boolean delete() throws IOException ; 75 76 83 public boolean doesMapContainerExist(Object id) throws IOException ; 84 85 93 public boolean doesMapContainerExist(Object id,String containerName) throws IOException ; 94 95 102 public MapContainer getMapContainer(Object id) throws IOException ; 103 104 112 public MapContainer getMapContainer(Object id,String containerName) throws IOException ; 113 114 123 public MapContainer getMapContainer(Object id,String containerName,boolean persistentIndex) throws IOException ; 124 125 131 public void deleteMapContainer(Object id) throws IOException ; 132 133 140 public void deleteMapContainer(Object id,String containerName) throws IOException ; 141 142 147 public void deleteMapContainer(ContainerId id) throws IOException ; 148 149 155 public Set <ContainerId> getMapContainerIds() throws IOException ; 156 157 164 public boolean doesListContainerExist(Object id) throws IOException ; 165 166 174 public boolean doesListContainerExist(Object id,String containerName) throws IOException ; 175 176 183 public ListContainer getListContainer(Object id) throws IOException ; 184 185 193 public ListContainer getListContainer(Object id,String containerName) throws IOException ; 194 195 204 public ListContainer getListContainer(Object id,String containerName,boolean persistentIndex) throws IOException ; 205 206 212 public void deleteListContainer(Object id) throws IOException ; 213 214 221 public void deleteListContainer(Object id,String containerName) throws IOException ; 222 223 228 public void deleteListContainer(ContainerId id) throws IOException ; 229 230 236 public Set <ContainerId> getListContainerIds() throws IOException ; 237 238 241 public long getMaxDataFileLength(); 242 243 246 public void setMaxDataFileLength(long maxDataFileLength); 247 248 252 public String getIndexTypeAsString(); 253 254 259 public void setIndexTypeAsString(String type); 260 261 264 public boolean isInitialized(); 265 } 266 | Popular Tags |