blob: e246d74bc48edc3403b4654bf9567a54ce5e927d [file] [log] [blame]
oleksandr.yashchuk@plvision.eu3dbcaaf2019-03-13 14:44:46 +02001/*
2 * Copyright 2019-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 */
16
17package org.onosproject.gnoi.api;
18
19import com.google.common.annotations.Beta;
20import org.onosproject.grpc.api.GrpcClientKey;
21import org.onosproject.net.DeviceId;
22
23import java.net.URI;
24
25/**
26 * Key that uniquely identifies a gNOI client.
27 */
28@Beta
29public class GnoiClientKey extends GrpcClientKey {
30
31 private static final String GNOI = "gNOI";
32
33 /**
34 * Creates a new gNOI client key.
35 *
36 * @param deviceId ONOS device ID
37 * @param serverUri gNOI server URI
38 */
39 public GnoiClientKey(DeviceId deviceId, URI serverUri) {
40 super(GNOI, deviceId, serverUri);
41 }
42}