Package org.serviceconnector.cache

Examples of org.serviceconnector.cache.SC_CACHE_ENTRY_STATE


    }
    SCCacheMetaEntry metaEntry = (SCCacheMetaEntry) scCache.get(cacheKey);
    if (metaEntry == null) {
      return URLString.toURLResponseString(Constants.CACHE_ID, cacheKey, "return", "notfound");
    }
    SC_CACHE_ENTRY_STATE cacheState = metaEntry.getSCCacheEntryState();
    Date creationTime = metaEntry.getCreationTime();
    Date lastModifiedTime = metaEntry.getLastModifiedTime();
    String expirationDateTime = DateTimeUtility.getDateTimeAsString(scCache.getExpirationTime(cacheKey));
    int size = metaEntry.getNumberOfParts();
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put("return", "success");
    parameters.put(Constants.CACHE_ID, metaEntry.getCacheId());
    parameters.put("cacheState", cacheState.toString());
    parameters.put("cacheSize", String.valueOf(size));
    parameters.put("cacheExpiration", expirationDateTime);
    parameters.put("creationTime", DateTimeUtility.getDateTimeAsString(creationTime));
    parameters.put("lastModifiedTime", DateTimeUtility.getDateTimeAsString(lastModifiedTime));
    return URLString.toURLResponseString(parameters);
View Full Code Here


    }
    SCCacheMetaEntry metaEntry = (SCCacheMetaEntry) scCacheModule.get(cacheKey);
    if (metaEntry == null) {
      return URLString.toURLResponseString(Constants.CACHE_ID, cacheKey, "return", "notfound");
    }
    SC_CACHE_ENTRY_STATE cacheState = metaEntry.getSCCacheEntryState();
    Date creationTime = metaEntry.getCreationTime();
    Date lastModifiedTime = metaEntry.getLastModifiedTime();
    String expirationDateTime = DateTimeUtility.getDateTimeAsString(scCacheModule.getExpirationTime(cacheKey));
    String assignedUpdateGuardian = metaEntry.getCacheGuardianName();
    String partInfo = metaEntry.nrOfPartsByAppendixAsString();
    int nrOfAppendix = metaEntry.getNrOfAppendix();
    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put("return", "success");
    parameters.put(Constants.CACHE_ID, metaEntry.getCacheId());
    parameters.put("cacheMessageState", cacheState.toString());
    parameters.put("cacheMessagePartInfo", partInfo);
    parameters.put("cacheMessageNrOfAppendix", String.valueOf(nrOfAppendix));
    parameters.put("cacheMessageAssignedUpdateGuardian", assignedUpdateGuardian);
    parameters.put("cacheMessageExpiration", expirationDateTime);
    parameters.put("cacheMessageCreationTime", DateTimeUtility.getDateTimeAsString(creationTime));
View Full Code Here

TOP

Related Classes of org.serviceconnector.cache.SC_CACHE_ENTRY_STATE

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.