@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TimeWindowCollectSupportDataLogCaptureWindow extends CollectSupportDataLogCaptureWindow
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.
CollectSupportDataExtendedRequest
,
Serialized FormTYPE_DURATION, TYPE_HEAD_AND_TAIL_SIZE, TYPE_TIME_WINDOW, TYPE_TOOL_DEFAULT
Constructor and Description |
---|
TimeWindowCollectSupportDataLogCaptureWindow(java.util.Date startTime,
java.util.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.
|
TimeWindowCollectSupportDataLogCaptureWindow(long startTimeMillis,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
ASN1Element |
encode()
Encodes this collect support data log capture window object to an ASN.1
element.
|
java.util.Date |
getEndTime()
Retrieves the time of the most recent log messages to include in the
support data archive, if specified.
|
java.lang.Long |
getEndTimeMillis()
Retrieves the time of the most recent log messages to include in the
support data archive, if specified.
|
java.util.Date |
getStartTime()
Retrieves the time of the oldest log messages to include in the support
data archive.
|
long |
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 by
System.currentTimeMillis() and Date.getTime() ). |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this collect support data log capture
window object to the provided buffer.
|
decode, toString
public TimeWindowCollectSupportDataLogCaptureWindow(@NotNull java.util.Date startTime, @Nullable java.util.Date endTime)
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 be null
if
the end time should be set to the time the
CollectSupportDataExtendedRequest
was
received by the server. If it is non-null
, then
it must represent a time no earlier than the provided
start time.public TimeWindowCollectSupportDataLogCaptureWindow(long startTimeMillis, @Nullable java.lang.Long endTimeMillis)
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 by
System.currentTimeMillis()
and
Date.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 be null
if
the end time should be set to the time the
CollectSupportDataExtendedRequest
was
received by the server. If it is
non-null
, then it must be greater than or
equal to the provided start time.@NotNull public java.util.Date getStartTime()
public long getStartTimeMillis()
System.currentTimeMillis()
and Date.getTime()
).@Nullable public java.util.Date getEndTime()
null
if the end time should be
set to the time the CollectSupportDataExtendedRequest
was
received by the server.@Nullable public java.lang.Long getEndTimeMillis()
System.currentTimeMillis()
and Date.getTime()
).null
if the end time should be
set to the time the CollectSupportDataExtendedRequest
was
received by the server.@NotNull public ASN1Element encode()
encode
in class CollectSupportDataLogCaptureWindow
public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in class CollectSupportDataLogCaptureWindow
buffer
- The buffer to which the string representation will be
appended. It must not be null
.