blob: b380542ce92f5bcedcf4a26de8ba52b64498c562 [file] [log] [blame]
senthil7ed52c5b2024-03-21 21:34:51 +05301/*
2 * Copyright 2024-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.bgpmonitoring;
18
19
20/**
21 * Abstraction of an BMP termination message.
22 */
23public abstract class TerminationMessage extends BmpMessage {
24
25 public static final int TERMINATION_HEADER_MIN_LENGTH = 4;
26
27 /**
28 * Returns BMP session termination type.
29 *
30 * @return BMP session termination type
31 */
32 public abstract TerminationType getTerminationType();
33
34 /**
35 * Returns BMP session termination message length.
36 *
37 * @return BMP session termination message length
38 */
39 public abstract int getInformationLength();
40
41 /**
42 * Returns BMP session termination message.
43 *
44 * @return BMP session termination message
45 */
46 public abstract String getInformation();
47
48}