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, shutdown
public CollectionComponent(CuratorComponent curator, MetricRegistry metricRegistry, ObjectMapper mapper)
public java.util.Collection<com.lucidworks.apollo.common.models.Collection> listCollections() throws java.io.IOException
java.io.IOException
public boolean hasCollection(java.lang.String collectionId)
public <any> getCollection(java.lang.String id) throws java.io.IOException
java.io.IOException
public int getTotalCollectionCount() throws SolrAPIException, java.io.IOException
SolrAPIException
java.io.IOException
public void addCollectionChangeListener(CollectionComponent.CollectionChangeAware listener)
public static <any> getAppName(java.lang.String collectionId, com.lucidworks.apollo.links.LinkManager linkManager)