public class CoServerManager extends AbstractInitializableServerObject<ServerContext> implements CloseableComponent
CoClientContexts of all co-server connections of this server.| Constructor and Description |
|---|
CoServerManager(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all co-client connections to co-servers
|
CoClientContext |
fetchCoServerByName(java.lang.String coServerName)
Finds the according CoClientContext that represents the connection to the given co-server
|
CoClientContext |
findCoServerByName(java.lang.String coServerName)
Finds the according CoClientContext that represents the connection to the given co-server
|
java.util.List<ServerHost> |
getConfiguredServerHosts()
Returns all server hosts that are configured in the network config file.
|
java.util.List<ServerId> |
getConnectedCoServerIds() |
java.util.List<ServerHost> |
getCoServerHosts() |
java.util.List<CoClientContext> |
getCoServers() |
java.util.List<CoSessionId> |
getCoServerSessions()
Returns the
CoSessionIds of all defined coservers. |
int |
getSize() |
void |
init()
Initializes the
CoClientContext for all configured co-servers and tries to establish the connection. |
checkInitialized, isInitialized, setInitialized, toStringcheckPermission, getServerConfig, getServerContext, getStatisticManagergetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringpublic CoServerManager(ServerContext serverCtx)
public final java.util.List<ServerHost> getConfiguredServerHosts()
public void init()
CoClientContext for all configured co-servers and tries to establish the connection.
If a co-server cannot be reached right now, then the connection is continuously retried.init in interface Initializablepublic java.util.List<CoClientContext> getCoServers()
public java.util.List<ServerId> getConnectedCoServerIds()
public java.util.List<CoSessionId> getCoServerSessions()
CoSessionIds of all defined coservers.public java.util.List<ServerHost> getCoServerHosts()
public int getSize()
public CoClientContext findCoServerByName(java.lang.String coServerName)
fetchCoServerByName(String)public CoClientContext fetchCoServerByName(java.lang.String coServerName) throws MissingCoServerException
MissingCoServerException - if the CoClientContext could not be foundfindCoServerByName(String)public void close()
close in interface java.lang.AutoCloseableCopyright © 2014 EsprIT-Systems. All Rights Reserved.