Class IntegrationReportWriter
java.lang.Object
org.odpi.openmetadata.frameworks.integration.reports.IntegrationReportWriter
IntegrationReportWriter is responsible for managing the assembly and production of IntegrationReports.
It offers methods to turn reporting on and off, define the time span (start capturing data/publish report) of a report; to record information that
should be included in the report.
-
Constructor Summary
ConstructorDescriptionIntegrationReportWriter
(String serverName, String connectorId, String integrationConnectorGUID, String connectorName, String userId, OpenIntegrationClient openIntegrationClient) Set up the integration report writer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Assemble the data collected and write out a report (if configured).void
reportElementCreation
(String elementGUID) Save information about a newly created element.void
reportElementDelete
(String elementGUID) Save information about a newly archived or deleted element.void
reportElementUpdate
(String elementGUID) Save information about a newly updated element.void
setActiveReportPublishing
(boolean flag) Set whether an integration report should be assembled and published.void
Set up properties ready for a new report.
-
Constructor Details
-
IntegrationReportWriter
public IntegrationReportWriter(String serverName, String connectorId, String integrationConnectorGUID, String connectorName, String userId, OpenIntegrationClient openIntegrationClient) Set up the integration report writer.- Parameters:
serverName
- name of this integration daemonconnectorId
- identifier of this running integration connector instanceintegrationConnectorGUID
- identifier of the integration connector entityconnectorName
- name of this integration connectoruserId
- calling useropenIntegrationClient
- client used to publish reports.
-
-
Method Details
-
startRecording
public void startRecording()Set up properties ready for a new report. -
publishReport
public void publishReport() throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionAssemble the data collected and write out a report (if configured).- Throws:
InvalidParameterException
- an invalid property has been passedUserNotAuthorizedException
- the user is not authorizedPropertyServerException
- there is a problem communicating with the metadata server (or it has a logic error).
-
setActiveReportPublishing
public void setActiveReportPublishing(boolean flag) Set whether an integration report should be assembled and published.- Parameters:
flag
- required behaviour
-
reportElementCreation
Save information about a newly created element.- Parameters:
elementGUID
- unique identifier of the element
-
reportElementUpdate
Save information about a newly updated element.- Parameters:
elementGUID
- unique identifier of the element
-
reportElementDelete
Save information about a newly archived or deleted element.- Parameters:
elementGUID
- unique identifier of the element
-