Class AbstractCacheDTO

java.lang.Object
eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
All Implemented Interfaces:
InfoRecord, Serializable
Direct Known Subclasses:
DownloadCacheDTO, ParsingCacheDTO, ValidationCacheDTO

public class AbstractCacheDTO extends Object implements InfoRecord
The abstract cache DTO
See Also:
  • Constructor Details

    • AbstractCacheDTO

      public AbstractCacheDTO()
      Empty constructor
    • AbstractCacheDTO

      public AbstractCacheDTO(AbstractCacheDTO cacheDTO)
      Copies the cache DTO
      Parameters:
      cacheDTO - AbstractCacheDTO to copy
  • Method Details

    • getCacheState

      public CacheStateEnum getCacheState()
      Gets the state of the cache
      Returns:
      CacheStateEnum
    • setCacheState

      public void setCacheState(CacheStateEnum cacheState)
      Sets the cache state
      Parameters:
      cacheState - CacheStateEnum
    • getLastStateTransitionTime

      public Date getLastStateTransitionTime()
      Description copied from interface: InfoRecord
      Gets the last time when the state of record has been changed
      Specified by:
      getLastStateTransitionTime in interface InfoRecord
      Returns:
      Date
    • setLastStateTransitionTime

      public void setLastStateTransitionTime(Date lastStateTransitionTime)
      Sets the last time of the state change
      Parameters:
      lastStateTransitionTime - Date
    • getLastSuccessSynchronizationTime

      public Date getLastSuccessSynchronizationTime()
      Description copied from interface: InfoRecord
      Gets the last time when the record has been synchronized
      Specified by:
      getLastSuccessSynchronizationTime in interface InfoRecord
      Returns:
      Date
    • setLastSuccessSynchronizationTime

      public void setLastSuccessSynchronizationTime(Date lastSuccessSynchronizationTime)
      Sets the last time of a successful synchronization
      Parameters:
      lastSuccessSynchronizationTime - Date
    • getExceptionMessage

      public String getExceptionMessage()
      Description copied from interface: InfoRecord
      Gets the exception message for an error state
      Specified by:
      getExceptionMessage in interface InfoRecord
      Returns:
      String
    • setExceptionMessage

      public void setExceptionMessage(String exceptionMessage)
      Sets the exception message
      Parameters:
      exceptionMessage - String
    • getExceptionStackTrace

      public String getExceptionStackTrace()
      Description copied from interface: InfoRecord
      Gets the exception stack trace for an error state
      Specified by:
      getExceptionStackTrace in interface InfoRecord
      Returns:
      String
    • setExceptionStackTrace

      public void setExceptionStackTrace(String exceptionStackTrace)
      Sets the exception stack trace
      Parameters:
      exceptionStackTrace - String
    • getExceptionFirstOccurrenceTime

      public Date getExceptionFirstOccurrenceTime()
      Description copied from interface: InfoRecord
      Gets the first time when the error is occurred
      Specified by:
      getExceptionFirstOccurrenceTime in interface InfoRecord
      Returns:
      Date
    • setExceptionFirstOccurrenceTime

      public void setExceptionFirstOccurrenceTime(Date exceptionFirstOccurrenceTime)
      Sets the first time of the exception occurrence
      Parameters:
      exceptionFirstOccurrenceTime - Date
    • getExceptionLastOccurrenceTime

      public Date getExceptionLastOccurrenceTime()
      Description copied from interface: InfoRecord
      Gets the last time when the error is occurred
      Specified by:
      getExceptionLastOccurrenceTime in interface InfoRecord
      Returns:
      Date
    • setExceptionLastOccurrenceTime

      public void setExceptionLastOccurrenceTime(Date exceptionLastOccurrenceTime)
      Sets the last time of a the exception occurrence
      Parameters:
      exceptionLastOccurrenceTime - Date
    • isResultExist

      public boolean isResultExist()
      Description copied from interface: InfoRecord
      Gets if a result exist under the record
      Specified by:
      isResultExist in interface InfoRecord
      Returns:
      TRUE if the result exists, FALSE otherwise
    • setResultExist

      public void setResultExist(boolean resultExist)
      Sets if the cache result exists
      Parameters:
      resultExist - if the cache result exists
    • isRefreshNeeded

      public boolean isRefreshNeeded()
      Description copied from interface: InfoRecord
      Gets if the refresh is needed for an entry
      Specified by:
      isRefreshNeeded in interface InfoRecord
      Returns:
      TRUE if the refresh is needed, FALSE otherwise
    • isDesynchronized

      public boolean isDesynchronized()
      Description copied from interface: InfoRecord
      Gets if the record is desynchronized
      Specified by:
      isDesynchronized in interface InfoRecord
      Returns:
      TRUE if the record is desynchronized, FALSE otherwise
    • isSynchronized

      public boolean isSynchronized()
      Description copied from interface: InfoRecord
      Gets if the record is synchronized
      Specified by:
      isSynchronized in interface InfoRecord
      Returns:
      TRUE if the record is synchronized, FALSE otherwise
    • isError

      public boolean isError()
      Description copied from interface: InfoRecord
      Gets if the error is present for the record
      Specified by:
      isError in interface InfoRecord
      Returns:
      TRUE if the record defines an error, FALSE otherwise
    • isToBeDeleted

      public boolean isToBeDeleted()
      Description copied from interface: InfoRecord
      Gets if the record shall be deleted
      Specified by:
      isToBeDeleted in interface InfoRecord
      Returns:
      TRUE if the record shall be deleted, FALSE otherwise
    • getStatusName

      public String getStatusName()
      Description copied from interface: InfoRecord
      Gets the record's status name
      Specified by:
      getStatusName in interface InfoRecord
      Returns:
      String