public class CoServerManager extends AbstractInitializableServerObject<ServerContext> implements CloseableComponent
CoClientContext
s 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
CoSessionId s 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, toString
checkPermission, getServerConfig, getServerContext, getStatisticManager
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public 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 Initializable
public java.util.List<CoClientContext> getCoServers()
public java.util.List<ServerId> getConnectedCoServerIds()
public java.util.List<CoSessionId> getCoServerSessions()
CoSessionId
s 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.AutoCloseable
Copyright © 2014 EsprIT-Systems. All Rights Reserved.