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<M> 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 * message from switch to MD-SAL - notification service rejected notfication
39 FROM_SWITCH_NOTIFICATION_REJECTED,
41 * message from switch finally published into MD-SAL
43 FROM_SWITCH_PUBLISHED_SUCCESS,
45 * message from switch - publishing into MD-SAL failed
47 FROM_SWITCH_PUBLISHED_FAILURE,
50 * message from MD-SAL entered service - first point of encounter
54 * message from MD-SAL was disregarded (e.g. outstanding requests limit reached).
56 TO_SWITCH_DISREGARDED,
58 * message from MD-SAL to switch - asked for XID reservation in queue, but rejected
60 TO_SWITCH_RESERVATION_REJECTED,
62 * message from MD-SAL to switch - ready to sent to OFJava (might be one-to-multiple ration between entered and sent)
64 TO_SWITCH_READY_FOR_SUBMIT,
66 * message from MD-SAL to switch - sent to OFJava successfully
68 TO_SWITCH_SUBMIT_SUCCESS,
70 * message from MD-SAL to switch - sent to OFJava successfully, no response expected
72 TO_SWITCH_SUBMIT_SUCCESS_NO_RESPONSE,
74 * message from MD-SAL to switch - sent to OFJava but failed
76 TO_SWITCH_SUBMIT_FAILURE,
78 * message from MD-SAL to switch - sent to OFJava but failed with exception
80 TO_SWITCH_SUBMIT_ERROR,
82 * TEMPORARY STATISTIC VALUE
89 * @param message from switch or to switch - depends on statGroup
92 void spyMessage(M message, STATISTIC_GROUP statGroup);