net.tomp2p.simgrid
Class DummyChannel
java.lang.Object
net.tomp2p.simgrid.DummyChannel
- All Implemented Interfaces:
- java.lang.Comparable<org.jboss.netty.channel.Channel>, org.jboss.netty.channel.Channel
public class DummyChannel
- extends java.lang.Object
- implements org.jboss.netty.channel.Channel
| Fields inherited from interface org.jboss.netty.channel.Channel |
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE |
|
Constructor Summary |
DummyChannel(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
|
|
Method Summary |
org.jboss.netty.channel.ChannelFuture |
bind(java.net.SocketAddress localAddress)
|
org.jboss.netty.channel.ChannelFuture |
close()
|
int |
compareTo(org.jboss.netty.channel.Channel o)
|
org.jboss.netty.channel.ChannelFuture |
connect(java.net.SocketAddress remoteAddress)
|
org.jboss.netty.channel.ChannelFuture |
disconnect()
|
org.jboss.netty.channel.ChannelFuture |
getCloseFuture()
|
org.jboss.netty.channel.ChannelConfig |
getConfig()
|
org.jboss.netty.channel.ChannelFactory |
getFactory()
|
java.lang.Integer |
getId()
|
int |
getInterestOps()
|
java.net.SocketAddress |
getLocalAddress()
|
net.tomp2p.message.Message |
getMessage()
|
org.jboss.netty.channel.Channel |
getParent()
|
org.jboss.netty.channel.ChannelPipeline |
getPipeline()
|
java.net.SocketAddress |
getRemoteAddress()
|
boolean |
isBound()
|
boolean |
isConnected()
|
boolean |
isOpen()
|
boolean |
isReadable()
|
boolean |
isWritable()
|
org.jboss.netty.channel.ChannelFuture |
setInterestOps(int interestOps)
|
org.jboss.netty.channel.ChannelFuture |
setReadable(boolean readable)
|
org.jboss.netty.channel.ChannelFuture |
unbind()
|
org.jboss.netty.channel.ChannelFuture |
write(java.lang.Object message)
|
org.jboss.netty.channel.ChannelFuture |
write(java.lang.Object message,
java.net.SocketAddress remoteAddress)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyChannel
public DummyChannel(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
bind
public org.jboss.netty.channel.ChannelFuture bind(java.net.SocketAddress localAddress)
- Specified by:
bind in interface org.jboss.netty.channel.Channel
close
public org.jboss.netty.channel.ChannelFuture close()
- Specified by:
close in interface org.jboss.netty.channel.Channel
connect
public org.jboss.netty.channel.ChannelFuture connect(java.net.SocketAddress remoteAddress)
- Specified by:
connect in interface org.jboss.netty.channel.Channel
disconnect
public org.jboss.netty.channel.ChannelFuture disconnect()
- Specified by:
disconnect in interface org.jboss.netty.channel.Channel
getCloseFuture
public org.jboss.netty.channel.ChannelFuture getCloseFuture()
- Specified by:
getCloseFuture in interface org.jboss.netty.channel.Channel
getConfig
public org.jboss.netty.channel.ChannelConfig getConfig()
- Specified by:
getConfig in interface org.jboss.netty.channel.Channel
getFactory
public org.jboss.netty.channel.ChannelFactory getFactory()
- Specified by:
getFactory in interface org.jboss.netty.channel.Channel
getId
public java.lang.Integer getId()
- Specified by:
getId in interface org.jboss.netty.channel.Channel
getInterestOps
public int getInterestOps()
- Specified by:
getInterestOps in interface org.jboss.netty.channel.Channel
getLocalAddress
public java.net.SocketAddress getLocalAddress()
- Specified by:
getLocalAddress in interface org.jboss.netty.channel.Channel
getParent
public org.jboss.netty.channel.Channel getParent()
- Specified by:
getParent in interface org.jboss.netty.channel.Channel
getPipeline
public org.jboss.netty.channel.ChannelPipeline getPipeline()
- Specified by:
getPipeline in interface org.jboss.netty.channel.Channel
getRemoteAddress
public java.net.SocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress in interface org.jboss.netty.channel.Channel
isBound
public boolean isBound()
- Specified by:
isBound in interface org.jboss.netty.channel.Channel
isConnected
public boolean isConnected()
- Specified by:
isConnected in interface org.jboss.netty.channel.Channel
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface org.jboss.netty.channel.Channel
isReadable
public boolean isReadable()
- Specified by:
isReadable in interface org.jboss.netty.channel.Channel
isWritable
public boolean isWritable()
- Specified by:
isWritable in interface org.jboss.netty.channel.Channel
setInterestOps
public org.jboss.netty.channel.ChannelFuture setInterestOps(int interestOps)
- Specified by:
setInterestOps in interface org.jboss.netty.channel.Channel
setReadable
public org.jboss.netty.channel.ChannelFuture setReadable(boolean readable)
- Specified by:
setReadable in interface org.jboss.netty.channel.Channel
unbind
public org.jboss.netty.channel.ChannelFuture unbind()
- Specified by:
unbind in interface org.jboss.netty.channel.Channel
write
public org.jboss.netty.channel.ChannelFuture write(java.lang.Object message)
- Specified by:
write in interface org.jboss.netty.channel.Channel
write
public org.jboss.netty.channel.ChannelFuture write(java.lang.Object message,
java.net.SocketAddress remoteAddress)
- Specified by:
write in interface org.jboss.netty.channel.Channel
compareTo
public int compareTo(org.jboss.netty.channel.Channel o)
- Specified by:
compareTo in interface java.lang.Comparable<org.jboss.netty.channel.Channel>
getMessage
public net.tomp2p.message.Message getMessage()
Copyright © 2012. All Rights Reserved.