public class CollectionComponent extends ItemCache<com.lucidworks.apollo.common.models.Collection>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CollectionComponent.CollectionChangeAware |
| Constructor and Description |
|---|
CollectionComponent(CuratorComponent curator,
MetricRegistry metricRegistry,
ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollectionChangeListener(CollectionComponent.CollectionChangeAware listener) |
static <any> |
getAppName(java.lang.String collectionId,
com.lucidworks.apollo.links.LinkManager linkManager)
Get the app name (or more correctly the ID) that a collection is associated with, if possible.
|
<any> |
getCollection(java.lang.String id) |
int |
getTotalCollectionCount()
This returns the number of collections *that are registered in Apollo.*.
|
boolean |
hasCollection(java.lang.String collectionId) |
java.util.Collection<com.lucidworks.apollo.common.models.Collection> |
listCollections() |
curatorAvailable, shutdownpublic CollectionComponent(CuratorComponent curator, MetricRegistry metricRegistry, ObjectMapper mapper)
public java.util.Collection<com.lucidworks.apollo.common.models.Collection> listCollections()
throws ItemStoreException
ItemStoreExceptionpublic boolean hasCollection(java.lang.String collectionId)
public <any> getCollection(java.lang.String id)
throws ItemStoreException
ItemStoreExceptionpublic int getTotalCollectionCount()
throws SolrAPIException,
java.io.IOException
SolrAPIExceptionjava.io.IOExceptionpublic void addCollectionChangeListener(CollectionComponent.CollectionChangeAware listener)
public static <any> getAppName(java.lang.String collectionId,
com.lucidworks.apollo.links.LinkManager linkManager)