Package org.mockserver.log
Class MockServerEventLog
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.mock.listeners.MockServerEventLogNotifier
-
- org.mockserver.log.MockServerEventLog
-
public class MockServerEventLog extends MockServerEventLogNotifier
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description MockServerEventLog(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, boolean asynchronousEventProcessing)
-
Method Summary
-
Methods inherited from class org.mockserver.mock.listeners.MockServerEventLogNotifier
notifyListeners, registerListener, unregisterListener
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
MockServerEventLog
public MockServerEventLog(Configuration configuration, MockServerLogger mockServerLogger, Scheduler scheduler, boolean asynchronousEventProcessing)
-
-
Method Detail
-
add
public void add(LogEntry logEntry)
-
size
public int size()
-
stop
public void stop()
-
reset
public void reset()
-
clear
public void clear(RequestDefinition requestDefinition)
-
retrieveMessageLogEntries
public void retrieveMessageLogEntries(RequestDefinition requestDefinition, Consumer<List<LogEntry>> listConsumer)
-
retrieveMessageLogEntriesIncludingDeleted
public void retrieveMessageLogEntriesIncludingDeleted(RequestDefinition requestDefinition, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequestLogEntries
public void retrieveRequestLogEntries(RequestDefinition requestDefinition, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequests
public void retrieveRequests(Verification verification, String logCorrelationId, Consumer<List<RequestDefinition>> listConsumer)
-
retrieveAllRequests
public void retrieveAllRequests(boolean matchingExpectationsOnly, Consumer<List<RequestDefinition>> listConsumer)
-
retrieveAllRequests
public void retrieveAllRequests(List<String> expectationIds, Consumer<List<RequestAndExpectationId>> listConsumer)
-
retrieveRequests
public void retrieveRequests(RequestDefinition requestDefinition, Consumer<List<RequestDefinition>> listConsumer)
-
retrieveRequests
public void retrieveRequests(ExpectationId expectationId, Consumer<List<RequestDefinition>> listConsumer)
-
retrieveRequests
public void retrieveRequests(List<String> expectationIds, Consumer<List<RequestDefinition>> listConsumer)
-
retrieveRequestResponseMessageLogEntries
public void retrieveRequestResponseMessageLogEntries(RequestDefinition requestDefinition, Consumer<List<LogEntry>> listConsumer)
-
retrieveRequestResponses
public void retrieveRequestResponses(RequestDefinition requestDefinition, Consumer<List<LogEventRequestAndResponse>> listConsumer)
-
retrieveRecordedExpectationLogEntries
public void retrieveRecordedExpectationLogEntries(RequestDefinition requestDefinition, Consumer<List<LogEntry>> listConsumer)
-
retrieveRecordedExpectations
public void retrieveRecordedExpectations(RequestDefinition requestDefinition, Consumer<List<Expectation>> listConsumer)
-
retrieveLogEntriesByCorrelationId
public void retrieveLogEntriesByCorrelationId(String correlationId, Consumer<List<LogEntry>> listConsumer)
-
retrieveAlmostMatchedEntries
public void retrieveAlmostMatchedEntries(Consumer<List<LogEntry>> listConsumer)
-
retrieveUnmatchedRequests
public void retrieveUnmatchedRequests(int limit, Consumer<List<LogEntry>> listConsumer)Retrieves the most recent NO_MATCH_RESPONSE log entries (requests that hit the server and matched no expectation). Results are ordered most-recent-first and limited.- Parameters:
limit- maximum number of entries to return (capped at 100)listConsumer- callback receiving the list of matching log entries
-
retrieveLogEntriesInReverseForUI
public <T> void retrieveLogEntriesInReverseForUI(RequestDefinition requestDefinition, Predicate<LogEntry> logEntryPredicate, Function<LogEntry,T> logEntryMapper, Consumer<Stream<T>> consumer)
-
verify
public Future<String> verify(Verification verification)
-
verify
public void verify(Verification verification, Consumer<String> resultConsumer)
-
verify
public Future<String> verify(VerificationSequence verification)
-
verify
public void verify(VerificationSequence verificationSequence, Consumer<String> resultConsumer)
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-