1 7 package com.jofti.api; 8 9 import java.io.InputStream ; 10 11 import com.jofti.config.IndexConfig; 12 import com.jofti.exception.JoftiException; 13 14 15 59 public interface IndexManager 60 { 61 66 public abstract void setConfigFile(String configFile); 67 68 77 public abstract void init(String configFileName) throws JoftiException; 78 79 87 public abstract void init() throws JoftiException; 88 89 98 public abstract void init(InputStream configStream) throws JoftiException; 99 100 138 public abstract Index addIndex(IndexConfig config, 139 Object cache, String classesFileName) throws JoftiException; 140 141 165 public abstract Index addIndexCache(IndexConfig config, 166 String classesFileName) throws JoftiException; 167 168 169 196 public Index addIndex(IndexConfig config, Object cache, 197 InputStream stream) throws JoftiException; 198 199 224 public abstract Index addIndexCache(IndexConfig config) 225 throws JoftiException; 226 227 262 public abstract Index addIndex(IndexConfig config, 263 Object cache) throws JoftiException; 264 265 277 public abstract Index getIndexCache(String indexName) throws JoftiException; 278 279 280 281 292 public abstract NameSpacedIndex getNameSpacedIndex(String indexName) 293 throws JoftiException; 294 295 296 303 304 public abstract Object removeIndex(Object cache); 305 306 313 public abstract void destroyIndex(Object cache); 314 315 321 public abstract void destroy(); 322 323 324 325 326 } | Popular Tags |