Package com.bbn.openmap.layer.util.cacheHandler

Examples of com.bbn.openmap.layer.util.cacheHandler.CacheObject


     *        createTableCacheKey
     * @param featureType the kind of feature, VPFUtil.Area,
     *        VPFUtil.Edge, VPFUtil.Point or VPFUtil.Text.
     */
    public Object get(String key, String featureType) {
        CacheObject ret = searchCache(key);
        if (ret != null)
            return ret.obj;

        ret = load(key, featureType);
        if (ret == null)
View Full Code Here


    /** Cachehandler method. */
    public CacheObject load(String RpfFramePath) {

        RpfFrame frame = new RpfFrame(RpfFramePath);
        if (frame.isValid()) {
            CacheObject obj = new CacheObject(RpfFramePath, frame);
            return obj;
        }
        return null;
    }
View Full Code Here

     * kicked off in the frame. If you don't care about Dchum, use the other get
     * method. CacheHandler method.
     */
    public Object get(RpfFrameEntry rfe) {

        CacheObject ret = searchCache(rfe.framePath);
        if (ret != null)
            return ret.obj;

        ret = load(rfe);
        if (ret == null)
View Full Code Here

            Debug.output("RpfFrameCacheHandler: Loading Frame " + rfe.framePath);
        }

        RpfFrame frame = new RpfFrame(rfe);
        if (frame.isValid()) {
            CacheObject obj = new CacheObject(rfe.framePath, frame);
            return obj;
        } else {
            if (Debug.debugging("rpf")) {
                Debug.error("RpfFrameCacheHandler:  Couldn't find frame /"
                        + rfe.framePath + "/ (" + rfe.framePath.length()
View Full Code Here

        // look for it in the local cache. If it's not there, then go
        // to the DTEDFrameCache.

        String key = new String(lat + ":" + lon + ":" + level);

        CacheObject ret = searchCache(key);
        if (ret != null) {
            if (Debug.debugging("dted")) {
                Debug.output("DTEDFrameCacheHandler.get():  retrieving frame from cache ("
                        + lat + ":" + lon + ":" + level + ")");
            }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.layer.util.cacheHandler.CacheObject

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.