Example usage for org.apache.solr.common.cloud Slice getState

List of usage examples for org.apache.solr.common.cloud Slice getState

Introduction

In this page you can find the example usage for org.apache.solr.common.cloud Slice getState.

Prototype

public State getState() 

Source Link

Usage

From source file:com.shaie.solr.CollectionsStateHelper.java

License:Apache License

/**
 * Returns true whether the slice is active. Note that the slice may be in ACTIVE state, but some of its replicas
 * may not./*from   w  w w.  java 2s  .com*/
 *
 * @see #isSliceAndAllReplicasActive(Slice)
 */
public boolean isSliceActive(Slice slice) {
    return slice.getState() == Slice.State.ACTIVE;
}