Package gov.nasa.arc.mct.api.feed

Examples of gov.nasa.arc.mct.api.feed.BufferFullException


            latch.await();
        } catch (InterruptedException e) {
            LOGGER.warn("Internal error during putData thread", e);
        }
        if (bufferFull.get()) {
            throw new BufferFullException(env.getErrorMsg());
        }
        timer.stopInterval();

        WRITE_PERF_LOGGER.debug("Time to write {} feeds: {}", value.size(), timer.getIntervalInMillis());
        return timestamps;
View Full Code Here


            latch.await();
        } catch (InterruptedException e) {
            LOGGER.warn("Internal error during putData thread", e);
        }
        if (bufferFull.get()) {
            throw new BufferFullException(env.getErrorMsg());
        }
        timer.stopInterval();

        WRITE_PERF_LOGGER.debug("Time to write {} feeds: {}", value.size(), timer.getIntervalInMillis());
    }
View Full Code Here

                    largestTime = -1;
                    LOGGER.error("Putting data for feed {} failed", feedID, de);
                   
                    if (env.isDiskBufferFull()) {
                        LOGGER.error("[PartitionFastDiskBuffer]: " + env.getErrorMsg());
                        throw new BufferFullException();
                    }
                   
                    break;
                }
            }
        } catch (DatabaseException de) {
            largestTime = -1;
            LOGGER.error("Putting data for feed {} failed", feedID, de);
           
            if (env.isDiskBufferFull()) {
                 LOGGER.error("[PartitionFastDiskBuffer]: " + env.getErrorMsg());
                 throw new BufferFullException();
           
            }
        }

        return new PartitionTimestamps(smallestTime, largestTime);
View Full Code Here

            latch.await();
        } catch (InterruptedException e) {
            LOGGER.warn("Internal error during putData thread", e);
        }
        if (bufferFull.get()) {
            throw new BufferFullException(env.getErrorMsg());
        }
        timer.stopInterval();

        WRITE_PERF_LOGGER.debug("Time to write {} feeds: {}", value.size(), timer.getIntervalInMillis());
        return timestamps;
View Full Code Here

            latch.await();
        } catch (InterruptedException e) {
            LOGGER.warn("Internal error during putData thread", e);
        }
        if (bufferFull.get()) {
            throw new BufferFullException(env.getErrorMsg());
        }
        timer.stopInterval();

        WRITE_PERF_LOGGER.debug("Time to write {} feeds: {}", value.size(), timer.getIntervalInMillis());
    }
View Full Code Here

                    largestTime = -1;
                    LOGGER.error("Putting data for feed {} failed", feedID, de);
                   
                    if (env.isDiskBufferFull()) {
                        LOGGER.error("[PartitionFastDiskBuffer]: " + env.getErrorMsg());
                        throw new BufferFullException();
                    }
                   
                    break;
                }
            }
        } catch (DatabaseException de) {
            largestTime = -1;
            LOGGER.error("Putting data for feed {} failed", feedID, de);
           
            if (env.isDiskBufferFull()) {
                 LOGGER.error("[PartitionFastDiskBuffer]: " + env.getErrorMsg());
                 throw new BufferFullException();
           
            }
        }

        return new PartitionTimestamps(smallestTime, largestTime);
View Full Code Here

        @Override
        public void putData(String feedID, TimeUnit timeUnit, Map<Long, Map<String, String>> entries)
                throws BufferFullException {
            if (bufferFull) {
                throw new BufferFullException("Test buffer full.");
            }
        }
View Full Code Here

        @Override
        public void putData(String feedID, TimeUnit timeUnit, long time, Map<String, String> value)
                throws BufferFullException {
            if (bufferFull) {
                throw new BufferFullException("Test buffer full.");
            }
        }
View Full Code Here

        @Override
        public void putData(Map<String, Map<Long, Map<String, String>>> value, TimeUnit timeUnit, Runnable callback)
                throws BufferFullException {
            if (bufferFull) {
                throw new BufferFullException("Test buffer full.");
            }
        }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.api.feed.BufferFullException

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.