X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fcore%2FIdleHandler.java;h=65af251677882578339809afe7c1d07d8778f99a;hb=0d942e8fb70b2c21f97eea3ed8904336ab5c54a4;hp=c9937e3bbde415946a295fbd777d35ac5b4dee06;hpb=ff2f581fe0e7a7138dc765cfe713bc2d0791297e;p=openflowjava.git diff --git a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandler.java b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandler.java index c9937e3b..65af2516 100644 --- a/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandler.java +++ b/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/IdleHandler.java @@ -1,4 +1,11 @@ -/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */ +/* + * Copyright (c) 2013 Pantheon Technologies s.r.o. 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 + */ + package org.opendaylight.openflowjava.protocol.impl.core; import java.util.concurrent.TimeUnit; @@ -12,17 +19,25 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.system.rev130927.S import org.slf4j.Logger; import org.slf4j.LoggerFactory; +/** + * Detects idle state of switch and informs upper layers + * @author michal.polkorab + */ public class IdleHandler extends IdleStateHandler{ - + + private static final Logger LOGGER = LoggerFactory.getLogger(IdleHandler.class); + + /** + * @param readerIdleTime + * @param writerIdleTime + * @param allIdleTime + * @param unit + */ public IdleHandler(long readerIdleTime, long writerIdleTime, long allIdleTime, TimeUnit unit) { super(readerIdleTime, writerIdleTime, allIdleTime, unit); } - - private static final Logger LOGGER = LoggerFactory.getLogger(IdleHandler.class); - - @Override protected void channelIdle(ChannelHandlerContext ctx, IdleStateEvent evt) throws Exception {