writer.writeAttribute("bodyLength", scmp.getBodyLength());
writer.writeAttribute("expirationTime", DateTimeUtility.getDateTimeAsString(scCache.getExpirationTime(key)));
writer.writeAttribute("creationTime", DateTimeUtility.getDateTimeAsString(scCache.getCreationTime(key)));
writer.writeAttribute("lastAccessTime", DateTimeUtility.getDateTimeAsString(scCache.getLastAccessTime(key)));
} else if (cacheMessage instanceof SCCacheMetaEntry) {
SCCacheMetaEntry metaEntry = ((SCCacheMetaEntry) cacheMessage);
writer.writeAttribute("cacheKey", key);
writer.writeAttribute("loadingSessionId", metaEntry.getLoadingSessionId());
writer.writeAttribute("loadingTimeoutMillis", metaEntry.getLoadingTimeoutMillis());
writer.writeAttribute("scCacheEntryState", metaEntry.getSCCacheEntryState().name());
writer.writeAttribute("numberOfAppendix", metaEntry.getNrOfAppendix());
writer.writeAttribute("cacheGuardian", metaEntry.getCacheGuardianName());
if (metaEntry.getSCCacheEntryState() == SC_CACHE_ENTRY_STATE.LOADING_APPENDIX) {
writer.writeAttribute("expectedAppendix", metaEntry.getExpectedAppendix());
}
writer.writeAttribute("isManaged", metaEntry.isManaged());
writer.writeAttribute("expirationTime", DateTimeUtility.getDateTimeAsString(scCache.getExpirationTime(key)));
writer.writeAttribute("creationTime", DateTimeUtility.getDateTimeAsString(scCache.getCreationTime(key)));
writer.writeAttribute("lastModifiedTime", DateTimeUtility.getDateTimeAsString(metaEntry.getLastModifiedTime()));
writer.writeAttribute("lastAccessTime", DateTimeUtility.getDateTimeAsString(scCache.getLastAccessTime(key)));
}
writer.writeEndElement(); // end of cacheElement
}
writer.writeEndElement(); // end of cacheElements