blob: e0af5d25656e66e147a92a0f92574baeeb86555a [file] [log] [blame]
Thomas Vachuska24c849c2014-10-27 09:53:05 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Thomas Vachuska24c849c2014-10-27 09:53:05 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska24c849c2014-10-27 09:53:05 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska24c849c2014-10-27 09:53:05 -070015 */
Aaron Kruglikov1b727382016-02-09 16:17:47 -080016package org.onosproject.store.cluster.messaging.impl;
Madan Jampani62744c22014-10-04 20:51:10 -070017
18/**
19 * State transitions a decoder goes through as it is decoding an incoming message.
20 */
21public enum DecoderState {
Aaron Kruglikoveb0ae4e2015-11-10 19:16:16 -080022 READ_MESSAGE_PREAMBLE,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080023 READ_MESSAGE_ID,
24 READ_SENDER_IP_VERSION,
25 READ_SENDER_IP,
26 READ_SENDER_PORT,
Madan Jampani49115e92015-03-14 10:43:33 -070027 READ_MESSAGE_TYPE_LENGTH,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080028 READ_MESSAGE_TYPE,
Madan Jampania9e70a62016-03-02 16:28:18 -080029 READ_MESSAGE_STATUS,
Madan Jampani62744c22014-10-04 20:51:10 -070030 READ_CONTENT_LENGTH,
Madan Jampani62744c22014-10-04 20:51:10 -070031 READ_CONTENT
32}