2 * Copyright (c) 2013 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
8 package org.opendaylight.protocol.framework;
10 import java.util.List;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
15 import com.google.common.collect.Lists;
17 public class Session extends AbstractProtocolSession<SimpleMessage> {
19 private static final Logger LOG = LoggerFactory.getLogger(Session.class);
21 public final List<SimpleMessage> msgs = Lists.newArrayList();
23 public boolean up = false;
31 public void handleMessage(final SimpleMessage msg) {
32 LOG.debug("Message received: {}", msg.getMessage());
35 LOG.debug(this.msgs.size() + "");
39 public void endOfInput() {
40 LOG.debug("End of input reported.");
44 protected void sessionUp() {
45 LOG.debug("Session up reported.");