List of usage examples for org.apache.solr.common.cloud Slice getState
public State getState()
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; }