public class CoClientContext extends ClientContext implements RequestHandler
isExitOnClose| Constructor and Description |
|---|
CoClientContext(ServerContext serverCtx,
ServerHost coSrvHost)
This constructor is used for temporary CoServers connections
|
CoClientContext(ServerContext serverCtx,
ServerHost coSrvHost,
boolean isReconnectMode)
This constructor is used for permanent fail-safe CoServer connections
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Overridden to disconnect only!!!
|
protected ErrorHandler |
createErrorHandler()
Creates the
ConsoleErrorHandler instance used to hande errors
of Agents and ClientCommands |
protected License |
createLicense() |
protected ServerNotificationHandler |
createServerNotificationHandler()
Creates the
ServerNotificationHandler instance used to handle received ServerMessages |
boolean |
exit()
Exits the VM by default.
|
java.lang.String |
getCoClientName() |
java.lang.String |
getCoServerName() |
ServerContext |
getServerContext()
Returns the ServerContext of the server this client is running in.
|
CoSessionId |
getSessionId()
Return a never null
CoSessionId. |
NetResponse |
handleRequest(NetRequest request,
NetResponse response) |
void |
init()
Performs the initialization of this class.
|
protected boolean |
isDefaultContext()
If there are several contexts within the same VM then only one of them
can be the default-context.
|
boolean |
isGuiClient()
Tells whether this client has a GUI
|
void |
setMainFrame(ApplicationMainFrame mainFrame)
Sets the MainFrame for this application.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
cancelTask, cancelTask, createClientConnector, createClientInfo, createTaskManager, getABOManager, getAdminActionValidator, getAgentParamsCache, getClientCache, getClientConfig, getClientConnector, getMainFrame, getNetActionValidator, getServerMessageHandler, getTaskManager, getUserActionValidator, getUserCache, isCoClient, loadTranslations, readClientInfo, toDumpStringcheckInitialized, confirmCancelAllAsyncActivity, createUncaughtExceptionHandler, getApplicationConfig, getApplicationName, getCustomVersion, getDatabase, getErrorHandler, getEspritVersion, getJavaVersionManager, getLicense, getSupportedLanguages, getTextEditor, hasMainFrame, isClosed, isInitialized, registerForClose, setDatabase, setExitOnClose, showError, showError, showError, showInfo, showInfo, showWarning, showWarninggetLogChannel, getLogLevel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel, setLogLevelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringpublic CoClientContext(ServerContext serverCtx, ServerHost coSrvHost)
public CoClientContext(ServerContext serverCtx, ServerHost coSrvHost, boolean isReconnectMode)
public void init()
throws java.lang.Exception
Initializableinit in interface Initializableinit in class ClientContextjava.lang.Exceptionprotected final ServerNotificationHandler createServerNotificationHandler()
ServerNotificationHandler instance used to handle received ServerMessagescreateServerNotificationHandler in class ClientContextprotected final ErrorHandler createErrorHandler()
ConsoleErrorHandler instance used to hande errors
of Agents and ClientCommandscreateErrorHandler in class ApplicationContextprotected final boolean isDefaultContext()
ApplicationContextisDefaultContext in class ApplicationContextAppUtil.getDefaultContext()protected final License createLicense() throws java.lang.Exception
createLicense in class ApplicationContextjava.lang.Exceptionpublic final boolean isGuiClient()
ApplicationContextisGuiClient in class ApplicationContextpublic final void setMainFrame(ApplicationMainFrame mainFrame)
ClientContextsetMainFrame in class ClientContextpublic NetResponse handleRequest(NetRequest request, NetResponse response)
handleRequest in interface RequestHandlerpublic final java.lang.String getCoServerName()
public final java.lang.String getCoClientName()
public final CoSessionId getSessionId()
CoSessionId.
Note that CoSessionId MUST exist even if the co-server is not connected
but just configured!public ServerContext getServerContext()
getServerContext in interface ServerObjectpublic void close()
CoClientReconnectorTask will try to reconnect!close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ApplicationContextpublic final boolean exit()
ApplicationContextexit in interface Exitableexit in class ApplicationContextpublic ToString toString(ToString s)
DumpabletoString in interface DumpabletoString in class ClientContextCopyright © 2014 EsprIT-Systems. All Rights Reserved.