gov.sns.tools.pvlogger
Class ChannelWrapper.ConnectionHandler

java.lang.Object
  |
  +--gov.sns.tools.pvlogger.ChannelWrapper.ConnectionHandler
All Implemented Interfaces:
ConnectionListener
Enclosing class:
ChannelWrapper

protected class ChannelWrapper.ConnectionHandler
extends java.lang.Object
implements ConnectionListener

Connection handler is a class whose instance listens for connection events of the wrapped channel.


Constructor Summary
protected ChannelWrapper.ConnectionHandler()
           
 
Method Summary
 void connectionDropped(Channel channel)
          Indicates that a connection to the specified channel has been dropped.
 void connectionMade(Channel channel)
          Indicates that a connection to the specified channel has been established.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelWrapper.ConnectionHandler

protected ChannelWrapper.ConnectionHandler()
Method Detail

connectionMade

public void connectionMade(Channel channel)
Indicates that a connection to the specified channel has been established. If the monitor is null make a new monitor.

Specified by:
connectionMade in interface ConnectionListener
Parameters:
channel - The channel which has been connected.

connectionDropped

public void connectionDropped(Channel channel)
Indicates that a connection to the specified channel has been dropped. If the connection is dropped, clear the latest record.

Specified by:
connectionDropped in interface ConnectionListener
Parameters:
channel - The channel which has been disconnected.