Skip to content

Commit af05474

Browse files
author
jefffischer
committed
BroadleafCommerce#1309 - Update javadocs
1 parent 157fcfb commit af05474

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/search/service/solr/IndexStatusInfo.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,28 @@
2323
import java.util.Map;
2424

2525
/**
26+
* General information about the current status of a (embedded) Solr instance's index
27+
*
2628
* @author Jeff Fischer
2729
*/
2830
public interface IndexStatusInfo {
31+
32+
/**
33+
* The most recent index date
34+
*
35+
* @return
36+
*/
2937
Date getLastIndexDate();
3038

3139
void setLastIndexDate(Date lastIndexDate);
3240

41+
/**
42+
* Arbitrary information about the index.
43+
*
44+
* @return
45+
*/
3346
Map<String, String> getAdditionalInfo();
3447

3548
void setAdditionalInfo(Map<String, String> additionalInfo);
49+
3650
}

core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/search/service/solr/SolrIndexStatusProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
package org.broadleafcommerce.core.search.service.solr;
2121

2222
/**
23+
* Responsible for reading and writing the index status to some persistent store (e.g. the file system).
24+
*
2325
* @author Jeff Fischer
2426
*/
2527
public interface SolrIndexStatusProvider {
28+
2629
void handleUpdateIndexStatus(IndexStatusInfo status);
2730

2831
IndexStatusInfo readIndexStatus(IndexStatusInfo status);
32+
2933
}

core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/search/service/solr/SolrIndexStatusService.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
package org.broadleafcommerce.core.search.service.solr;
2121

2222
/**
23+
* Responsible for reading and writing the status using one or more {@link org.broadleafcommerce.core.search.service.solr.SolrIndexStatusProvider}
24+
* instances. {@link #getSeedStatusInstance()} can be used to provide a custom {@link org.broadleafcommerce.core.search.service.solr.IndexStatusInfo}
25+
* implementation.
26+
*
2327
* @author Jeff Fischer
2428
*/
2529
public interface SolrIndexStatusService {
@@ -28,5 +32,11 @@ public interface SolrIndexStatusService {
2832

2933
IndexStatusInfo getIndexStatus();
3034

35+
/**
36+
* Provide a custom IndexStatusInfo instance to be used by the system.
37+
*
38+
* @return
39+
*/
3140
IndexStatusInfo getSeedStatusInstance();
41+
3242
}

0 commit comments

Comments
 (0)