public interface AuditReportDao
AuditLogRequest
and AuditReportRequest
Modifier and Type | Method and Description |
---|---|
Blob |
createBlob(InputStream stream,
long fileLength)
Create a sql Blob instance give the log file inputstream and file lenth
|
AuditLogRequest |
find(Long id)
Retrieve and instance
|
List<AuditLogRequest> |
findCandidateCompletedLogRequests()
Find
AuditLogRequest instances that, based on their
AuditLogRequest.getStage() , may be completely uploaded
by all nodes in the cluster. |
String |
getReport(Long id)
Retrieve the report associated with the instance based on the id
|
void |
refresh(AuditLogNodeRequest request)
Reload the node request from the persistent store - most notably resetting the blob inputstream
|
void |
remove(Long id)
Delete an instance of
AuditLogRequest from the persistent
store |
AuditLogNodeRequest |
save(AuditLogNodeRequest request)
Save relevant report information for a particular node in the cluster
|
AuditLogRequest |
save(AuditLogRequest request)
Save the instance in the persistent store
|
AuditLogRequest save(AuditLogRequest request)
request
- Blob createBlob(InputStream stream, long fileLength)
stream
- the input stream on the log filefileLength
- the length of the log fileAuditLogRequest find(Long id)
id
- void remove(Long id)
AuditLogRequest
from the persistent
storeid
- the primary key of the AuditLogRequest
AuditLogNodeRequest save(AuditLogNodeRequest request)
request
- part of the log request that relates to a particular nodeList<AuditLogRequest> findCandidateCompletedLogRequests()
AuditLogRequest
instances that, based on their
AuditLogRequest.getStage()
, may be completely uploaded
by all nodes in the cluster. This is a guess and additional logic should required to make the final determination.AuditLogRequest
instances that may be
finished uploading by all cluster membersvoid refresh(AuditLogNodeRequest request)
request
- Copyright © 2021. All rights reserved.