public class SearchIndexerStateBean extends Object implements SearchIndexerState
SearchIndexerState
as JAXB-ready Java-Bean.Modifier and Type | Field and Description |
---|---|
private Date |
indexingDate |
private List<SearchIndexerSourceStateBean> |
sources |
private Map<String,SearchIndexerSourceStateBean> |
sourceStateMap |
Constructor and Description |
---|
SearchIndexerStateBean()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Date |
getIndexingDate()
This method gets the
Date when the index had been updated last
time. |
SearchIndexerSourceStateBean |
getOrCreateSourceState(String source) |
List<SearchIndexerSourceStateBean> |
getSources()
This method gets the
List of SearchIndexerSourceStateBean . |
SearchIndexerSourceState |
getSourceState(String source)
This method gets the
SearchIndexerSourceState for the given
source . |
protected Map<String,SearchIndexerSourceStateBean> |
getSourceStateMap() |
void |
setIndexingDate(Date indexingDate)
This method sets the
indexing-date . |
void |
setSources(List<SearchIndexerSourceStateBean> sources) |
private Date indexingDate
getIndexingDate()
private List<SearchIndexerSourceStateBean> sources
getSources()
private transient Map<String,SearchIndexerSourceStateBean> sourceStateMap
getSourceStateMap()
protected Map<String,SearchIndexerSourceStateBean> getSourceStateMap()
public List<SearchIndexerSourceStateBean> getSources()
List
of SearchIndexerSourceStateBean
. List
of SearchIndexerSourceStateBean
s.getOrCreateSourceState(String)
public void setSources(List<SearchIndexerSourceStateBean> sources)
sources
- is the sources to setpublic SearchIndexerSourceState getSourceState(String source)
SearchIndexerSourceState
for the given
source
. configured source
a source-state
will be
available.getSourceState
in interface SearchIndexerState
source
- is the
ID
of the
source
for which
the state is requested.SearchIndexerSourceState
of the given
source
or null
if no such state exists.public SearchIndexerSourceStateBean getOrCreateSourceState(String source)
source
- is the source-ID for which the state is requested.SearchIndexerSourceState
. If it does not exist, it is created and
associated.getSourceState(String)
public Date getIndexingDate()
Date
when the index had been updated last
time. It will be set the the current Date
every time this state is
saved
.getIndexingDate
in interface SearchIndexerState
null
if the index did NOT
exist before.public void setIndexingDate(Date indexingDate)
indexing-date
.indexingDate
- is the new indexing-date.Copyright © 2001–2016 mmm-Team. All rights reserved.