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) |
| Modifier and Type | Method and Description |
|---|---|
AssociationImpl |
addAssociation(String hostAddress,
int hostPort,
String peerAddress,
int peerPort,
String assocName) |
AssociationImpl |
addAssociation(String hostAddress,
int hostPort,
String peerAddress,
int peerPort,
String assocName,
IpChannelType ipChannelType,
String[] extraHostAddresses) |
void |
addManagementEventListener(ManagementEventListener listener) |
ServerImpl |
addServer(String serverName,
String hostAddress,
int port) |
ServerImpl |
addServer(String serverName,
String hostAddress,
int port,
IpChannelType ipChannelType,
boolean acceptAnonymousConnections,
int maxConcurrentConnectionsCount,
String[] extraHostAddresses) |
Server |
addServer(String serverName,
String hostAddress,
int port,
IpChannelType ipChannelType,
String[] extraHostAddresses) |
AssociationImpl |
addServerAssociation(String peerAddress,
int peerPort,
String serverName,
String assocName) |
AssociationImpl |
addServerAssociation(String peerAddress,
int peerPort,
String serverName,
String assocName,
IpChannelType ipChannelType) |
Association |
getAssociation(String assocName) |
Map<String,Association> |
getAssociations() |
int |
getConnectDelay() |
protected ExecutorService |
getExecutorService(int index) |
protected javolution.util.FastList<ManagementEventListener> |
getManagementEventListeners() |
int |
getMaxIOErrors() |
String |
getName() |
protected javolution.util.FastList<ChangeRequest> |
getPendingChanges() |
String |
getPersistDir() |
ServerListener |
getServerListener() |
List<Server> |
getServers() |
protected Selector |
getSocketSelector() |
int |
getWorkerThreads() |
boolean |
isSingleThread() |
boolean |
isStarted() |
void |
load() |
protected void |
populateWorkerThread(int[] workerThreadTable) |
void |
removeAllResourses() |
void |
removeAssociation(String assocName) |
void |
removeManagementEventListener(ManagementEventListener listener) |
void |
removeServer(String serverName) |
void |
setConnectDelay(int connectDelay) |
void |
setMaxIOErrors(int maxIOErrors) |
void |
setPersistDir(String persistDir) |
void |
setServerListener(ServerListener serverListener) |
void |
setSingleThread(boolean singleThread) |
void |
setWorkerThreads(int workerThreads) |
void |
start() |
void |
startAssociation(String assocName) |
void |
startServer(String serverName) |
void |
stop() |
void |
stopAssociation(String assocName) |
void |
stopServer(String serverName) |
void |
store() |
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)
Copyright © 2015. All Rights Reserved.