Package eu.europa.esig.dss.spi.tsl
Interface InfoRecord
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
DownloadInfoRecord,ParsingInfoRecord,ValidationInfoRecord
- All Known Implementing Classes:
AbstractCacheDTO,DownloadCacheDTO,ParsingCacheDTO,ValidationCacheDTO
public interface InfoRecord extends Serializable
Describes a state of a record
-
Method Summary
Modifier and Type Method Description DategetExceptionFirstOccurrenceTime()Gets the first time when the error is occurredDategetExceptionLastOccurrenceTime()Gets the last time when the error is occurredStringgetExceptionMessage()Gets the exception message for an error stateStringgetExceptionStackTrace()Gets the exception stack trace for an error stateDategetLastStateTransitionTime()Gets the last time when the state of record has been changedDategetLastSuccessSynchronizationTime()Gets the last time when the record has been synchronizedStringgetStatusName()Gets the record's status namebooleanisDesynchronized()Gets if the record is desynchronizedbooleanisError()Gets if the error is present for the recordbooleanisRefreshNeeded()Gets if the refresh is needed for an entrybooleanisResultExist()Gets if a result exist under the recordbooleanisSynchronized()Gets if the record is synchronizedbooleanisToBeDeleted()Gets if the record shall be deleted
-
Method Details
-
isRefreshNeeded
boolean isRefreshNeeded()Gets if the refresh is needed for an entry- Returns:
- TRUE if the refresh is needed, FALSE otherwise
-
isDesynchronized
boolean isDesynchronized()Gets if the record is desynchronized- Returns:
- TRUE if the record is desynchronized, FALSE otherwise
-
isSynchronized
boolean isSynchronized()Gets if the record is synchronized- Returns:
- TRUE if the record is synchronized, FALSE otherwise
-
isError
boolean isError()Gets if the error is present for the record- Returns:
- TRUE if the record defines an error, FALSE otherwise
-
isToBeDeleted
boolean isToBeDeleted()Gets if the record shall be deleted- Returns:
- TRUE if the record shall be deleted, FALSE otherwise
-
getStatusName
String getStatusName()Gets the record's status name- Returns:
String
-
getLastStateTransitionTime
Date getLastStateTransitionTime()Gets the last time when the state of record has been changed- Returns:
Date
-
getLastSuccessSynchronizationTime
Date getLastSuccessSynchronizationTime()Gets the last time when the record has been synchronized- Returns:
Date
-
getExceptionMessage
String getExceptionMessage()Gets the exception message for an error state- Returns:
String
-
getExceptionStackTrace
String getExceptionStackTrace()Gets the exception stack trace for an error state- Returns:
String
-
getExceptionFirstOccurrenceTime
Date getExceptionFirstOccurrenceTime()Gets the first time when the error is occurred- Returns:
Date
-
getExceptionLastOccurrenceTime
Date getExceptionLastOccurrenceTime()Gets the last time when the error is occurred- Returns:
Date
-
isResultExist
boolean isResultExist()Gets if a result exist under the record- Returns:
- TRUE if the result exists, FALSE otherwise
-