public class ManagementImpl extends Object implements Management
| Modifier and Type | Field and Description |
|---|---|
protected AssociationMap<String,Association> |
associations |
protected static SctpXMLBinding |
binding |
protected String |
persistDir |
protected javolution.util.FastList<Server> |
servers |
protected static String |
TAB_INDENT |
| Constructor and Description |
|---|
ManagementImpl(String name) |
protected static final SctpXMLBinding binding
protected static final String TAB_INDENT
protected String persistDir
protected javolution.util.FastList<Server> servers
protected AssociationMap<String,Association> associations
public ManagementImpl(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 int getConnectDelay()
getConnectDelay in interface Managementpublic void setConnectDelay(int connectDelay)
throws Exception
setConnectDelay in interface ManagementconnectDelay - the connectDelay to setExceptionpublic int getWorkerThreads()
getWorkerThreads in interface Managementpublic void setWorkerThreads(int workerThreads)
throws Exception
setWorkerThreads in interface ManagementworkerThreads - the workerThreads to setExceptionpublic int getMaxIOErrors()
public void setMaxIOErrors(int maxIOErrors)
maxIOErrors - the maxIOErrors to setpublic boolean isSingleThread()
isSingleThread in interface Managementpublic void setSingleThread(boolean singleThread)
throws Exception
setSingleThread in interface ManagementsingleThread - the singleThread to setExceptionpublic ServerListener getServerListener()
getServerListener in interface Managementprotected javolution.util.FastList<ManagementEventListener> getManagementEventListeners()
public void setServerListener(ServerListener serverListener)
setServerListener in interface Managementpublic 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 load()
throws FileNotFoundException
FileNotFoundExceptionpublic void store()
public void removeAllResourses()
throws Exception
removeAllResourses in interface ManagementExceptionpublic ServerImpl addServer(String serverName, String hostAddress, int port) throws Exception
addServer in interface ManagementExceptionpublic Server addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception
addServer in interface ManagementExceptionpublic ServerImpl addServer(String serverName, String hostAddress, int port, IpChannelType ipChannelType, boolean acceptAnonymousConnections, int maxConcurrentConnectionsCount, String[] extraHostAddresses) 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 AssociationImpl addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName) throws Exception
addServerAssociation in interface ManagementExceptionpublic AssociationImpl addServerAssociation(String peerAddress, int peerPort, String serverName, String assocName, IpChannelType ipChannelType) throws Exception
addServerAssociation in interface ManagementExceptionpublic AssociationImpl addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName) throws Exception
addAssociation in interface ManagementExceptionpublic AssociationImpl addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName, IpChannelType ipChannelType, String[] extraHostAddresses) throws Exception
addAssociation 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 void removeAssociation(String assocName) throws Exception
removeAssociation in interface ManagementExceptionpublic List<Server> getServers()
getServers in interface Managementprotected javolution.util.FastList<ChangeRequest> getPendingChanges()
protected Selector getSocketSelector()
protected void populateWorkerThread(int[] workerThreadTable)
protected ExecutorService getExecutorService(int index)
public 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 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 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 Managementpublic Integer getOptionSctpInitMaxstreams_MaxOutStreams()
getOptionSctpInitMaxstreams_MaxOutStreams in interface Managementpublic Integer getOptionSctpInitMaxstreams_MaxInStreams()
getOptionSctpInitMaxstreams_MaxInStreams in interface Managementpublic void setOptionSctpInitMaxstreams_MaxOutStreams(Integer maxOutStreams)
setOptionSctpInitMaxstreams_MaxOutStreams in interface Managementpublic void setOptionSctpInitMaxstreams_MaxInStreams(Integer maxInStreams)
setOptionSctpInitMaxstreams_MaxInStreams in interface ManagementCopyright © 2016. All Rights Reserved.