2 * Copyright (c) 2017 AT&T Intellectual Property. 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.bgpcep.pcep.topology.provider;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.PcepSessionState;
12 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey;
14 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
17 * Topology Node Sessions stats handler. Will store Session stats on DS per each Topology Node registered.
19 interface TopologySessionStatsRegistry {
21 * Register session to Session stats Registry handler.
23 * @param nodeId Identifier of the topology node where it will be stored session stats under DS
24 * @param sessionState containing all Stats Session information
26 void bind(@NonNull KeyedInstanceIdentifier<Node, NodeKey> nodeId, @NonNull PcepSessionState sessionState);
29 * Unregister Node from Stats Registry handler.
31 * @param nodeId Identifier of the topology node to be removed from registry
33 void unbind(@NonNull KeyedInstanceIdentifier<Node, NodeKey> nodeId);