public class FileBasedAuditLogStoreConnector extends OMRSAuditLogStoreConnectorBase
ConnectorBase.ProtectedConnectionconnectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties| Constructor and Description |
|---|
FileBasedAuditLogStoreConnector()
Default constructor used by the connector provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Free up any resources held since the connector is no longer needed.
|
OMRSAuditLogRecord |
getAuditLogRecord(String logRecordId)
Retrieve a specific audit log record.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsByComponent(String component,
Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records written by a specific component.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsBySeverity(String severity,
Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records that have specific severity.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsByTimeStamp(Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records written in a specified time period.
|
void |
start()
Set up the name of the file store
|
String |
storeLogRecord(OMRSAuditLogRecord logRecord)
Store the audit log record in the audit log store.
|
getDestinationName, getJSONLogRecord, getSupportedSeverities, initialize, isSupportedSeverity, storeLogRecord, validateLogRecordequals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initializeConnectedAssetProperties, isActive, toStringpublic FileBasedAuditLogStoreConnector()
public void start()
throws ConnectorCheckedException
start in class ConnectorBaseConnectorCheckedException - something went wrongpublic String storeLogRecord(OMRSAuditLogRecord logRecord) throws InvalidParameterException
storeLogRecord in interface OMRSAuditLogStorestoreLogRecord in class OMRSAuditLogStoreConnectorBaselogRecord - log record to storeInvalidParameterException - indicates that the logRecord parameter is invalid.public OMRSAuditLogRecord getAuditLogRecord(String logRecordId) throws InvalidParameterException, RepositoryErrorException
getAuditLogRecord in interface OMRSAuditLogStoregetAuditLogRecord in class OMRSAuditLogStoreConnectorBaselogRecordId - unique identifier for the log recordInvalidParameterException - indicates that the logRecordId parameter is invalid.RepositoryErrorException - indicates that the audit log store is not available or has an error.public List<OMRSAuditLogRecord> getAuditLogRecordsByTimeStamp(Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, RepositoryErrorException
getAuditLogRecordsByTimeStamp in interface OMRSAuditLogStoregetAuditLogRecordsByTimeStamp in class OMRSAuditLogStoreConnectorBasestartDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.RepositoryErrorException - indicates that the audit log store is not available or has an error.public List<OMRSAuditLogRecord> getAuditLogRecordsBySeverity(String severity, Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, RepositoryErrorException
getAuditLogRecordsBySeverity in interface OMRSAuditLogStoregetAuditLogRecordsBySeverity in class OMRSAuditLogStoreConnectorBaseseverity - the severity value of messages to returnstartDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the severity, start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.RepositoryErrorException - indicates that the audit log store is not available or has an error.public List<OMRSAuditLogRecord> getAuditLogRecordsByComponent(String component, Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, RepositoryErrorException
getAuditLogRecordsByComponent in interface OMRSAuditLogStoregetAuditLogRecordsByComponent in class OMRSAuditLogStoreConnectorBasecomponent - name of the component to retrieve events fromstartDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the component, start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.RepositoryErrorException - indicates that the audit log store is not available or has an error.public void disconnect()
throws ConnectorCheckedException
disconnect in class ConnectorBaseConnectorCheckedException - there is a problem within the connector.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.