blob: a3e9d35df6e937f43ccf591d9074d44a9b949ac7 [file] [log] [blame]
Sithara Punnasseryff114552017-01-10 11:40:55 -08001/*
2 * Copyright 2016-present Open Networking Laboratory
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.config;
17
18import org.onosproject.config.model.DataNode;
19
20/**
21 * Abstraction for RPC input.
22 */
23public class RpcInput {
24 /**
25 * Input data to the RPC execution.
26 */
27 DataNode input;
28
29 /**
30 * TODO
31 * Any other meta data or contextual information
32 * to help the RPC execution can be here.
33 * Examples: List<DataNodes> to provide multiple inputs
34 * Additional info for the broker, to choose a suitable executor
35 */
36
37 /**
38 * Creates an instance of RpcInput.
39 *
40 * @param input to RPC execution
41 */
42 public RpcInput(DataNode input) {
43 this.input = input;
44 }
45
46 /**
47 * Returns RPC input.
48 *
49 * @return DataNode
50 */
51 public DataNode input() {
52 return this.input;
53 }
54}