Deprecate protocol-framework tests
[netconf.git] / protocol-framework / src / test / java / org / opendaylight / protocol / framework / Session.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.framework;
9
10 import com.google.common.collect.Lists;
11 import java.util.List;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
14
15 @Deprecated
16 public class Session extends AbstractProtocolSession<SimpleMessage> {
17
18     private static final Logger LOG = LoggerFactory.getLogger(Session.class);
19
20     public final List<SimpleMessage> msgs = Lists.newArrayList();
21
22     public boolean up = false;
23
24     @Override
25     public void close() {
26
27     }
28
29     @Override
30     public void handleMessage(final SimpleMessage msg) {
31         LOG.debug("Message received: {}", msg.getMessage());
32         this.up = true;
33         this.msgs.add(msg);
34         LOG.debug(this.msgs.size() + "");
35     }
36
37     @Override
38     public void endOfInput() {
39         LOG.debug("End of input reported.");
40     }
41
42     @Override
43     protected void sessionUp() {
44         LOG.debug("Session up reported.");
45     }
46 }