Package edu.indiana.dlib.metsnav.data

Examples of edu.indiana.dlib.metsnav.data.ExceptionBean


            navObjCache = JCS.getInstance(Globals.METSOBJ_CACHE);
            navObj = (MetsObject)navObjCache.get(Globals.METSOBJ_CACHE_KEY + oid);
        } catch (CacheException cex) {
            log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
                + "]: " + cex.getMessage());
            log.error(new ExceptionBean(cex).getStack());
        }
        if (navObj == null || forceUpdate ||
                navObj.getTimestamp() < child.getConfig().getDataSource().getTimestamp(oid)) {
            navObj = child.getMetsObject(oid);
            if (navObjCache != null) {
                try {
                    navObjCache.put(Globals.METSOBJ_CACHE_KEY + oid, navObj);
                } catch (CacheException cex) {
                    log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
                        + "]: " + cex.getMessage());
                    log.error(new ExceptionBean(cex).getStack());
                }
            }
        }
        return navObj;
    }
View Full Code Here


            navObjCache = JCS.getInstance(Globals.METSOBJ_CACHE);
            navObj = (JSONObject)navObjCache.get(Globals.METSOBJ_CACHE_KEY + oid);
        } catch (CacheException cex) {
            log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
                + "]: " + cex.getMessage());
            log.error(new ExceptionBean(cex).getStack());
        }
        if (navObj == null || forceUpdate ||
                parseTime((String)navObj.get("timestamp")) < child.getConfig().getDataSource().getTimestamp(oid)) {
            navObj = child.getJSONObject(oid);
            if (navObjCache != null) {
                try {
                    navObjCache.put(Globals.METSOBJ_CACHE_KEY + oid, navObj);
                } catch (CacheException cex) {
                    log.error("Corrupted Cache[" + Globals.METSOBJ_CACHE
                        + "]: " + cex.getMessage());
                    log.error(new ExceptionBean(cex).getStack());
                }
            }
        }
        return navObj;
    }
View Full Code Here

TOP

Related Classes of edu.indiana.dlib.metsnav.data.ExceptionBean

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.