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, toDumpString
checkInitialized, confirmCancelAllAsyncActivity, createUncaughtExceptionHandler, getApplicationConfig, getApplicationName, getCustomVersion, getDatabase, getErrorHandler, getEspritVersion, getJavaVersionManager, getLicense, getSupportedLanguages, getTextEditor, hasMainFrame, isClosed, isInitialized, registerForClose, setDatabase, setExitOnClose, showError, showError, showError, showInfo, showInfo, showWarning, showWarning
getLogChannel, getLogLevel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel, setLogLevel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public CoClientContext(ServerContext serverCtx, ServerHost coSrvHost)
public CoClientContext(ServerContext serverCtx, ServerHost coSrvHost, boolean isReconnectMode)
public void init() throws java.lang.Exception
Initializable
init
in interface Initializable
init
in class ClientContext
java.lang.Exception
protected final ServerNotificationHandler createServerNotificationHandler()
ServerNotificationHandler
instance used to handle received ServerMessagescreateServerNotificationHandler
in class ClientContext
protected final ErrorHandler createErrorHandler()
ConsoleErrorHandler
instance used to hande errors
of Agents and ClientCommandscreateErrorHandler
in class ApplicationContext
protected final boolean isDefaultContext()
ApplicationContext
isDefaultContext
in class ApplicationContext
AppUtil.getDefaultContext()
protected final License createLicense() throws java.lang.Exception
createLicense
in class ApplicationContext
java.lang.Exception
public final boolean isGuiClient()
ApplicationContext
isGuiClient
in class ApplicationContext
public final void setMainFrame(ApplicationMainFrame mainFrame)
ClientContext
setMainFrame
in class ClientContext
public NetResponse handleRequest(NetRequest request, NetResponse response)
handleRequest
in interface RequestHandler
public 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 ServerObject
public void close()
CoClientReconnectorTask
will try to reconnect!close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class ApplicationContext
public final boolean exit()
ApplicationContext
exit
in interface Exitable
exit
in class ApplicationContext
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class ClientContext
Copyright © 2014 EsprIT-Systems. All Rights Reserved.