public class RelationshipAuditor extends NiFiAuditor
| Modifier and Type | Field and Description |
|---|---|
private static String |
BACK_PRESSURE_DATA_SIZE_THRESHOLD |
private static String |
BACK_PRESSURE_OBJECT_THRESHOLD |
private static String |
FLOW_FILE_EXPIRATION |
private static org.slf4j.Logger |
logger |
private static String |
NAME |
private static String |
PRIORITIZERS |
| Constructor and Description |
|---|
RelationshipAuditor() |
| Modifier and Type | Method and Description |
|---|---|
ConnectDetails |
createConnectDetails(Connection connection,
Collection<Relationship> relationships) |
ConnectDetails |
createConnectDetails(Connection connection,
Connectable source,
Collection<Relationship> relationships,
Connectable destination)
Creates action details for connect/disconnect actions.
|
Object |
createConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
Audits the creation of relationships via createConnection().
|
private Component |
determineConnectableType(Connectable connectable)
Determines the type of component the specified connectable is.
|
private Map<String,String> |
extractConfiguredPropertyValues(Connection connection,
ConnectionDTO connectionDTO)
Extracts configured settings from the specified connection only if they
have also been specified in the connectionDTO.
|
Action |
generateAuditRecordForConnection(Connection connection,
Operation operation)
Generates the audit records for the specified connection.
|
Action |
generateAuditRecordForConnection(Connection connection,
Operation operation,
ActionDetails actionDetails)
Generates the audit records for the specified connection.
|
void |
removeConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
String groupId,
String id,
ConnectionDAO connectionDAO)
Audits the removal of relationships via deleteConnection().
|
Object |
updateConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
String groupId,
ConnectionDTO connectionDTO,
ConnectionDAO connectionDAO)
Audits the creation and removal of relationships via updateConnection().
|
createMoveDetails, getProcessGroupDAO, saveAction, saveActions, setAuditService, setProcessGroupDAO, setServiceFacadeprivate static final org.slf4j.Logger logger
private static final String NAME
private static final String FLOW_FILE_EXPIRATION
private static final String BACK_PRESSURE_OBJECT_THRESHOLD
private static final String BACK_PRESSURE_DATA_SIZE_THRESHOLD
private static final String PRIORITIZERS
public Object createConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint) throws Throwable
connection - Throwablepublic Object updateConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, String groupId, ConnectionDTO connectionDTO, ConnectionDAO connectionDAO) throws Throwable
proceedingJoinPoint - connectionDTO - connectionDAO - Throwablepublic void removeConnectionAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
String groupId,
String id,
ConnectionDAO connectionDAO)
throws Throwable
proceedingJoinPoint - id - connectionDAO - Throwablepublic ConnectDetails createConnectDetails(Connection connection, Collection<Relationship> relationships)
public ConnectDetails createConnectDetails(Connection connection, Connectable source, Collection<Relationship> relationships, Connectable destination)
connection - relationships - private Map<String,String> extractConfiguredPropertyValues(Connection connection, ConnectionDTO connectionDTO)
connection - connectionDTO - public Action generateAuditRecordForConnection(Connection connection, Operation operation)
connection - operation - public Action generateAuditRecordForConnection(Connection connection, Operation operation, ActionDetails actionDetails)
connection - operation - private Component determineConnectableType(Connectable connectable)
connectable - Copyright © 2015 Apache NiFi (incubating). All rights reserved.