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 finally published into MD-SAL
39 FROM_SWITCH_PUBLISHED_SUCCESS,
41 * message from switch - publishing into MD-SAL failed
43 FROM_SWITCH_PUBLISHED_FAILURE,
46 * message from MD-SAL entered service - first point of encounter
50 * message from MD-SAL was disregarded (e.g. outstanding requests limit reached).
52 TO_SWITCH_DISREGARDED,
54 * message from MD-SAL to switch - sent to OFJava successfully
56 TO_SWITCH_SUBMIT_SUCCESS,
58 * message from MD-SAL to switch - ready to sent to OFJava (might be one-to-multiple ration between entered and sent)
60 TO_SWITCH_READY_FOR_SUBMIT,
62 * message from MD-SAL to switch - sent to OFJava but failed
64 TO_SWITCH_SUBMIT_FAILURE
68 * @param message from switch or to switch - depends on statGroup
71 void spyMessage(M message, STATISTIC_GROUP statGroup);