Package org.elasticsearch

Examples of org.elasticsearch.ElasticsearchIllegalStateException


     * @throws org.elasticsearch.ElasticSearchIllegalStateException
     *          if {@code expression} is false
     */
    public static void checkState(boolean expression) {
        if (!expression) {
            throw new ElasticSearchIllegalStateException();
        }
    }
View Full Code Here


     * @throws org.elasticsearch.ElasticSearchIllegalStateException
     *          if {@code expression} is false
     */
    public static void checkState(boolean expression, Object errorMessage) {
        if (!expression) {
            throw new ElasticSearchIllegalStateException(String.valueOf(errorMessage));
        }
    }
View Full Code Here

     *          this happen)
     */
    public static void checkState(boolean expression,
                                  String errorMessageTemplate, Object... errorMessageArgs) {
        if (!expression) {
            throw new ElasticSearchIllegalStateException(
                    format(errorMessageTemplate, errorMessageArgs));
        }
    }
View Full Code Here

        }
        if (localState == State.STARTED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticSearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticSearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.STARTED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticSearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticSearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.INITIALIZED || localState == State.STOPPED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticSearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticSearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

        }
        if (localState == State.INITIALIZED || localState == State.STOPPED) {
            return false;
        }
        if (localState == State.CLOSED) {
            throw new ElasticSearchIllegalStateException("Can't move to started state when closed");
        }
        throw new ElasticSearchIllegalStateException("Can't move to started with unknown state");
    }
View Full Code Here

                    Mapper.Builder builder = context.root().findTemplateBuilder(context, currentFieldName, null);
                    if (builder != null) {
                        mapper = builder.build(builderContext);
                    } else {
                        // TODO how do we identify dynamically that its a binary value?
                        throw new ElasticSearchIllegalStateException("Can't handle serializing a dynamic type with content token [" + token + "] and field name [" + currentFieldName + "]");
                    }
                }
                putMapper(mapper);
                context.addedMapper();
            }
View Full Code Here

        State localState = state;
        if (localState == State.CLOSED) {
            return false;
        }
        if (localState == State.STARTED) {
            throw new ElasticSearchIllegalStateException("Can't move to closed before moving to stopped mode");
        }
        return true;
    }
View Full Code Here

        State localState = state;
        if (localState == State.CLOSED) {
            return false;
        }
        if (localState == State.STARTED) {
            throw new ElasticSearchIllegalStateException("Can't move to closed before moving to stopped mode");
        }
        state = State.CLOSED;
        return true;
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.ElasticsearchIllegalStateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.