setDebug
setDebug(
debug
)
setDebug
方法定义
startSession
命令的提示级别。如果为
true
,那么运行时服务器会将调试信息记录到运行时服务器日志。如果为
false
,那么运行时服务器不会记录任何调试信息。将为每个会话单独设置一个调试标志。因此,您可以为个别运行时会话跟踪调试数据。
debug
- 布尔值(
true
或
false
)。
返回值
无。
示例
以下示例摘自用于调用
startSession
和
setDebug
的
executeBatch
方法。
boolean initialDebugFlag=true;
boolean newDebugFlag=false;
. . .
/* build the startSession command */
Command startSessionCommand = new CommandImpl();
startSessionCommand.setDebug(initialDebugFlag);
. . .
/* build the setDebug command */
Command setDebugCommand = new CommandImpl();
setDebugCommand.setMethodIdentifier(Command.COMMAND_SETDEBUG);
setDebugCommand.setDebug(newDebugFlag);
/** Build command array */
Command[] commands =
{
startSessionCommand,
setDebugCommand,
};
/** Make the call */
BatchResponse batchResponse = api.executeBatch(sessionId, commands);
/** Process the response appropriately */
processExecuteBatchResponse(batchResponse);
Copyright IBM Corporation 2012. All Rights Reserved.