Package joust.joustcache.data

Examples of joust.joustcache.data.ClassInfo


        }

        //log.debug("Loaded {} bytes of cached info for class {}", payload.length, name);

        @Cleanup UnsafeInput deserialiserInput = new UnsafeInput(payload);
        ClassInfo cInfo = serialiser.readObject(deserialiserInput, ClassInfo.class);

        //log.info("Loaded info for {} as:\n{}", name, cInfo);

        return cInfo;
    }
View Full Code Here


        if (sym.classfile == null) {
            log.warn("Unable to load cached info for class {}. No classfile given. Bug?", sym);
            return;
        }

        ClassInfo cInfo = loadCachedInfoByName(sym.fullname.toString());

        if (cInfo == null) {
            log.warn("No side effect information found on disk for {}", sym);
            return;
        }
View Full Code Here

        TreeInfoManager.populateFromClassInfo(cInfo);
    }

    static void writeSymbolToDisk(String className, int hash) {
        final ClassInfo cInfo = classInfo.get(className);

        if (cInfo == null) {
            log.warn("Unexpectedly null ClassInfo for {} at cache write.", className);
            return;
        }

        cInfo.setHash(hash);

        log.debug("Serialising {} for {}", cInfo, className);

        // Serialise the ClassInfo object.
        @Cleanup UnsafeOutput serialisedOutput = new UnsafeOutput(INITIAL_BUFFER_SIZE);
View Full Code Here

        final String className = ((ClassSymbol) sym.owner).flatname.toString();

        MethodInfo m = new MethodInfo(methodHash, effectSet);
        log.debug("{} has effects {} in {}", methodHash, effectSet, className);

        ClassInfo cInfo = classInfo.get(className);
        if (cInfo == null) {
            cInfo = new ClassInfo();
            classInfo.put(className, cInfo);
        }
        cInfo.methodInfos.add(m);

        // So we can compute the checksums later on...
View Full Code Here

    public static void dumpKeys() {
        log.info("Dumping effect keys....");
        final Set<String> keys = databaseMap.keySet();
        for (String key : keys) {
            ClassInfo storedInfo = loadCachedInfoByName(key);
            if (storedInfo == null) {
                log.warn("key: {} has null payload!");
            }

            log.info("Key: {}, nMethods: {}, hash: {}", key, storedInfo.methodInfos.size(), storedInfo.hash);
View Full Code Here

TOP

Related Classes of joust.joustcache.data.ClassInfo

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.