blob: 5b067b495ee04de534229e58587345599cc6af82 [file] [log] [blame]
jaegonkim6a7b5242018-09-12 23:09:42 +09001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.workflow.api;
17
18import com.fasterxml.jackson.databind.JsonNode;
19
20/**
21 * Interface for workflow RPC description.
22 */
23public interface RpcDescription {
24
25 /**
26 * Workflow RPC operation pointer.
27 */
28 String RPC_OP_PTR = "/op";
29
30 /**
31 * Workflow RPC parameters pointer.
32 */
33 String RPC_PARAMS_PTR = "/params";
34
35 /**
36 * Workflow RPC invocation ID pointer.
37 */
38 String RPC_ID_PTR = "/id";
39
40 /**
41 * Returns workflow RPC operation.
42 * @return workflow RPC operation
43 */
44 String op();
45
46 /**
47 * Returns workflow RPC parameters.
48 * @return workflow RPC parameters
49 */
50 JsonNode params();
51
52 /**
53 * Returns workflow RPC invocation ID.
54 * @return workflow RPC invocation ID
55 */
56 String id();
57}