Examples of AuditorException


Examples of org.apache.servicemix.nmr.audit.AuditorException

        Connection connection = null;
        try {
            connection = dataSource.getConnection();
            return adapter.doGetIds(connection, fromIndex, toIndex);
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchange ids", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

            for (int row = 0; row < ids.length; row++) {
                exchanges[row] = getExchange(adapter.doLoadData(connection, ids[row]));
            }
            return exchanges;
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchanges", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

                adapter.doRemoveData(connection, ids[row]);
            }
            connection.commit();
            return ids.length;
        } catch (Exception e) {
            throw new AuditorException("Could not delete exchanges", e);
        } finally {
            close(connection, restoreAutoCommit);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

        try {
            Thread.currentThread().setContextClassLoader(tccl);
            ObjectInputStream is = new ObjectInputStream(new ByteArrayInputStream(data));
            return (Exchange) is.readObject();
        } catch (Exception e) {
            throw new AuditorException("Unable to reconstruct exchange", e);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCl);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

        return new BufferedOutputStream(new FileOutputStream(file));
    }

    @Override
    public int deleteExchangesByIds(String[] ids) throws AuditorException {
        throw new AuditorException("deleteExchangesById(s) currently unsupported by FileAuditor");
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

        return FileUtil.countFilesInDirectory(directory);
    }

    @Override
    public String[] getExchangeIdsByRange(int fromIndex, int toIndex) throws AuditorException {
        throw new AuditorException("getExchangeIdsByRange currently unsupported by FileAuditor");
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

        throw new AuditorException("getExchangeIdsByRange currently unsupported by FileAuditor");
    }

    @Override
    public Exchange[] getExchangesByIds(String[] ids) throws AuditorException {
        throw new AuditorException("getExchangeByIds currently unsupported by FileAuditor");
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

            if (createDataBase) {
                jdbcAdapter.doCreateTables(connection);
            }
            connection.commit();
        } catch (SQLException e) {
            throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
        } catch (IOException e) {
           throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
        } finally {
            close(connection, restoreAutoCommit);
        }
        this.tccl = Thread.currentThread().getContextClassLoader();
        return jdbcAdapter;
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

           adapter=createAdapter();
        try {
            connection = dataSource.getConnection();
            return adapter.doGetCount(connection);
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchange count", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.audit.AuditorException

        Connection connection = null;
        try {
            connection = dataSource.getConnection();
            return adapter.doGetIds(connection, fromIndex, toIndex);
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchange ids", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.