Add new revision for pcep types model
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPSessionState.java
1 /*
2  * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.pcep;
9
10 import javax.annotation.Nonnull;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.LocalPref;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.Messages;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.stats.rev171113.pcep.session.state.PeerPref;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.open.object.Open;
15
16 /**
17  * Exposes Session state.
18  */
19 public interface PCEPSessionState {
20     /**
21      * The statistics of PCEP received/sent messages from the PCE point of view.
22      *
23      * @return messages
24      */
25     @Nonnull Messages getMessages();
26
27     /**
28      * The local (PCE) preferences.
29      *
30      * @return local preferences
31      */
32     @Nonnull LocalPref getLocalPref();
33
34     /**
35      * The remote peer (PCC) preferences.
36      *
37      * @return peer preferences
38      */
39     @Nonnull PeerPref getPeerPref();
40
41     /**
42      * The local (PCE) Open Message.
43      *
44      * @return Open
45      */
46     @Nonnull Open getLocalOpen();
47 }