Package com.rackspacecloud.blueflood.exceptions

Examples of com.rackspacecloud.blueflood.exceptions.GranularityException


    public int numSlots() { return numSlots; }
   
    // returns the next coarser granularity.
    // FULL -> 5m -> 20m -> 60m -> 240m -> 1440m -> explosion.
    public Granularity coarser() throws GranularityException {
        if (this == LAST) throw new GranularityException("Nothing coarser than " + name());
        return granularities[index + 1];
    }
View Full Code Here


        return granularities[index + 1];
    }
   
    // opposite of coarser().
    public Granularity finer() throws GranularityException {
        if (this == FULL) throw new GranularityException("Nothing finer than " + name());
        return granularities[index - 1];
    }
View Full Code Here

TOP

Related Classes of com.rackspacecloud.blueflood.exceptions.GranularityException

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.