Class TimeWindowCollectSupportDataLogCaptureWindow
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.extensions.CollectSupportDataLogCaptureWindow
com.unboundid.ldap.sdk.unboundidds.extensions.TimeWindowCollectSupportDataLogCaptureWindow
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class TimeWindowCollectSupportDataLogCaptureWindow
extends CollectSupportDataLogCaptureWindow
This class provides a collect support data log capture window implementation
that indicates that the tool should capture information for a specified
window of time (between start and end times, inclusive) when processing a
CollectSupportDataExtendedRequest.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package 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.
- See Also:
-
Field Summary
Fields inherited from class com.unboundid.ldap.sdk.unboundidds.extensions.CollectSupportDataLogCaptureWindow
TYPE_DURATION, TYPE_HEAD_AND_TAIL_SIZE, TYPE_TIME_WINDOW, TYPE_TOOL_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionTimeWindowCollectSupportDataLogCaptureWindow(long startTimeMillis, Long endTimeMillis) Creates a new instance of this collect support data log capture window object that will capture log content within the specified window of time.TimeWindowCollectSupportDataLogCaptureWindow(Date startTime, Date endTime) Creates a new instance of this collect support data log capture window object that will capture log content within the specified window of time. -
Method Summary
Modifier and TypeMethodDescriptionencode()Encodes this collect support data log capture window object to an ASN.1 element.Retrieves the time of the most recent log messages to include in the support data archive, if specified.Retrieves the time of the most recent log messages to include in the support data archive, if specified.Retrieves the time of the oldest log messages to include in the support data archive.longRetrieves the time of the oldest log messages to include in the support data archive, represented as the number of milliseconds since midnight on January 1, 1970, UTC (i.e., the format used bySystem.currentTimeMillis()andDate.getTime()).voidtoString(StringBuilder buffer) Appends a string representation of this collect support data log capture window object to the provided buffer.Methods inherited from class com.unboundid.ldap.sdk.unboundidds.extensions.CollectSupportDataLogCaptureWindow
decode, toString
-
Constructor Details
-
TimeWindowCollectSupportDataLogCaptureWindow
public TimeWindowCollectSupportDataLogCaptureWindow(@NotNull Date startTime, @Nullable Date endTime) Creates a new instance of this collect support data log capture window object that will capture log content within the specified window of time.- Parameters:
startTime- The time of the oldest log messages to include in the support data archive. It must be non-null, and it must represent a time no earlier than midnight on January 1, 1970, UTC.endTime- The time of the most recent log messages to include in the support data archive. This may benullif the end time should be set to the time theCollectSupportDataExtendedRequestwas received by the server. If it is non-null, then it must represent a time no earlier than the provided start time.
-
TimeWindowCollectSupportDataLogCaptureWindow
public TimeWindowCollectSupportDataLogCaptureWindow(long startTimeMillis, @Nullable Long endTimeMillis) Creates a new instance of this collect support data log capture window object that will capture log content within the specified window of time.- Parameters:
startTimeMillis- The time of the oldest log messages to include in the support data archive, represented as the number of milliseconds since midnight on January 1, 1970, UTC (i.e., the format used bySystem.currentTimeMillis()andDate.getTime()).endTimeMillis- The time of the most recent log messages to include in the support data archive, represented as the number of milliseconds since midnight on January 1, 1970, UTC. This may benullif the end time should be set to the time theCollectSupportDataExtendedRequestwas received by the server. If it is non-null, then it must be greater than or equal to the provided start time.
-
-
Method Details
-
getStartTime
Retrieves the time of the oldest log messages to include in the support data archive.- Returns:
- The time of the oldest log messages to include in the support data archive.
-
getStartTimeMillis
Retrieves the time of the oldest log messages to include in the support data archive, represented as the number of milliseconds since midnight on January 1, 1970, UTC (i.e., the format used bySystem.currentTimeMillis()andDate.getTime()).- Returns:
- The time of the oldest log messages to include in the support data archive, represented as the number of milliseconds since midnight on January 1, 1970, UTC.
-
getEndTime
Retrieves the time of the most recent log messages to include in the support data archive, if specified.- Returns:
- The time of the most recent log messages to include in the
support data archive, or
nullif the end time should be set to the time theCollectSupportDataExtendedRequestwas received by the server.
-
getEndTimeMillis
Retrieves the time of the most recent log messages to include in the support data archive, if specified. The value will represent the number of milliseconds since midnight on January 1, 1970, UTC (i.e., the format used bySystem.currentTimeMillis()andDate.getTime()).- Returns:
- The time of the most recent log messages to include in the
support data archive, or
nullif the end time should be set to the time theCollectSupportDataExtendedRequestwas received by the server.
-
encode
Encodes this collect support data log capture window object to an ASN.1 element.- Specified by:
encodein classCollectSupportDataLogCaptureWindow- Returns:
- The ASN.1 element that contains an encoded representation of this collect support data log capture window object.
-
toString
Appends a string representation of this collect support data log capture window object to the provided buffer.- Specified by:
toStringin classCollectSupportDataLogCaptureWindow- Parameters:
buffer- The buffer to which the string representation will be appended. It must not benull.
-