id: 1 unit: private void cancelAndFreeActiveAndPersistedContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 330 end line: 408 size: 70 LOC McCabe index: 8 number of parameters: 3 id: 2 unit: public abstract void handleRequest() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchRoutingAction.java start line: 81 end line: 162 size: 70 LOC McCabe index: 9 number of parameters: 4 id: 3 unit: public void updateKeepAliveAndGetContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 489 end line: 563 size: 69 LOC McCabe index: 7 number of parameters: 5 id: 4 unit: public void updateExpirationTime() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 227 end line: 289 size: 62 LOC McCabe index: 10 number of parameters: 4 id: 5 unit: public void persistResponse() file: src/main/java/org/opensearch/search/asynchronous/processor/AsynchronousSearchPostProcessor.java start line: 104 end line: 174 size: 58 LOC McCabe index: 6 number of parameters: 2 id: 6 unit: public void deleteResponse() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 162 end line: 216 size: 55 LOC McCabe index: 10 number of parameters: 3 id: 7 unit: protected void doExecute() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportSubmitAsynchronousSearchAction.java start line: 68 end line: 123 size: 53 LOC McCabe index: 3 number of parameters: 3 id: 8 unit: public final void performCleanUp() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 193 end line: 237 size: 39 LOC McCabe index: 4 number of parameters: 0 id: 9 unit: private AsynchronousSearchStateMachine initStateMachine() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 569 end line: 615 size: 37 LOC McCabe index: 2 number of parameters: 0 id: 10 unit: public void getResponse() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 116 end line: 150 size: 35 LOC McCabe index: 7 number of parameters: 3 id: 11 unit: public static AsynchronousSearchResponse innerFromXContent() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 236 end line: 271 size: 35 LOC McCabe index: 10 number of parameters: 1 id: 12 unit: public static User parseUser() file: src/main/java/org/opensearch/search/asynchronous/utils/UserAuthUtils.java start line: 19 end line: 51 size: 33 LOC McCabe index: 10 number of parameters: 1 id: 13 unit: public AsynchronousSearchState trigger() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 83 end line: 113 size: 31 LOC McCabe index: 4 number of parameters: 1 id: 14 unit: public void deleteExpiredResponses() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 297 end line: 326 size: 29 LOC McCabe index: 7 number of parameters: 2 id: 15 unit: private Releasable acquirePermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 58 end line: 86 size: 29 LOC McCabe index: 5 number of parameters: 3 id: 16 unit: public void findContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 234 end line: 264 size: 28 LOC McCabe index: 4 number of parameters: 4 id: 17 unit: public void handleRequest() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportGetAsynchronousSearchAction.java start line: 54 end line: 83 size: 28 LOC McCabe index: 3 number of parameters: 4 id: 18 unit: public AsynchronousSearchService() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 132 end line: 158 size: 27 LOC McCabe index: 1 number of parameters: 7 id: 19 unit: private XContentBuilder mapping() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 393 end line: 418 size: 26 LOC McCabe index: 2 number of parameters: 0 id: 20 unit: private void doStoreResult() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 358 end line: 381 size: 23 LOC McCabe index: 3 number of parameters: 3 id: 21 unit: public SubmitAsynchronousSearchTask createTask() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 167 end line: 190 size: 23 LOC McCabe index: 2 number of parameters: 5 id: 22 unit: public ActionRequestValidationException validate() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 122 end line: 143 size: 22 LOC McCabe index: 9 number of parameters: 0 id: 23 unit: public AsynchronousSearchActiveContext() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 59 end line: 80 size: 22 LOC McCabe index: 2 number of parameters: 9 id: 24 unit: public XContentBuilder toXContent() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 110 end line: 130 size: 21 LOC McCabe index: 4 number of parameters: 2 id: 25 unit: public AsynchronousSearchContext createAndStoreContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 181 end line: 200 size: 20 LOC McCabe index: 1 number of parameters: 4 id: 26 unit: public void freeContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 290 end line: 313 size: 20 LOC McCabe index: 3 number of parameters: 4 id: 27 unit: private void handleCancelTaskPermitAcquired() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 421 end line: 443 size: 20 LOC McCabe index: 2 number of parameters: 3 id: 28 unit: public RestChannelConsumer prepareRequest() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 63 end line: 89 size: 20 LOC McCabe index: 1 number of parameters: 2 id: 29 unit: public void run() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 171 end line: 190 size: 19 LOC McCabe index: 2 number of parameters: 0 id: 30 unit: public SearchResponse partialResponse() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 218 end line: 239 size: 19 LOC McCabe index: 4 number of parameters: 0 id: 31 unit: private static String description() file: src/main/java/org/opensearch/search/asynchronous/task/AsynchronousSearchTask.java start line: 52 end line: 70 size: 19 LOC McCabe index: 2 number of parameters: 1 id: 32 unit: private void handleWaitForCompletion() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportGetAsynchronousSearchAction.java start line: 85 end line: 105 size: 19 LOC McCabe index: 3 number of parameters: 3 id: 33 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 183 end line: 201 size: 19 LOC McCabe index: 13 number of parameters: 1 id: 34 unit: public SearchResponse getSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 76 end line: 93 size: 18 LOC McCabe index: 3 number of parameters: 0 id: 35 unit: private void createIndexAndDoStoreResult() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 328 end line: 344 size: 17 LOC McCabe index: 3 number of parameters: 3 id: 36 unit: public AsynchronousSearchResponse processSearchFailure() file: src/main/java/org/opensearch/search/asynchronous/processor/AsynchronousSearchPostProcessor.java start line: 65 end line: 83 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 37 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 104 end line: 121 size: 17 LOC McCabe index: 20 number of parameters: 1 id: 38 unit: public Exception getSearchError() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 96 end line: 112 size: 17 LOC McCabe index: 3 number of parameters: 0 id: 39 unit: private static boolean calledFromAsynchronousSearchStateMachine() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 98 end line: 114 size: 17 LOC McCabe index: 4 number of parameters: 0 id: 40 unit: public static AsynchronousSearchId parseAsyncId() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchIdConverter.java start line: 42 end line: 57 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 41 unit: public AsynchronousSearchResponse processSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/processor/AsynchronousSearchPostProcessor.java start line: 85 end line: 102 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 42 unit: private void asyncAcquirePermit() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 88 end line: 104 size: 16 LOC McCabe index: 1 number of parameters: 4 id: 43 unit: public void processSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 108 end line: 123 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 44 unit: public AsynchronousSearchManagementService() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 87 end line: 101 size: 14 LOC McCabe index: 1 number of parameters: 6 id: 45 unit: public XContentBuilder toXContent() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 70 end line: 83 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 46 unit: private Map getErrorAsMap() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 203 end line: 216 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 47 unit: public void bootstrapSearch() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 209 end line: 221 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 48 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 147 end line: 159 size: 13 LOC McCabe index: 7 number of parameters: 1 id: 49 unit: public Collection createComponents() file: src/main/java/org/opensearch/search/asynchronous/plugin/AsynchronousSearchPlugin.java start line: 98 end line: 110 size: 13 LOC McCabe index: 1 number of parameters: 11 id: 50 unit: public void onResponse() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 146 end line: 158 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 51 unit: public void onFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 161 end line: 173 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 52 unit: public TransportAsynchronousSearchRoutingAction() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchRoutingAction.java start line: 58 end line: 70 size: 13 LOC McCabe index: 1 number of parameters: 9 id: 53 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 95 end line: 107 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 54 unit: boolean freeActiveContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 452 end line: 464 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 55 unit: public void clusterChanged() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 129 end line: 141 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 56 unit: protected RestChannelConsumer prepareRequest() file: src/main/java/org/opensearch/search/asynchronous/rest/RestGetAsynchronousSearchAction.java start line: 42 end line: 53 size: 12 LOC McCabe index: 3 number of parameters: 2 id: 57 unit: public AsynchronousSearchCountStats() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 31 end line: 42 size: 12 LOC McCabe index: 1 number of parameters: 9 id: 58 unit: public AsynchronousSearchPersistenceContext() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 38 end line: 49 size: 12 LOC McCabe index: 1 number of parameters: 5 id: 59 unit: public void processSearchFailure() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 94 end line: 106 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 60 unit: public static String buildAsyncId() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchIdConverter.java start line: 23 end line: 33 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 61 unit: private void doStoreResult() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 346 end line: 356 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 62 unit: public AsynchronousSearchProgressListener() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 45 end line: 55 size: 11 LOC McCabe index: 1 number of parameters: 7 id: 63 unit: public AsynchronousSearchCountStats() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 44 end line: 54 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 64 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 57 end line: 67 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 65 unit: public AsynchronousSearchPostProcessor() file: src/main/java/org/opensearch/search/asynchronous/processor/AsynchronousSearchPostProcessor.java start line: 53 end line: 63 size: 11 LOC McCabe index: 1 number of parameters: 6 id: 66 unit: private void handlePersist() file: src/main/java/org/opensearch/search/asynchronous/processor/AsynchronousSearchPostProcessor.java start line: 176 end line: 188 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 67 unit: private Map getResponseAsMap() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 218 end line: 228 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 68 unit: public String toString() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 63 end line: 73 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 69 unit: public AsynchronousSearchPersistenceModel getAsynchronousSearchPersistenceModel() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/BeginPersistEvent.java start line: 25 end line: 35 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 70 unit: private String serializeResponse() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 46 end line: 56 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 71 unit: private String serializeError() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 66 end line: 76 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 72 unit: public synchronized void putContext() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 52 end line: 62 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 73 unit: public boolean freeContext() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 86 end line: 96 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 74 unit: public void setTask() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 82 end line: 92 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 57 end line: 66 size: 10 LOC McCabe index: 6 number of parameters: 1 id: 76 unit: private void handleCancelTaskPermitAcquisitionFailed() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 410 end line: 419 size: 10 LOC McCabe index: 2 number of parameters: 4 id: 77 unit: public List getRestHandlers() file: src/main/java/org/opensearch/search/asynchronous/plugin/AsynchronousSearchPlugin.java start line: 142 end line: 151 size: 10 LOC McCabe index: 1 number of parameters: 7 id: 78 unit: public void messageReceived() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 106 end line: 115 size: 10 LOC McCabe index: 2 number of parameters: 3 id: 79 unit: public AsynchronousSearchTask() file: src/main/java/org/opensearch/search/asynchronous/task/AsynchronousSearchTask.java start line: 34 end line: 43 size: 10 LOC McCabe index: 1 number of parameters: 8 id: 80 unit: public TransportSubmitAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportSubmitAsynchronousSearchAction.java start line: 56 end line: 65 size: 10 LOC McCabe index: 1 number of parameters: 7 id: 81 unit: public void handleRequest() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportDeleteAsynchronousSearchAction.java start line: 45 end line: 54 size: 10 LOC McCabe index: 2 number of parameters: 4 id: 82 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 89 end line: 98 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 83 unit: public XContentBuilder toXContent() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 51 end line: 60 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 84 unit: public AsynchronousSearchTransition() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 22 end line: 31 size: 10 LOC McCabe index: 1 number of parameters: 5 id: 85 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 130 end line: 139 size: 10 LOC McCabe index: 5 number of parameters: 1 id: 86 unit: public Optional getContext() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 64 end line: 73 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 87 unit: private void validateWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 657 end line: 665 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 88 unit: private Settings indexSettings() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 383 end line: 391 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 89 unit: protected void onListShards() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 68 end line: 76 size: 9 LOC McCabe index: 1 number of parameters: 4 id: 90 unit: public static boolean isUserValid() file: src/main/java/org/opensearch/search/asynchronous/utils/UserAuthUtils.java start line: 53 end line: 61 size: 9 LOC McCabe index: 4 number of parameters: 2 id: 91 unit: public AsynchronousSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 55 end line: 63 size: 9 LOC McCabe index: 2 number of parameters: 6 id: 92 unit: public AsynchronousSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 65 end line: 73 size: 9 LOC McCabe index: 1 number of parameters: 6 id: 93 unit: public AsynchronousSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 75 end line: 83 size: 9 LOC McCabe index: 1 number of parameters: 5 id: 94 unit: public AsynchronousSearchStateMachine() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 36 end line: 44 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 95 unit: public Set getContextsToReap() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 270 end line: 277 size: 8 LOC McCabe index: 3 number of parameters: 0 id: 96 unit: private void validateKeepAlive() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 667 end line: 674 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 97 unit: private Exception translateException() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 689 end line: 696 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 98 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 329 end line: 336 size: 8 LOC McCabe index: 4 number of parameters: 1 id: 99 unit: protected void onFinalReduce() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 88 end line: 96 size: 8 LOC McCabe index: 1 number of parameters: 4 id: 100 unit: public AsynchronousSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 85 end line: 92 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 101 unit: protected List readNodesFrom() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 36 end line: 43 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: public AsynchronousSearchPersistenceModel() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 37 end line: 44 size: 8 LOC McCabe index: 1 number of parameters: 5 id: 103 unit: public void asyncAcquirePermit() file: src/main/java/org/opensearch/search/asynchronous/context/permits/NoopAsynchronousSearchContextPermits.java start line: 24 end line: 31 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 104 unit: private void cancelTask() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 315 end line: 322 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 105 unit: public void storeResponse() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 100 end line: 106 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 106 unit: public SubmitAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 67 end line: 73 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 107 unit: public SubmitAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 103 end line: 109 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 112 end line: 118 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: protected void doRun() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 273 end line: 279 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 110 unit: protected void onPartialReduce() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 79 end line: 85 size: 7 LOC McCabe index: 1 number of parameters: 4 id: 111 unit: private synchronized boolean addListener() file: src/main/java/org/opensearch/search/asynchronous/listener/CompositeSearchProgressActionListener.java start line: 44 end line: 50 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 112 unit: public AsynchronousSearchCountStats countStats() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 86 end line: 92 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 113 unit: public TransportDeleteAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportDeleteAsynchronousSearchAction.java start line: 36 end line: 42 size: 7 LOC McCabe index: 1 number of parameters: 6 id: 114 unit: public TransportAsynchronousSearchStatsAction() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 34 end line: 42 size: 7 LOC McCabe index: 1 number of parameters: 5 id: 115 unit: public TransportGetAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportGetAsynchronousSearchAction.java start line: 45 end line: 51 size: 7 LOC McCabe index: 1 number of parameters: 6 id: 116 unit: protected void doExecute() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchRoutingAction.java start line: 73 end line: 79 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 117 unit: public final XContentBuilder toXContent() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 65 end line: 71 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 118 unit: public AsynchronousSearchStateMachineClosedException() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachineClosedException.java start line: 15 end line: 21 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 119 unit: public AsynchronousSearchPersistenceModel() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 29 end line: 35 size: 7 LOC McCabe index: 1 number of parameters: 5 id: 120 unit: public boolean isAlive() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 180 end line: 186 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 121 unit: private void validateRequest() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 650 end line: 655 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: private void triggerCleanUp() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 143 end line: 148 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 123 unit: public void onAfter() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 282 end line: 287 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 124 unit: public static PrioritizedActionListener wrapScheduledTimeout() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 37 end line: 42 size: 6 LOC McCabe index: 1 number of parameters: 5 id: 125 unit: public static PrioritizedActionListener initListener() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 51 end line: 56 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 126 unit: public static PrioritizedActionListener scheduleTimeout() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 67 end line: 72 size: 6 LOC McCabe index: 1 number of parameters: 4 id: 127 unit: public void executeImmediately() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 97 end line: 102 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 128 unit: public void onResponse() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 105 end line: 110 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 129 unit: public void onFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 113 end line: 118 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 130 unit: private synchronized void onShardResult() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 122 end line: 127 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 131 unit: private synchronized void onSearchFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 129 end line: 139 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 132 unit: public void onResponse() file: src/main/java/org/opensearch/search/asynchronous/listener/CompositeSearchProgressActionListener.java start line: 54 end line: 59 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: public void onFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/CompositeSearchProgressActionListener.java start line: 62 end line: 67 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 134 unit: public List replacedRoutes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 55 end line: 60 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 135 unit: private AsynchronousSearchStatsRequest getRequest() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 62 end line: 69 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: public List replacedRoutes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 55 end line: 60 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 137 unit: protected RestChannelConsumer prepareRequest() file: src/main/java/org/opensearch/search/asynchronous/rest/RestDeleteAsynchronousSearchAction.java start line: 41 end line: 46 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 138 unit: public XContentBuilder toXContent() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchStats.java start line: 46 end line: 51 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 139 unit: public AcknowledgedResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 39 end line: 44 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 140 unit: public boolean equals() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 45 end line: 50 size: 6 LOC McCabe index: 5 number of parameters: 1 id: 141 unit: public AsynchronousSearchContextPermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 51 end line: 56 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 142 unit: public AsynchronousSearchActiveStore() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 41 end line: 46 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: public AsynchronousSearchId() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 27 end line: 31 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 144 unit: protected void doStop() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 628 end line: 632 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 145 unit: public AsynchronousSearchPersistenceService() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 85 end line: 89 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 146 unit: public GetAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 48 end line: 52 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 55 end line: 59 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 148 unit: public void onRejection() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 259 end line: 263 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 149 unit: void cancel() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 85 end line: 89 size: 5 LOC McCabe index: 3 number of parameters: 0 id: 150 unit: public void addOrExecuteListener() file: src/main/java/org/opensearch/search/asynchronous/listener/CompositeSearchProgressActionListener.java start line: 34 end line: 38 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 151 unit: public List replacedRoutes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestGetAsynchronousSearchAction.java start line: 35 end line: 39 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 152 unit: protected RestChannelConsumer prepareRequest() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 47 end line: 52 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 153 unit: public List replacedRoutes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestDeleteAsynchronousSearchAction.java start line: 34 end line: 38 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 154 unit: protected void onCancelled() file: src/main/java/org/opensearch/search/asynchronous/task/AsynchronousSearchTask.java start line: 46 end line: 50 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 155 unit: public static AsynchronousSearchResponse fromXContent() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 230 end line: 234 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 156 unit: public AsynchronousSearchContextPermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 45 end line: 49 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 157 unit: public void close() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 193 end line: 197 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 158 unit: private boolean shouldCancel() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 323 end line: 326 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 159 unit: public boolean onCancelledFreeActiveContext() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 472 end line: 475 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 160 unit: private boolean isOverRunning() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 680 end line: 683 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 161 unit: protected AsynchronousSearchRoutingRequest() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchRoutingRequest.java start line: 25 end line: 28 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 162 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchRoutingRequest.java start line: 31 end line: 34 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 163 unit: public Collection getSystemIndexDescriptors() file: src/main/java/org/opensearch/search/asynchronous/plugin/AsynchronousSearchPlugin.java start line: 76 end line: 79 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 164 unit: private void asyncCleanUpOperation() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 118 end line: 121 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 165 unit: private void performPersistedResponseCleanUpAction() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 123 end line: 126 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 166 unit: protected void doStart() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 151 end line: 154 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 167 unit: protected void doStop() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 157 end line: 160 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 168 unit: protected void doClose() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 163 end line: 166 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 169 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 305 end line: 308 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 170 unit: protected void onFetchFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 99 end line: 102 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 171 unit: protected void onFetchResult() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 105 end line: 108 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 172 unit: protected void onQueryFailure() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 111 end line: 114 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 173 unit: protected void onQueryResult() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 117 end line: 120 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 174 unit: static file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 39 end line: 42 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 175 unit: public static ResourceNotFoundException buildResourceNotFoundException() file: src/main/java/org/opensearch/search/asynchronous/utils/AsynchronousSearchExceptionUtils.java start line: 14 end line: 17 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 176 unit: public SubmitAsynchronousSearchTask() file: src/main/java/org/opensearch/search/asynchronous/task/SubmitAsynchronousSearchTask.java start line: 19 end line: 22 size: 4 LOC McCabe index: 1 number of parameters: 6 id: 177 unit: public AsynchronousSearchStats() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchStats.java start line: 29 end line: 32 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 178 unit: public AsynchronousSearchStats() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchStats.java start line: 34 end line: 37 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 179 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchStats.java start line: 40 end line: 43 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 180 unit: public void onContextFailed() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 18 end line: 21 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 181 unit: public void onContextCompleted() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 65 end line: 68 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 182 unit: protected AsynchronousSearchStatsResponse newResponse() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 45 end line: 48 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 183 unit: public AsynchronousSearchStatsNodeRequest() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 73 end line: 76 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 184 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 83 end line: 86 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 185 unit: public AcknowledgedResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 34 end line: 37 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 186 unit: static file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 83 end line: 86 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 187 unit: public AsynchronousSearchStatsResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 30 end line: 33 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 188 unit: private void execute() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 118 end line: 121 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 189 unit: public SearchFailureEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchFailureEvent.java start line: 18 end line: 21 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 190 unit: public SearchSuccessfulEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchSuccessfulEvent.java start line: 19 end line: 22 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 191 unit: public SearchStartedEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchStartedEvent.java start line: 23 end line: 26 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 192 unit: protected AsynchronousSearchContextEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchContextEvent.java start line: 19 end line: 22 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 193 unit: public AsynchronousSearchContextId() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 20 end line: 23 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 194 unit: public AsynchronousSearchContextId() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 25 end line: 28 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 195 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 31 end line: 34 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 196 unit: public AsynchronousSearchContext() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 33 end line: 36 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 197 unit: public AsynchronousSearchResponse getAsynchronousSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 74 end line: 77 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 198 unit: public void setExpirationTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 143 end line: 146 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 199 unit: public AsynchronousSearchContextClosedException() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchContextClosedException.java start line: 14 end line: 17 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 200 unit: public AsynchronousSearchContextId getAsynchronousSearchContextId() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 201 unit: public String getNode() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 202 unit: public long getTaskId() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 203 unit: public String toString() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 204 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/id/AsynchronousSearchId.java start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 205 unit: private void setMaxSearchRunningTime() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 160 end line: 162 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 206 unit: private void setMaxWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 164 end line: 166 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 207 unit: private void setKeepAlive() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 168 end line: 170 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 208 unit: public Map getAllActiveContexts() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 266 end line: 268 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 209 unit: AsynchronousSearchStateMachine getStateMachine() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 565 end line: 567 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 210 unit: protected void doClose() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 635 end line: 637 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 211 unit: public AsynchronousSearchStats stats() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 642 end line: 644 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 212 unit: public long getMaxWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 646 end line: 648 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 213 unit: private ActionListener getExceptionTranslationWrapper() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 685 end line: 687 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 214 unit: private void setPersistSearchFailure() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 698 end line: 700 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 215 unit: private boolean indexExists() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchPersistenceService.java start line: 420 end line: 422 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 216 unit: protected AsynchronousSearchRoutingRequest() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchRoutingRequest.java start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 217 unit: public String getId() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchRoutingRequest.java start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 218 unit: public GetAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 219 unit: public TimeValue getWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 220 unit: public void setWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 221 unit: public TimeValue getKeepAlive() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 222 unit: public void setKeepAlive() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 223 unit: public ActionRequestValidationException validate() file: src/main/java/org/opensearch/search/asynchronous/request/GetAsynchronousSearchRequest.java start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 224 unit: public DeleteAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/DeleteAsynchronousSearchRequest.java start line: 18 end line: 20 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 225 unit: public DeleteAsynchronousSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/DeleteAsynchronousSearchRequest.java start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 226 unit: public ActionRequestValidationException validate() file: src/main/java/org/opensearch/search/asynchronous/request/DeleteAsynchronousSearchRequest.java start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 227 unit: public SearchRequest getSearchRequest() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 75 end line: 77 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 228 unit: public TimeValue getWaitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 79 end line: 81 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 229 unit: public void waitForCompletionTimeout() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 83 end line: 85 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 230 unit: public Boolean getKeepOnCompletion() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 87 end line: 89 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 231 unit: public void keepOnCompletion() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 91 end line: 93 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: public TimeValue getKeepAlive() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 95 end line: 97 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 233 unit: public void keepAlive() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 99 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 234 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/request/SubmitAsynchronousSearchRequest.java start line: 162 end line: 164 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 235 unit: public AsynchronousSearchStatsRequest() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchStatsRequest.java start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: public AsynchronousSearchStatsRequest() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchStatsRequest.java start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 237 unit: public AsynchronousSearchStatsRequest() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchStatsRequest.java start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 238 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/request/AsynchronousSearchStatsRequest.java start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 239 unit: private SubmitAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/action/SubmitAsynchronousSearchAction.java start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 240 unit: private AsynchronousSearchStatsAction() file: src/main/java/org/opensearch/search/asynchronous/action/AsynchronousSearchStatsAction.java start line: 18 end line: 20 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 241 unit: private GetAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/action/GetAsynchronousSearchAction.java start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 242 unit: private DeleteAsynchronousSearchAction() file: src/main/java/org/opensearch/search/asynchronous/action/DeleteAsynchronousSearchAction.java start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 243 unit: protected void doRun() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 248 end line: 250 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 244 unit: public void onFailure() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 253 end line: 255 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 245 unit: public ActionRequestValidationException validate() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 311 end line: 313 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 246 unit: public long getAbsoluteTimeInMillis() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 318 end line: 320 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 247 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 324 end line: 326 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 248 unit: public String toString() file: src/main/java/org/opensearch/search/asynchronous/management/AsynchronousSearchManagementService.java start line: 339 end line: 341 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 249 unit: public void run() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchTimeoutWrapper.java start line: 92 end line: 94 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 250 unit: public SearchResponse partialResponse() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 63 end line: 65 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 251 unit: public CompositeSearchProgressActionListener searchProgressActionListener() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 141 end line: 143 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 252 unit: private void clearPartialResult() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchProgressListener.java start line: 178 end line: 180 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 253 unit: public synchronized void removeListener() file: src/main/java/org/opensearch/search/asynchronous/listener/CompositeSearchProgressActionListener.java start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 254 unit: public String getName() file: src/main/java/org/opensearch/search/asynchronous/rest/RestGetAsynchronousSearchAction.java start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 255 unit: public List routes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestGetAsynchronousSearchAction.java start line: 30 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 256 unit: public String getName() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 257 unit: public List routes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 42 end line: 44 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 258 unit: public String getName() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 45 end line: 47 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 259 unit: public List routes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 50 end line: 52 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 260 unit: protected Set responseParams() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 92 end line: 94 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 261 unit: public boolean allowsUnsafeBuffers() file: src/main/java/org/opensearch/search/asynchronous/rest/RestSubmitAsynchronousSearchAction.java start line: 97 end line: 99 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 262 unit: public String getName() file: src/main/java/org/opensearch/search/asynchronous/rest/RestDeleteAsynchronousSearchAction.java start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 263 unit: public List routes() file: src/main/java/org/opensearch/search/asynchronous/rest/RestDeleteAsynchronousSearchAction.java start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 264 unit: public boolean shouldCancelChildrenOnCancellation() file: src/main/java/org/opensearch/search/asynchronous/task/SubmitAsynchronousSearchTask.java start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 265 unit: public long getRunningCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 98 end line: 100 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 266 unit: public long getPersistedCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 102 end line: 104 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 267 unit: public long getCompletedCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 106 end line: 108 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 268 unit: public long getFailedCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 110 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 269 unit: public long getThrottledCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 114 end line: 116 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 270 unit: public long getInitializedCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 118 end line: 120 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 271 unit: public long getCancelledCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 122 end line: 124 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 272 unit: public long getSubmittedCount() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchCountStats.java start line: 126 end line: 128 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 273 unit: public AsynchronousSearchCountStats getAsynchronousSearchCountStats() file: src/main/java/org/opensearch/search/asynchronous/stats/AsynchronousSearchStats.java start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 274 unit: public void onContextPersisted() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 275 unit: public void onContextPersistFailed() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 276 unit: public void onContextRunning() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 277 unit: public void onContextRejected() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 278 unit: public void onNewContext() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 45 end line: 47 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 279 unit: public void onContextCancelled() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 50 end line: 52 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 280 unit: public void onContextInitialized() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 55 end line: 57 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 281 unit: public void onRunningContextDeleted() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 60 end line: 62 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 282 unit: public AsynchronousSearchStats stats() file: src/main/java/org/opensearch/search/asynchronous/stats/InternalAsynchronousSearchStats.java start line: 70 end line: 72 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 283 unit: protected AsynchronousSearchStatsNodeRequest newNodeRequest() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 51 end line: 53 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 284 unit: protected AsynchronousSearchStats newNodeResponse() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 56 end line: 58 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 285 unit: protected AsynchronousSearchStats nodeOperation() file: src/main/java/org/opensearch/search/asynchronous/transport/TransportAsynchronousSearchStatsAction.java start line: 61 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 286 unit: public AcknowledgedResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 287 unit: public final boolean isAcknowledged() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 55 end line: 57 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 288 unit: public void writeTo() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 60 end line: 62 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 289 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 290 unit: public RestStatus status() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 106 end line: 108 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 291 unit: public AsynchronousSearchState getState() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 132 end line: 134 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 292 unit: public long getStartTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 136 end line: 138 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 293 unit: public SearchResponse getSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 140 end line: 142 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 294 unit: public OpenSearchException getError() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 144 end line: 146 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 295 unit: public long getExpirationTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 148 end line: 150 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 296 unit: public String getId() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 152 end line: 154 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 297 unit: public RestStatus status() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 157 end line: 159 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 298 unit: public String toString() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 162 end line: 164 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 299 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 178 end line: 180 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 300 unit: public static AsynchronousSearchResponse empty() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchResponse.java start line: 274 end line: 276 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 301 unit: public AsynchronousSearchStatsResponse() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 26 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 302 unit: protected void writeNodesTo() file: src/main/java/org/opensearch/search/asynchronous/response/AsynchronousSearchStatsResponse.java start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 303 unit: public void markTerminalStates() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 304 unit: public AsynchronousSearchState getInitialState() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 51 end line: 53 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 305 unit: public Set getFinalStates() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 56 end line: 58 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 306 unit: public Set getStates() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 307 unit: public void registerTransition() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 70 end line: 72 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 308 unit: public String getTransitionId() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 128 end line: 130 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 309 unit: private String getTransitionId() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachine.java start line: 137 end line: 139 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 310 unit: public AsynchronousSearchState sourceState() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 311 unit: public AsynchronousSearchState targetState() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 312 unit: public Class eventType() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 44 end line: 46 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 313 unit: public BiConsumer onEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 49 end line: 51 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 314 unit: public BiConsumer eventListener() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchTransition.java start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 315 unit: public AsynchronousSearchState getCurrentState() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachineClosedException.java start line: 23 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 316 unit: public AsynchronousSearchContextEvent getContextEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchStateMachineClosedException.java start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 317 unit: public Exception getException() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchFailureEvent.java start line: 23 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 318 unit: public SearchResponsePersistFailedEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchResponsePersistFailedEvent.java start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 319 unit: public SearchResponsePersistedEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchResponsePersistedEvent.java start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 320 unit: public SearchDeletedEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchDeletedEvent.java start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 321 unit: public BeginPersistEvent() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/BeginPersistEvent.java start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 322 unit: public SearchResponse getSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchSuccessfulEvent.java start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 323 unit: public AsynchronousSearchContext asynchronousSearchContext() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchStartedEvent.java start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 324 unit: public SearchTask getSearchTask() file: src/main/java/org/opensearch/search/asynchronous/context/state/event/SearchStartedEvent.java start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 325 unit: public AsynchronousSearchContext asynchronousSearchContext() file: src/main/java/org/opensearch/search/asynchronous/context/state/AsynchronousSearchContextEvent.java start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 326 unit: public String getContextId() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 327 unit: public long getId() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 328 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 329 unit: public String toString() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContextId.java start line: 58 end line: 60 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 330 unit: AsynchronousSearchProgressListener getAsynchronousSearchProgressListener() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 331 unit: public AsynchronousSearchState getAsynchronousSearchState() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 332 unit: public boolean isRunning() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 47 end line: 49 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 333 unit: public AsynchronousSearchContextId getContextId() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 51 end line: 53 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 334 unit: public boolean isExpired() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 70 end line: 72 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 335 unit: public void setState() file: src/main/java/org/opensearch/search/asynchronous/context/AsynchronousSearchContext.java start line: 79 end line: 81 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 336 unit: public long getStartTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 78 end line: 80 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 337 unit: public String getResponse() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 82 end line: 84 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 338 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 87 end line: 89 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 339 unit: public String getError() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 91 end line: 93 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 340 unit: public long getExpirationTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 95 end line: 97 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 341 unit: public User getUser() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceModel.java start line: 99 end line: 101 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 342 unit: public AsynchronousSearchPersistenceModel getAsynchronousSearchPersistenceModel() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 51 end line: 53 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 343 unit: public String getAsynchronousSearchId() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 56 end line: 58 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 344 unit: public boolean isRunning() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 61 end line: 63 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 345 unit: public long getExpirationTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 66 end line: 68 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 346 unit: public long getStartTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 71 end line: 73 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 347 unit: public User getUser() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 115 end line: 117 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 348 unit: public AsynchronousSearchState getAsynchronousSearchState() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 349 unit: public int hashCode() file: src/main/java/org/opensearch/search/asynchronous/context/persistence/AsynchronousSearchPersistenceContext.java start line: 125 end line: 127 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 350 unit: public NoopAsynchronousSearchContextPermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/NoopAsynchronousSearchContextPermits.java start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 351 unit: public void asyncAcquireAllPermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/NoopAsynchronousSearchContextPermits.java start line: 34 end line: 36 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 352 unit: public void asyncAcquirePermit() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 116 end line: 118 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 353 unit: public void asyncAcquireAllPermits() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 130 end line: 132 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 354 unit: public void close() file: src/main/java/org/opensearch/search/asynchronous/context/permits/AsynchronousSearchContextPermits.java start line: 135 end line: 137 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 355 unit: private void setNodeConcurrentRunningSearches() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 48 end line: 50 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 356 unit: public Map getAllContexts() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveStore.java start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 357 unit: public SearchResponse getSearchResponse() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 126 end line: 128 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 358 unit: public String getAsynchronousSearchId() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 131 end line: 133 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 359 unit: public boolean shouldPersist() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 135 end line: 137 size: 3 LOC McCabe index: 5 number of parameters: 0 id: 360 unit: public boolean keepOnCompletion() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 139 end line: 141 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 361 unit: public SearchTask getTask() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 148 end line: 150 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 362 unit: public Exception getSearchError() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 153 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 363 unit: public long getExpirationTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 158 end line: 160 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 364 unit: public long getStartTimeMillis() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 163 end line: 165 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 365 unit: public User getUser() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 168 end line: 170 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 366 unit: public void acquireContextPermitIfRequired() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 172 end line: 174 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 367 unit: public void acquireAllContextPermits() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 176 end line: 178 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 368 unit: public boolean isCompleted() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchActiveContext.java start line: 188 end line: 190 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 369 unit: public AsynchronousSearchContextId getAsynchronousSearchContextId() file: src/main/java/org/opensearch/search/asynchronous/context/active/AsynchronousSearchContextClosedException.java start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 370 unit: public void clusterChanged() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 618 end line: 620 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 371 unit: protected void doStart() file: src/main/java/org/opensearch/search/asynchronous/service/AsynchronousSearchService.java start line: 623 end line: 625 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 372 unit: default void onNewContext() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 18 end line: 19 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 373 unit: default void onContextCompleted() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 24 end line: 25 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 374 unit: default void onContextFailed() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 30 end line: 31 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 375 unit: default void onContextPersisted() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 36 end line: 37 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 376 unit: default void onContextPersistFailed() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 42 end line: 43 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 377 unit: default void onContextDeleted() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 48 end line: 49 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 378 unit: default void onContextRunning() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 54 end line: 55 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 379 unit: default void onContextRejected() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 60 end line: 61 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 380 unit: default void onRunningContextDeleted() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 66 end line: 67 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 381 unit: default void onContextCancelled() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 72 end line: 73 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 382 unit: default void onContextInitialized() file: src/main/java/org/opensearch/search/asynchronous/listener/AsynchronousSearchContextEventListener.java start line: 78 end line: 79 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 383 unit: public RestAsynchronousSearchStatsAction() file: src/main/java/org/opensearch/search/asynchronous/rest/RestAsynchronousSearchStatsAction.java start line: 32 end line: 33 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 384 unit: protected void addCustomFields() file: src/main/java/org/opensearch/search/asynchronous/response/AcknowledgedResponse.java start line: 73 end line: 75 size: 2 LOC McCabe index: 1 number of parameters: 2