setDebug
setDebug メソッドは、startSession コマンドのデバッグ・レベルを定義します。
setDebug(debug)
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);