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 Date
getExceptionFirstOccurrenceTime()
Gets the first time when the error is occurredDate
getExceptionLastOccurrenceTime()
Gets the last time when the error is occurredString
getExceptionMessage()
Gets the exception message for an error stateString
getExceptionStackTrace()
Gets the exception stack trace for an error stateDate
getLastStateTransitionTime()
Gets the last time when the state of record has been changedDate
getLastSuccessSynchronizationTime()
Gets the last time when the record has been synchronizedString
getStatusName()
Gets the record's status nameboolean
isDesynchronized()
Gets if the record is desynchronizedboolean
isError()
Gets if the error is present for the recordboolean
isRefreshNeeded()
Gets if the refresh is needed for an entryboolean
isResultExist()
Gets if a result exist under the recordboolean
isSynchronized()
Gets if the record is synchronizedboolean
isToBeDeleted()
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
-