public class AgentChannel extends org.agilewiki.jactor.lpc.JLPCActor implements SocketProtocol
Modifier and Type | Field and Description |
---|---|
ConcurrentHashMap<Long,AgentJid> |
agents |
String |
remoteAddress |
Constructor and Description |
---|
AgentChannel() |
Modifier and Type | Method and Description |
---|---|
AgentChannelManager |
agentChannelManager() |
long |
bytesRead() |
long |
bytesWritten() |
void |
closeChannel() |
protected void |
gotEvent(AgentJid agentJid) |
protected void |
gotRsp(Long requestId,
org.agilewiki.jid.Jid jid) |
boolean |
isClient() |
void |
open(InetSocketAddress inetSocketAddress,
int maxPacketSize) |
void |
processException(Exception exception) |
void |
receiveBytes(byte[] bytes) |
void |
received() |
String |
remoteAddress() |
int |
remotePort() |
void |
sent() |
void |
serverOpen(SocketChannel socketChannel,
int maxPacketSize) |
void |
setClientPort(int port) |
void |
shipAgent(AgentJid agent,
org.agilewiki.jactor.RP rp) |
void |
writeBytes(byte[] bytes) |
acceptEvent, acceptRequest, getActorType, getAncestor, getExceptionHandler, getFactory, getMailbox, getMailboxFactory, getMatch, getParent, hasDataItem, haveEvents, initialize, initialize, initialize, initialize, initialize, requirements, responseFrom, send, send, sendEvent, setExceptionHandler, setInitialBufferCapacity
public String remoteAddress
public ConcurrentHashMap<Long,AgentJid> agents
public long bytesRead()
public long bytesWritten()
public AgentChannelManager agentChannelManager()
public void received()
public void sent()
public boolean isClient()
public String remoteAddress()
public int remotePort()
public void processException(Exception exception) throws Exception
processException
in interface ExceptionProcessor
Exception
public void open(InetSocketAddress inetSocketAddress, int maxPacketSize) throws Exception
Exception
public void serverOpen(SocketChannel socketChannel, int maxPacketSize) throws Exception
Exception
public void closeChannel()
public void receiveBytes(byte[] bytes) throws Exception
receiveBytes
in interface SocketProtocol
Exception
protected void gotRsp(Long requestId, org.agilewiki.jid.Jid jid) throws Exception
Exception
Copyright © 2013. All Rights Reserved.