2 * Copyright (c) 2015 Cisco Systems, Inc. and others. 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
9 package org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific;
12 * Created by Martin Bobak <mbobak@cisco.com> on 20.4.2015.
14 public interface MessageSpy extends Runnable {
17 * statistic groups overall in OFPlugin
19 enum STATISTIC_GROUP {
25 * message from switch translated successfully - source
27 FROM_SWITCH_TRANSLATE_IN_SUCCESS,
29 * message from switch translated successfully - target
31 FROM_SWITCH_TRANSLATE_OUT_SUCCESS,
33 * message from switch where translation failed - source
35 FROM_SWITCH_TRANSLATE_SRC_FAILURE,
37 * packetIn from switch reached processing limit and got dropped
39 FROM_SWITCH_PACKET_IN_LIMIT_REACHED_AND_DROPPED,
41 * message from switch to MD-SAL - notification service rejected notfication
43 FROM_SWITCH_NOTIFICATION_REJECTED,
45 * message from switch finally published into MD-SAL
47 FROM_SWITCH_PUBLISHED_SUCCESS,
49 * message from switch - publishing into MD-SAL failed
51 FROM_SWITCH_PUBLISHED_FAILURE,
54 * message from MD-SAL entered service - first point of encounter
58 * message from MD-SAL was disregarded (e.g. outstanding requests limit reached).
60 TO_SWITCH_DISREGARDED,
62 * message from MD-SAL to switch - asked for XID reservation in queue, but rejected
64 TO_SWITCH_RESERVATION_REJECTED,
66 * message from MD-SAL to switch - ready to sent to OFJava (might be one-to-multiple ration between entered and sent)
68 TO_SWITCH_READY_FOR_SUBMIT,
70 * message from MD-SAL to switch - sent to OFJava successfully
72 TO_SWITCH_SUBMIT_SUCCESS,
74 * message from MD-SAL to switch - sent to OFJava successfully, no response expected
76 TO_SWITCH_SUBMIT_SUCCESS_NO_RESPONSE,
78 * message from MD-SAL to switch - sent to OFJava but failed
80 TO_SWITCH_SUBMIT_FAILURE,
82 * message from MD-SAL to switch - sent to OFJava but failed with exception
84 TO_SWITCH_SUBMIT_ERROR,
86 * TEMPORARY STATISTIC VALUE
90 * stop receiving data from device - turned on
94 * stop receiving data from device - turned off
102 * @param message from switch or to switch - depends on statGroup
105 void spyMessage(Class<?> message, STATISTIC_GROUP statGroup);