|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.beanindex.BeanIndex
This is the main class.
Field Summary | |
static java.lang.String |
BASE_DIR
|
static java.lang.String |
BCKP_DIR
|
static java.lang.String |
DEPLOY_DIR
|
static java.lang.String |
WORKING_DIR
|
Constructor Summary | |
BeanIndex(java.lang.String path)
|
Method Summary | |
void |
add(Index index,
java.lang.Object bean)
This method adds the beans to the index and stores the object into beanrepository |
void |
cancelSchedule()
|
Index |
createIndex(java.lang.String name)
|
void |
deploy()
Call this method to deploy a new index dataset. |
BeanIndexBuilder |
getBeanIndexBuilder(BeanIndexMetaInfo beanInfo,
boolean useVirtualMemory)
|
BeanIndexSearcher |
getBeanIndexSearcher(SearcherConfigInfo searcherConfig)
|
BeanIndexSearcher |
getBeanIndexSearcher(java.lang.String defLglOp,
SearcherConfigInfo searcherConfig)
pass a default logical operator to be used in search term evaluations Either OR or AND. |
DataProvider |
getRegisteredDataProvider()
|
void |
hotDeploy()
This method should be called by the client to hotdeploy new index dataset. |
void |
hotDeploy(SearcherConfigInfo newSearcherConfig)
Call this method to deploy new index dataset with a new Searcher Configuration while BeanIndexSearcher is serving the clients |
void |
notifyEnd()
This method should be called by the DataProvider at the end of DataTransmission |
void |
notifyStart(boolean useVirtualMemory)
This method should be called by the DataProvider before starting the Transmission after receiving the initiateDataTransmission signal |
void |
registerDataProvider(DataProvider provider)
|
void |
registerDeployEventListener(DeployEventListener listener)
|
java.lang.String[] |
resolveWildCardSearchTerm(java.lang.String term)
|
void |
setSelfReDeploySchedule(Schedule schedule)
|
void |
updateDataProviderSchedule(Schedule schedule)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String BASE_DIR
public static java.lang.String WORKING_DIR
public static java.lang.String BCKP_DIR
public static java.lang.String DEPLOY_DIR
Constructor Detail |
public BeanIndex(java.lang.String path)
path
- Method Detail |
public BeanIndexBuilder getBeanIndexBuilder(BeanIndexMetaInfo beanInfo, boolean useVirtualMemory) throws java.lang.Exception
beanInfo
-
java.lang.Exception
public Index createIndex(java.lang.String name) throws java.lang.Exception
name
-
java.lang.Exception
public BeanIndexSearcher getBeanIndexSearcher(SearcherConfigInfo searcherConfig) throws BeanIndexException
searcherConfig
-
BeanIndexException
public BeanIndexSearcher getBeanIndexSearcher(java.lang.String defLglOp, SearcherConfigInfo searcherConfig) throws BeanIndexException
defLglOp
- searcherConfig
-
BeanIndexException
public void registerDataProvider(DataProvider provider) throws BeanIndexException
provider
-
BeanIndexException
public void cancelSchedule()
public DataProvider getRegisteredDataProvider()
public void registerDeployEventListener(DeployEventListener listener)
public void updateDataProviderSchedule(Schedule schedule) throws BeanIndexException
schedule
-
BeanIndexException
public void setSelfReDeploySchedule(Schedule schedule) throws BeanIndexException
schedule
-
BeanIndexException
public void deploy() throws java.lang.Exception
java.lang.Exception
public void hotDeploy(SearcherConfigInfo newSearcherConfig) throws BeanIndexException
BeanIndexException
public void hotDeploy() throws BeanIndexException
BeanIndexException
public void notifyStart(boolean useVirtualMemory) throws java.lang.Exception
DataProviderCallBack
notifyStart
in interface DataProviderCallBack
useVirtualMemory
-
java.lang.Exception
public void add(Index index, java.lang.Object bean) throws java.lang.Exception
DataProviderCallBack
add
in interface DataProviderCallBack
index
- bean
-
java.lang.Exception
public void notifyEnd() throws java.lang.Exception
DataProviderCallBack
notifyEnd
in interface DataProviderCallBack
java.lang.Exception
public java.lang.String[] resolveWildCardSearchTerm(java.lang.String term) throws java.lang.Exception
term
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |