Package org.jdesktop.wonderland.client.assetmgr

Examples of org.jdesktop.wonderland.client.assetmgr.AssetCache


    private String getChecksumFromDB(AssetURI assetURI) {
        // Query the asset database for an entry with this URI, looking for
        // the most recent checksum. This assumes that, although we are returned
        // a list of assets, there is only one asset, because it is the policy
        // to have only one wlhttp entry per cache.
        AssetCache assetCache = AssetManager.getAssetManager().getAssetCache();
        List<Asset> assetList = null;
        try {
            assetList = assetCache.getAssetList(assetURI);
        } catch (AssetCacheException excp) {
        }
       
        if (assetList.size() > 1) {
            logger.warning("Found more than one asset for " +
View Full Code Here


    private String getChecksumFromDB(AssetURI assetURI) {
        // Query the asset database for an entry with this URI, looking for
        // the most recent checksum. This assumes that, although we are returned
        // a list of assets, there is only one asset, because it is the policy
        // to have only one wlhttp entry per cache.
        AssetCache assetCache = AssetManager.getAssetManager().getAssetCache();
        List<Asset> assetList = null;
        try {
            assetList = assetCache.getAssetList(assetURI);
        } catch (AssetCacheException excp) {
        }
       
        if (assetList.size() > 1) {
            logger.warning("Found more than one asset for " +
View Full Code Here

     * false if not
     */
    private boolean isAssetCached(AssetID assetID) {
        // Using the asset URI and the desired checksum check whether the asset
        // is in the database (cached)
        AssetCache assetCache = AssetManager.getAssetManager().getAssetCache();
        try {
            return assetCache.isCached(assetID);
        } catch (AssetCacheException excp) {
            logger.log(Level.WARNING, "Unable to check cache for asset " +
                    assetID.toString(), excp);
            return false;
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.assetmgr.AssetCache

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.