public class NettyAssociationImpl extends Object implements Association
| Modifier and Type | Field and Description |
|---|---|
protected static javolution.xml.XMLFormat<NettyAssociationImpl> |
ASSOCIATION_XML
XML Serialization/Deserialization
|
protected int |
congLevel |
protected static org.apache.log4j.Logger |
logger |
protected boolean |
up |
| Modifier | Constructor and Description |
|---|---|
|
NettyAssociationImpl() |
|
NettyAssociationImpl(String hostAddress,
int hostPort,
String peerAddress,
int peerPort,
String assocName,
IpChannelType ipChannelType,
String[] extraHostAddresses)
Creating a CLIENT Association
|
protected |
NettyAssociationImpl(String peerAddress,
int peerPort,
String serverName,
IpChannelType ipChannelType,
NettyServerImpl server)
Creating an ANONYMOUS_SERVER Association
|
|
NettyAssociationImpl(String peerAddress,
int peerPort,
String serverName,
String assocName,
IpChannelType ipChannelType)
Creating a SERVER Association
|
protected static final org.apache.log4j.Logger logger
protected volatile boolean up
protected int congLevel
protected static final javolution.xml.XMLFormat<NettyAssociationImpl> ASSOCIATION_XML
public NettyAssociationImpl()
public NettyAssociationImpl(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName, IpChannelType ipChannelType, String[] extraHostAddresses) throws IOException
hostAddress - hostPort - peerAddress - peerPort - assocName - ipChannelType - extraHostAddresses - IOExceptionpublic NettyAssociationImpl(String peerAddress, int peerPort, String serverName, String assocName, IpChannelType ipChannelType)
peerAddress - peerPort - serverName - assocName - ipChannelType - protected NettyAssociationImpl(String peerAddress, int peerPort, String serverName, IpChannelType ipChannelType, NettyServerImpl server)
hostAddress - hostPort - peerAddress - peerPort - serverName - assocName - ipChannelType - public NettySctpManagementImpl getManagement()
public IpChannelType getIpChannelType()
getIpChannelType in interface Associationpublic AssociationType getAssociationType()
getAssociationType in interface Associationpublic String getName()
getName in interface Associationpublic boolean isStarted()
isStarted in interface Associationpublic boolean isConnected()
isConnected in interface Associationpublic boolean isUp()
isUp in interface Associationpublic AssociationListener getAssociationListener()
getAssociationListener in interface Associationpublic void setAssociationListener(AssociationListener associationListener)
setAssociationListener in interface Associationpublic String getHostAddress()
getHostAddress in interface Associationpublic int getHostPort()
getHostPort in interface Associationpublic String getPeerAddress()
getPeerAddress in interface Associationpublic int getPeerPort()
getPeerPort in interface Associationpublic String getServerName()
getServerName in interface Associationpublic String[] getExtraHostAddresses()
getExtraHostAddresses in interface Associationpublic void send(PayloadData payloadData) throws Exception
send in interface AssociationExceptionpublic io.netty.buffer.ByteBufAllocator getByteBufAllocator()
getByteBufAllocator in interface Associationpublic int getCongestionLevel()
getCongestionLevel in interface Associationprotected void setCongestionLevel(int val)
public void acceptAnonymousAssociation(AssociationListener associationListener) throws Exception
acceptAnonymousAssociation in interface AssociationExceptionpublic void rejectAnonymousAssociation()
rejectAnonymousAssociation in interface Associationpublic void stopAnonymousAssociation()
throws Exception
stopAnonymousAssociation in interface AssociationExceptionprotected void setManagement(NettySctpManagementImpl management)
management - the management to setprotected void read(PayloadData payload)
protected void markAssociationUp(int maxInboundStreams,
int maxOutboundStreams)
protected void markAssociationDown()
protected void scheduleConnect()
protected void setChannelHandler(NettySctpChannelInboundHandlerAdapter channelHandler)
protected void connect()
Copyright © 2016. All Rights Reserved.