>From Ali Alsuliman <[email protected]>: Ali Alsuliman has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21306?usp=email )
Change subject: [ASTERIXDB-3649][API] Add servlet for open-requests() ...................................................................... [ASTERIXDB-3649][API] Add servlet for open-requests() - user model changes: no - storage format changes: no - interface changes: no Ext-ref: MB-71998 Change-Id: Icd0cdf74f6704c42ed801399f2e6fac456bc59b2 --- A asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/OpenRequestsServlet.java 1 file changed, 37 insertions(+), 0 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/06/21306/1 diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/OpenRequestsServlet.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/OpenRequestsServlet.java new file mode 100644 index 0000000..9165c2e --- /dev/null +++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/server/OpenRequestsServlet.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.asterix.api.http.server; + +import java.util.Collection; +import java.util.concurrent.ConcurrentMap; + +import org.apache.asterix.common.api.IClientRequest; +import org.apache.asterix.common.dataflow.ICcApplicationContext; + +public class OpenRequestsServlet extends AbstractRequestsServlet { + + public OpenRequestsServlet(ConcurrentMap<String, Object> ctx, ICcApplicationContext appCtx, String... paths) { + super(ctx, appCtx, paths); + } + + @Override + public Collection<IClientRequest> getRequests() { + return appCtx.getRequestTracker().getAsyncRequests(); + } +} -- To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21306?usp=email To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: asterixdb Gerrit-Branch: lumina Gerrit-Change-Id: Icd0cdf74f6704c42ed801399f2e6fac456bc59b2 Gerrit-Change-Number: 21306 Gerrit-PatchSet: 1 Gerrit-Owner: Ali Alsuliman <[email protected]>
