blob: b58871ec2c79f334fa03a7f92e97a3e4869e9211 [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 {
Jordan Haltermane3813a92017-07-29 14:10:31 -070022 READ_TYPE,
23 READ_PREAMBLE,
Madan Jampani05833872016-07-12 23:01:39 -070024 READ_LOGICAL_TIME,
25 READ_LOGICAL_COUNTER,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080026 READ_MESSAGE_ID,
27 READ_SENDER_IP_VERSION,
28 READ_SENDER_IP,
29 READ_SENDER_PORT,
Jordan Haltermane3813a92017-07-29 14:10:31 -070030 READ_SUBJECT_LENGTH,
31 READ_SUBJECT,
32 READ_STATUS,
Madan Jampani62744c22014-10-04 20:51:10 -070033 READ_CONTENT_LENGTH,
Madan Jampani62744c22014-10-04 20:51:10 -070034 READ_CONTENT
Jordan Haltermane3813a92017-07-29 14:10:31 -070035}