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

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlStoreException


                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


            writer.write('\n');
            writer.write('\n');
            writer.write("#transaction ended\n\n".getBytes());
            writer.flush();
        } catch (final IOException e) {
            throw new NoSqlStoreException("Failed to write serial number data to log file", e);
        }

    }
View Full Code Here

            writer.write('\n');
            writer.write('\n');
            writer.write("#transaction ended\n\n".getBytes());
            writer.flush();
        } catch (final IOException e) {
            throw new NoSqlStoreException("Failed to write service entry data to log file", e);
        }
    }
View Full Code Here

                writer.write('\n');
            }
            writer.write("#transaction ended\n\n".getBytes());
            writer.flush();
        } catch (final IOException e) {
            throw new NoSqlStoreException("Failed to write data to log file", e);
        }
    }
View Full Code Here

    private void openNewFile() {
        nextLogIdToWrite++;
        File file = Util.logFile(nextLogIdToWrite);
        if (file.exists()) {
            throw new NoSqlStoreException("Log file already exists");
        }
        openFile(file);
    }
View Full Code Here

    private void openFile(File file) {
        try {
            writer = new DataOutputStream(new FileOutputStream(file));
            startNewFile = false;
        } catch (final IOException e) {
            throw new NoSqlStoreException("Failed to open log file", e);
        }
    }
View Full Code Here

    private void close() {
        try {
            writer.close();
        } catch (final IOException e) {
            throw new NoSqlStoreException("Falied to close log file", e);
        }
    }
View Full Code Here

    public StateWriter addAggregate(final String id) {
        final JsonStateWriter jsonStateWriter = new JsonStateWriter(null, null);
        try {
            dbObject.put(id, jsonStateWriter.dbObject);
        } catch (final JSONException e) {
            throw new NoSqlStoreException(e);
        }
        return jsonStateWriter;
    }
View Full Code Here

    @Override
    public void writeField(final String id, final String data) {
        try {
            dbObject.put(id, data == null ? JSONObject.NULL : data);
        } catch (final JSONException e) {
            throw new NoSqlStoreException(e);
        }
    }
View Full Code Here

    @Override
    public void writeField(final String id, final long l) {
        try {
            dbObject.put(id, Long.toString(l));
        } catch (final JSONException e) {
            throw new NoSqlStoreException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.nosql.NoSqlStoreException

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.