
public class ViewerServiceClient extends Object
| Constructor and Description |
|---|
ViewerServiceClient(MessageTransport processor,
TreeLogger unexpectedErrorLogger)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLogBranch(int indexInParent,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo,
int parentLogHandle,
Callback<Integer> callback)
Add an entry that also serves as a log branch.
|
void |
addLogEntry(int indexInParent,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo,
int logHandle)
Add a log entry.
|
int |
addModuleLog(String remoteSocket,
String url,
String tabKey,
String moduleName,
String sessionKey,
String agentTag,
byte[] agentIcon)
Add a new Module logger.
|
void |
checkCapabilities()
Check the capabilities of the ViewerService.
|
void |
disconnectLog(int logHandle)
Disconnect the log.
|
void |
initialize(String clientId,
List<String> startupURLs) |
public ViewerServiceClient(MessageTransport processor, TreeLogger unexpectedErrorLogger)
processor - A MessageProcessor that is used to communicate with the
ViewerService server.public void addLogBranch(int indexInParent,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo,
int parentLogHandle,
Callback<Integer> callback)
indexInParent - The index of this entry/branch within the parent
loggertype - The severity of the log message.msg - The message.caught - An exception associated with the messagehelpInfo - A URL or message which directs the user to helpful
information related to the log messageparentLogHandle - The log handle of the parent of this log
entry/branchcallback - the callback to call when a branch handle is availablepublic void addLogEntry(int indexInParent,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo,
int logHandle)
indexInParent - The index of this entry within the parent loggertype - The severity of the log message.msg - The message.caught - An exception associated with the messagehelpInfo - A URL or message which directs the user to helpful
information related to the log messagelogHandle - The log handle of the parent of this log entry/branchpublic int addModuleLog(String remoteSocket, String url, String tabKey, String moduleName, String sessionKey, String agentTag, byte[] agentIcon)
remoteSocket - name of remote socket endpoint in host:port formaturl - URL of top-level windowtabKey - stable browser tab identifier, or the empty string if no such
identifier is availablemoduleName - the name of the module loadedsessionKey - a unique session keyagentTag - short-form user agent identifier, suitable for use in a
label for this connectionagentIcon - icon to use for the user agent (fits inside 24x24) or null
if unavailablepublic void checkCapabilities()
public void disconnectLog(int logHandle)
logHandle - the handle of the top-level log to disconnectCopyright © 2018. All rights reserved.