Package org.jboss.dashboard.dataset

Examples of org.jboss.dashboard.dataset.DataSetException


        long maxTime = dataProvider.getDataLoader().getMaxDataSetLoadTimeInMillis();
        long maxMemUsed = dataProvider.getDataLoader().getMaxMemoryUsedInDataLoad();

        if (maxMemUsed > 0 && memoryUsed > maxMemUsed) {
            String total = MemoryProfiler.formatSize(maxMemUsed);
            throw new DataSetException("Data set load memory usage has been exceeded = " + total);
        }
        else if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set load time has been exceeded = " + time);
        }
        else if (maxSize > 0 && sizeInBytes > maxSize) {
            String size = MemoryProfiler.formatSize(maxSize);
            throw new DataSetException("Data set size in memory has been exceeded = " + size);
        }
    }
View Full Code Here


        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataProvider.getDataLoader().getMaxDataSetSortTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set sort time has been exceeded = " + time);
        }
    }
View Full Code Here

        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataProvider.getDataLoader().getMaxDataSetFilterTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set filter time has been exceeded = " + time);
        }
    }
View Full Code Here

        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataProvider.getDataLoader().getMaxDataSetGroupTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set group-by time has been exceeded = " + time);
        }
    }
View Full Code Here

        long maxTime = dataSet.getDataProvider().getDataLoader().getMaxDataSetLoadTimeInMillis();
        long maxMemUsed = dataSet.getDataProvider().getDataLoader().getMaxMemoryUsedInDataLoad();

        if (maxMemUsed > 0 && memoryUsed > maxMemUsed) {
            String total = MemoryProfiler.formatSize(maxMemUsed);
            throw new DataSetException("Data set load memory usage has been exceeded = " + total);
        }
        else if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set load time has been exceeded = " + time);
        }
        else if (maxSize > 0 && sizeInBytes > maxSize) {
            String size = MemoryProfiler.formatSize(maxSize);
            throw new DataSetException("Data set size in memory has been exceeded = " + size);
        }
    }
View Full Code Here

        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataSet.getDataProvider().getDataLoader().getMaxDataSetSortTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set sort time has been exceeded = " + time);
        }
    }
View Full Code Here

        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataSet.getDataProvider().getDataLoader().getMaxDataSetFilterTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set filter time has been exceeded = " + time);
        }
    }
View Full Code Here

        long elapsedTime = System.currentTimeMillis() - startTime;
        long maxTime = dataSet.getDataProvider().getDataLoader().getMaxDataSetGroupTimeInMillis();

        if (maxTime > 0 && elapsedTime > maxTime) {
            String time = Chronometer.formatElapsedTime(maxTime);
            throw new DataSetException("Data set group-by time has been exceeded = " + time);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.dataset.DataSetException

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.