Class CacheLogger

java.lang.Object
org.serviceconnector.log.CacheLogger

public final class CacheLogger extends Object
The Class CacheLogger.
  • Method Details

    • isEnabled

      public static boolean isEnabled()
      Checks if is enabled.
      Returns:
      true, if is enabled
    • tryGetMessageFromCache

      public static void tryGetMessageFromCache(String cacheId, String sessionId, String requestedPart, String appendixNr)
      Try to get message from cache.
      Parameters:
      cacheId - the cache identifier
      sessionId - the session id
      requestedPart - the requested part
      appendixNr - the appendix number
    • gotMessageFromCache

      public static void gotMessageFromCache(String cacheId, String sessionId, int length)
      Got message from cache.
      Parameters:
      cacheId - the cache identifier
      sessionId - the session id
    • startLoadingCacheMessage

      public static void startLoadingCacheMessage(String cacheId, String sessionId, int timeout)
      Start loading cache message.
      Parameters:
      cacheId - the cache identifier
      sessionId - the session id
      timeout - the loading timeout in milliseconds
    • startCachingAppendix

      public static void startCachingAppendix(String cacheId, String cacheGuardian, int timeout)
      Start caching appendix.
      Parameters:
      cacheId - the cache id
      cacheGuardian - the cache guardian
      timeout - the timeout
    • cacheAppendix

      public static void cacheAppendix(String cacheId, String cacheGuardian)
      Cache appendix.
      Parameters:
      cacheId - the cache id
      cacheGuardian - the cache guardian name
    • finishLoadingCacheMessage

      public static void finishLoadingCacheMessage(String cacheId, String sessionId, int numberOfParts, int numberOfAppendix)
      Finish loading cache message.
      Parameters:
      cacheId - the cache identifier
      sessionId - the session id
      numberOfParts - the number of parts
      numberOfAppendix - the number of appendix
    • finishCachingAppendix

      public static void finishCachingAppendix(String cacheId, String cacheGuardian, int numberOfParts)
      Finish caching appendix.
      Parameters:
      cacheId - the cache identifier
      cacheGuardian - the cache guardian name
      numberOfParts - the number of parts
    • abortLoadingMessage

      public static void abortLoadingMessage(String cacheId, String sessionId)
      Abort loading message.
      Parameters:
      cacheId - the cache identifier
      sessionId - the session id
    • putMessageToCache

      public static void putMessageToCache(String cacheId, int nrOfParts, String loadingSessionId, int length, String loadingState, String cmt)
      Put message to cache.
      Parameters:
      cacheId - the cache identifier
      loadingSessionId - the loading session id
    • putManagedDataToCache

      public static void putManagedDataToCache(String cacheId, String cacheGuardian, int appendixNr, int partNr)
      Put appendix part to cache.
      Parameters:
      cacheId - the cache identifier
      cacheGuardian - the cache guardian
      appendixNr - the appendix number
      partNr - the part number
    • startLoadingReplacement

      public static void startLoadingReplacement(String cacheId, String cacheGuardian)
      Start loading replacement.
      Parameters:
      cacheId - the cache id
      cacheGuardian - the cache guardian
    • stopLoadingReplacement

      public static void stopLoadingReplacement(String cacheId, String cacheGuardian, int nrOfParts)
      Stop loading replacement.
      Parameters:
      cacheId - the cache id
      cacheGuardian - the cache guardian
      nrOfParts - the nr of parts
    • replaceExistingData

      public static void replaceExistingData(String cacheId, String cacheGuardian)
      Replace existing data.
      Parameters:
      cacheId - the cache id
      cacheGuardian - the cache guardian
    • removeMessageFromCache

      public static void removeMessageFromCache(String cid, String reason)
      Removes the message from cache.
      Parameters:
      cid - the cache identifier
    • messageExpired

      public static void messageExpired(String cid)
      Message expired.
      Parameters:
      cid - the cache identifier
    • clearCache

      public static void clearCache()
      Clear cache.