Package org.elasticsearch.shell.source

Examples of org.elasticsearch.shell.source.CompilableSource


        }
    }

    protected void doRun() {
        while (true) {
            CompilableSource source = null;
            try {
                source = compilableSourceReader.read(getPrompt());
            } catch (Exception e) {
                logger.error(e.getMessage(), e);
                console.println("Error while checking the input: " + e.toString());
View Full Code Here


                && !promptObject.equals(UniqueTag.NULL_VALUE)) {

            Object result;

            if (promptObject instanceof Function) {
                result = scriptExecutor.execute(new CompilableSource(ShellSettings.PROMPT_MESSAGE + "()", 1));
            } else {
                result = promptObject;
            }

            return javaToString(unwrap(result));
View Full Code Here

TOP

Related Classes of org.elasticsearch.shell.source.CompilableSource

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.