X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fapi%2Fconnection%2FConnectionAdapter.java;h=74a9bdccf204393e185d68239da65fc97b7ba319;hb=156b1d174392438b48a76fd82ad3f84f618e8042;hp=04a9ecc4d8b387249c1dd12970a9955cdad5ad02;hpb=b5af071bc92d6742ae34e916c4f5d79bb2db8d3b;p=openflowjava.git diff --git a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java index 04a9ecc4..74a9bdcc 100644 --- a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java +++ b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java @@ -1,10 +1,4 @@ -/** - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ +/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ package org.opendaylight.openflowjava.protocol.api.connection; @@ -12,9 +6,11 @@ import java.util.concurrent.Future; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolListener; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OpenflowProtocolService; +import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.SystemNotificationsListener; /** * @author mirehak + * @author michal.polkorab */ public interface ConnectionAdapter extends OpenflowProtocolService { @@ -33,4 +29,26 @@ public interface ConnectionAdapter extends OpenflowProtocolService { * @param messageListener here will be pushed all messages from switch */ public void setMessageListener(OpenflowProtocolListener messageListener); + + /** + * @param systemListener here will be pushed all system messages from library + */ + public void setSystemListener(SystemNotificationsListener systemListener); + + /** + * Throws exception if any of required listeners is missing + */ + public void checkListeners(); + + /** + * notify listener about connection ready-to-use event + */ + public void fireConnectionReadyNotification(); + + /** + * set listener for connection became ready-to-use event + * @param connectionReadyListener + */ + public void setConnectionReadyListener(ConnectionReadyListener connectionReadyListener); + }