org.fossilec.odettej.monitor
Class TCPMonitor

java.lang.Object
  extended by org.fossilec.odettej.monitor.TCPMonitor

public class TCPMonitor
extends java.lang.Object

Author:
Rafael Marins

Constructor Summary
TCPMonitor(int listening, java.lang.String host, int port, java.lang.String logPrefix, int blockSize, int bytesToRead)
           
 
Method Summary
 void init()
           
static void main(java.lang.String[] args)
           
static java.nio.channels.SelectionKey registerChannel(java.nio.channels.Selector selector, java.nio.channels.SelectableChannel channel, int ops)
           
static java.nio.channels.SelectionKey registerChannel(java.nio.channels.Selector selector, java.nio.channels.SelectableChannel channel, int ops, java.lang.Object attachment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TCPMonitor

public TCPMonitor(int listening,
                  java.lang.String host,
                  int port,
                  java.lang.String logPrefix,
                  int blockSize,
                  int bytesToRead)
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

registerChannel

public static java.nio.channels.SelectionKey registerChannel(java.nio.channels.Selector selector,
                                                             java.nio.channels.SelectableChannel channel,
                                                             int ops,
                                                             java.lang.Object attachment)
                                                      throws java.io.IOException
Throws:
java.io.IOException

registerChannel

public static java.nio.channels.SelectionKey registerChannel(java.nio.channels.Selector selector,
                                                             java.nio.channels.SelectableChannel channel,
                                                             int ops)
                                                      throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.