2 * Copyright (c) 2018 Pantheon Technologies, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.dom.api;
10 import com.google.common.annotations.Beta;
11 import com.google.common.util.concurrent.ListenableFuture;
12 import org.eclipse.jdt.annotation.NonNullByDefault;
13 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
14 import org.opendaylight.yangtools.yang.data.api.schema.tree.StoreTreeNode;
15 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
18 * A {@link DOMService} which allows clients to invoke Actions. The conceptual model of this service is that
19 * of a dynamic router, where the set of available Action services can change dynamically.
21 * @author Robert Varga
25 public interface DOMActionService extends DOMExtensibleService<DOMActionService, DOMActionServiceExtension> {
27 * Initiate invocation of an Action. This method is guaranteed to not block on any external resources.
29 * @param type SchemaPath of the action to be invoked. This path refers to an effective action instantiated on top
30 * of the conceptual {@link StoreTreeNode}.
31 * @param path {@link DOMDataTreeIdentifier} of parent data node which action attached to.
32 * @param input Input argument
33 * @return A FluentFuture which completes with the result of invocation
34 * @throws NullPointerException if any of the arguments is null
36 ListenableFuture<? extends DOMActionResult> invokeAction(SchemaPath type, DOMDataTreeIdentifier path,