Package org.apache.isis.runtimes.dflt.objectstores.nosql.file

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.file.RemotingException


        try {
            final String line = reader.readLine();
            LOG.debug("header: " + line);
            if (line == null) {
                logFailure();
                throw new RemotingException("stream ended prematurely while reading header, aborting request");
            }
            if (line.length() == 0) {
                return false;
            } else {
                command = line.charAt(0);
View Full Code Here


    public boolean readWriteHeaders() {
        final boolean readHeaders = readHeaders();
        if (readHeaders && headers.length != 4) {
            logFailure();
            throw new RemotingException("invalid header string, aborting request");
        }
        return readHeaders;
    }
View Full Code Here

    public void endCommand() {
        try {
            final String line = reader.readLine();
            if (line == null) {
                logFailure();
                throw new RemotingException("stream ended prematurely while reading end of command, aborting request");
            }
            if (line.length() > 0) {
                logFailure();
                throw new RemotingException("command didn't end with an empty blank line, aborting request");
            }
        } catch (final IOException e) {
            logFailure();
            throw new NoSqlStoreException(e);
        }
View Full Code Here

            String line;
            while (true) {
                line = reader.readLine();
                if (line == null) {
                    logFailure();
                    throw new RemotingException("stream ended prematurely while reading data, aborting request");
                }
                if (line.length() == 0) {
                    break;
                }
                buffer.append(line);
                buffer.append('\n');
            }
            return buffer.toString();
        } catch (final IOException e) {
            logFailure();
            throw new RemotingException(e);
        }
    }
View Full Code Here

        try {
            reader.close();
            writer.close();
        } catch (final IOException e) {
            logFailure();
            throw new RemotingException(e);
        }
    }
View Full Code Here

        try {
            final String line = reader.readLine();
            LOG.debug("header: " + line);
            if (line == null) {
                logFailure();
                throw new RemotingException("stream ended prematurely while reading header, aborting request");
            }
            if (line.length() == 0) {
                return false;
            } else {
                command = line.charAt(0);
View Full Code Here

    public boolean readWriteHeaders() {
        final boolean readHeaders = readHeaders();
        if (readHeaders && headers.length != 4) {
            logFailure();
            throw new RemotingException("invalid header string, aborting request");
        }
        return readHeaders;
    }
View Full Code Here

    public void endCommand() {
        try {
            final String line = reader.readLine();
            if (line == null) {
                logFailure();
                throw new RemotingException("stream ended prematurely while reading end of command, aborting request");
            }
            if (line.length() > 0) {
                logFailure();
                throw new RemotingException("command didn't end with an empty blank line, aborting request");
            }
        } catch (final IOException e) {
            logFailure();
            throw new NoSqlStoreException(e);
        }
View Full Code Here

            String line;
            while (true) {
                line = reader.readLine();
                if (line == null) {
                    logFailure();
                    throw new RemotingException("stream ended prematurely while reading data, aborting request");
                }
                if (line.length() == 0) {
                    break;
                }
                buffer.append(line);
                buffer.append('\n');
            }
            return buffer.toString();
        } catch (final IOException e) {
            logFailure();
            throw new RemotingException(e);
        }
    }
View Full Code Here

        try {
            reader.close();
            writer.close();
        } catch (final IOException e) {
            logFailure();
            throw new RemotingException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.nosql.file.RemotingException

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.