Class ToolInvocationLogDetails
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.tools.ToolInvocationLogDetails
-
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ToolInvocationLogDetails extends java.lang.Object
This class represents a data structure that contains information that should be used when logging launch and completion messages for a tool invocation.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()Retrieves the name of the command (without any path information) for the associated tool.java.lang.StringgetInvocationID()Retrieves the unique identifier to use to correlate the launch and completion messages for the tool invocation, if available.java.util.Set<java.io.File>getLogFiles()Retrieves an unmodifiable set of the files in which launch and completion log messages should be recorded for the tool invocation.java.io.PrintStreamgetToolErrorStream()Retrieves a print stream that may be used to report information about any problems encountered while attempting to perform invocation logging.booleanlogInvocation()Indicates whether launch and completion messages should be logged for the tool.java.lang.StringtoString()Retrieves a string representation of this tool invocation log details object.voidtoString(java.lang.StringBuilder buffer)Appends a string representation of this tool invocation log details object to the provided buffer.
-
-
-
Method Detail
-
getCommandName
@NotNull public java.lang.String getCommandName()
Retrieves the name of the command (without any path information) for the associated tool.- Returns:
- The name of the command for the associated tool.
-
logInvocation
public boolean logInvocation()
Indicates whether launch and completion messages should be logged for the tool.- Returns:
trueif the messages should be logged, orfalseif not.
-
getInvocationID
@NotNull public java.lang.String getInvocationID()
Retrieves the unique identifier to use to correlate the launch and completion messages for the tool invocation, if available.- Returns:
- The unique identifier to use to correlate the launch and completion messages for the tool invocation, or an empty string if no invocation logging should be performed for the tool.
-
getLogFiles
@NotNull public java.util.Set<java.io.File> getLogFiles()
Retrieves an unmodifiable set of the files in which launch and completion log messages should be recorded for the tool invocation.- Returns:
- An unmodifiable set of the files in which launch and completion log messages should be recorded for the tool invocation. It may be empty if no invocation logging should be performed.
-
getToolErrorStream
@NotNull public java.io.PrintStream getToolErrorStream()
Retrieves a print stream that may be used to report information about any problems encountered while attempting to perform invocation logging.- Returns:
- A print stream that may be used to report information about any problems encountered while attempting to perform invocation logging.
-
toString
@NotNull public java.lang.String toString()
Retrieves a string representation of this tool invocation log details object.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this tool invocation log details object.
-
-