public class NettySctpManagementImpl extends Object implements Management
| Modifier and Type | Field and Description |
|---|---|
protected AssociationMap<String,Association> |
associations |
protected static NettySctpXMLBinding |
binding |
static String |
CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_1 |
static String |
CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_2 |
static String |
CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_3 |
static String |
CONG_CONTROL_DELAY_THRESHOLD_1 |
static String |
CONG_CONTROL_DELAY_THRESHOLD_2 |
static String |
CONG_CONTROL_DELAY_THRESHOLD_3 |
protected double[] |
congControl_BackToNormalDelayThreshold |
protected double[] |
congControl_DelayThreshold |
protected String |
persistDir |
protected javolution.util.FastList<Server> |
servers |
protected static String |
TAB_INDENT |
| Constructor and Description |
|---|
NettySctpManagementImpl(String name) |
public static final String CONG_CONTROL_DELAY_THRESHOLD_1
public static final String CONG_CONTROL_DELAY_THRESHOLD_2
public static final String CONG_CONTROL_DELAY_THRESHOLD_3
public static final String CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_1
public static final String CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_2
public static final String CONG_CONTROL_BACK_TO_NORMAL_DELAY_THRESHOLD_3
protected static final NettySctpXMLBinding binding
protected static final String TAB_INDENT
protected String persistDir
protected double[] congControl_DelayThreshold
protected double[] congControl_BackToNormalDelayThreshold
protected javolution.util.FastList<Server> servers
protected AssociationMap<String,Association> associations
public NettySctpManagementImpl(String name) throws IOException
IOExceptionpublic String getName()
getName in interface Managementpublic String getPersistDir()
getPersistDir in interface Managementpublic void setPersistDir(String persistDir)
setPersistDir in interface Managementpublic ServerListener getServerListener()
getServerListener in interface Managementpublic void setServerListener(ServerListener serverListener)
setServerListener in interface Managementprotected io.netty.channel.EventLoopGroup getBossGroup()
protected io.netty.channel.EventLoopGroup getWorkerGroup()
protected ScheduledExecutorService getClientExecutor()
public void addManagementEventListener(ManagementEventListener listener)
addManagementEventListener in interface Managementpublic void removeManagementEventListener(ManagementEventListener listener)
removeManagementEventListener in interface Managementpublic void start()
throws Exception
start in interface ManagementExceptionpublic void stop()
throws Exception
stop in interface ManagementExceptionpublic boolean isStarted()
isStarted in interface Managementpublic void removeAllResourses()
throws Exception
removeAllResourses in interface ManagementExceptionpublic Server addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, boolean acceptAnonymousConnections, int maxConcurrentConnectionsCount, String[] extraHostAddresses) throws Exception
addServer in interface ManagementExceptionpublic Server addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception
addServer in interface ManagementExceptionpublic Server addServer(String serverName, String hostAddress, int port) throws Exception
addServer in interface ManagementExceptionpublic void removeServer(String serverName) throws Exception
removeServer in interface ManagementExceptionpublic void startServer(String serverName) throws Exception
startServer in interface ManagementExceptionpublic void stopServer(String serverName) throws Exception
stopServer in interface ManagementExceptionpublic List<Server> getServers()
getServers in interface Managementpublic Association addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName) throws Exception
addServerAssociation in interface ManagementExceptionpublic Association addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName, IpChannelType ipChannelType) throws Exception
addServerAssociation in interface ManagementExceptionpublic Association addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName) throws Exception
addAssociation in interface ManagementExceptionpublic Association addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception
addAssociation in interface ManagementExceptionpublic void removeAssociation(String assocName) throws Exception
removeAssociation in interface ManagementExceptionpublic Association getAssociation(String assocName) throws Exception
getAssociation in interface ManagementExceptionpublic Map<String,Association> getAssociations()
getAssociations in interface Managementpublic void startAssociation(String assocName) throws Exception
startAssociation in interface ManagementExceptionpublic void stopAssociation(String assocName) throws Exception
stopAssociation in interface ManagementExceptionpublic int getConnectDelay()
getConnectDelay in interface Managementpublic void setConnectDelay(int connectDelay)
throws Exception
setConnectDelay in interface ManagementExceptionpublic double getCongControl_DelayThreshold_1()
getCongControl_DelayThreshold_1 in interface Managementpublic double getCongControl_DelayThreshold_2()
getCongControl_DelayThreshold_2 in interface Managementpublic double getCongControl_DelayThreshold_3()
getCongControl_DelayThreshold_3 in interface Managementpublic void setCongControl_DelayThreshold_1(double val)
throws Exception
setCongControl_DelayThreshold_1 in interface ManagementExceptionpublic void setCongControl_DelayThreshold_2(double val)
throws Exception
setCongControl_DelayThreshold_2 in interface ManagementExceptionpublic void setCongControl_DelayThreshold_3(double val)
throws Exception
setCongControl_DelayThreshold_3 in interface ManagementExceptionpublic double getCongControl_BackToNormalDelayThreshold_1()
getCongControl_BackToNormalDelayThreshold_1 in interface Managementpublic double getCongControl_BackToNormalDelayThreshold_2()
getCongControl_BackToNormalDelayThreshold_2 in interface Managementpublic double getCongControl_BackToNormalDelayThreshold_3()
getCongControl_BackToNormalDelayThreshold_3 in interface Managementpublic void setCongControl_BackToNormalDelayThreshold_1(double val)
throws Exception
setCongControl_BackToNormalDelayThreshold_1 in interface ManagementExceptionpublic void setCongControl_BackToNormalDelayThreshold_2(double val)
throws Exception
setCongControl_BackToNormalDelayThreshold_2 in interface ManagementExceptionpublic void setCongControl_BackToNormalDelayThreshold_3(double val)
throws Exception
setCongControl_BackToNormalDelayThreshold_3 in interface ManagementExceptionpublic int getWorkerThreads()
getWorkerThreads in interface Managementpublic void setWorkerThreads(int workerThreads)
throws Exception
setWorkerThreads in interface ManagementExceptionpublic boolean isSingleThread()
isSingleThread in interface Managementpublic void setSingleThread(boolean singleThread)
throws Exception
setSingleThread in interface ManagementExceptionpublic Boolean getOptionSctpDisableFragments()
getOptionSctpDisableFragments in interface Managementpublic void setOptionSctpDisableFragments(Boolean optionSctpDisableFragments)
setOptionSctpDisableFragments in interface Managementpublic Integer getOptionSctpFragmentInterleave()
getOptionSctpFragmentInterleave in interface Managementpublic void setOptionSctpFragmentInterleave(Integer optionSctpFragmentInterleave)
setOptionSctpFragmentInterleave in interface Managementpublic com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams getOptionSctpInitMaxstreams()
public Integer getOptionSctpInitMaxstreams_MaxOutStreams()
getOptionSctpInitMaxstreams_MaxOutStreams in interface Managementpublic Integer getOptionSctpInitMaxstreams_MaxInStreams()
getOptionSctpInitMaxstreams_MaxInStreams in interface Managementpublic void setOptionSctpInitMaxstreams_MaxOutStreams(Integer val)
setOptionSctpInitMaxstreams_MaxOutStreams in interface Managementpublic void setOptionSctpInitMaxstreams_MaxInStreams(Integer val)
setOptionSctpInitMaxstreams_MaxInStreams in interface Managementpublic Boolean getOptionSctpNodelay()
getOptionSctpNodelay in interface Managementpublic void setOptionSctpNodelay(Boolean optionSctpNodelay)
setOptionSctpNodelay in interface Managementpublic Integer getOptionSoSndbuf()
getOptionSoSndbuf in interface Managementpublic void setOptionSoSndbuf(Integer optionSoSndbuf)
setOptionSoSndbuf in interface Managementpublic Integer getOptionSoRcvbuf()
getOptionSoRcvbuf in interface Managementpublic void setOptionSoRcvbuf(Integer optionSoRcvbuf)
setOptionSoRcvbuf in interface Managementpublic Integer getOptionSoLinger()
getOptionSoLinger in interface Managementpublic void setOptionSoLinger(Integer optionSoLinger)
setOptionSoLinger in interface Managementprotected javolution.util.FastList<ManagementEventListener> getManagementEventListeners()
Copyright © 2016. All Rights Reserved.