Search in sources :

Example 6 with Severity

use of org.apache.nifi.reporting.Severity in project nifi-minifi by apache.

the class MiNiFiPersistentProvenanceRepositoryTest method printTestName.

@Before
public void printTestName() {
    reportedEvents.clear();
    eventReporter = new EventReporter() {

        private static final long serialVersionUID = 1L;

        @Override
        public void reportEvent(Severity severity, String category, String message) {
            reportedEvents.add(new ReportedEvent(severity, category, message));
            System.out.println(severity + " : " + category + " : " + message);
        }
    };
}
Also used : Severity(org.apache.nifi.reporting.Severity) EventReporter(org.apache.nifi.events.EventReporter) Before(org.junit.Before)

Aggregations

Severity (org.apache.nifi.reporting.Severity)6 EventReporter (org.apache.nifi.events.EventReporter)5 Before (org.junit.Before)2 IOException (java.io.IOException)1 ReportedEvent (org.apache.nifi.cluster.ReportedEvent)1 NodeClusterCoordinator (org.apache.nifi.cluster.coordination.node.NodeClusterCoordinator)1 ClusterCoordinationProtocolSenderListener (org.apache.nifi.cluster.protocol.impl.ClusterCoordinationProtocolSenderListener)1 SocketProtocolListener (org.apache.nifi.cluster.protocol.impl.SocketProtocolListener)1 JaxbProtocolContext (org.apache.nifi.cluster.protocol.jaxb.JaxbProtocolContext)1 ProtocolMessage (org.apache.nifi.cluster.protocol.message.ProtocolMessage)1 ServerSocketConfiguration (org.apache.nifi.io.socket.ServerSocketConfiguration)1 Peer (org.apache.nifi.remote.Peer)1 PeerDescription (org.apache.nifi.remote.PeerDescription)1 HttpCommunicationsSession (org.apache.nifi.remote.io.http.HttpCommunicationsSession)1 HttpInput (org.apache.nifi.remote.io.http.HttpInput)1 HttpOutput (org.apache.nifi.remote.io.http.HttpOutput)1 Bulletin (org.apache.nifi.reporting.Bulletin)1