001/* 002 * Copyright 2022-2024 Ping Identity Corporation 003 * All Rights Reserved. 004 */ 005/* 006 * Copyright 2022-2024 Ping Identity Corporation 007 * 008 * Licensed under the Apache License, Version 2.0 (the "License"); 009 * you may not use this file except in compliance with the License. 010 * You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, software 015 * distributed under the License is distributed on an "AS IS" BASIS, 016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 017 * See the License for the specific language governing permissions and 018 * limitations under the License. 019 */ 020/* 021 * Copyright (C) 2022-2024 Ping Identity Corporation 022 * 023 * This program is free software; you can redistribute it and/or modify 024 * it under the terms of the GNU General Public License (GPLv2 only) 025 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 026 * as published by the Free Software Foundation. 027 * 028 * This program is distributed in the hope that it will be useful, 029 * but WITHOUT ANY WARRANTY; without even the implied warranty of 030 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 031 * GNU General Public License for more details. 032 * 033 * You should have received a copy of the GNU General Public License 034 * along with this program; if not, see <http://www.gnu.org/licenses>. 035 */ 036package com.unboundid.ldap.sdk.unboundidds.logs.v2; 037 038 039 040import java.util.Set; 041 042import com.unboundid.ldap.sdk.unboundidds.controls.AssuredReplicationLocalLevel; 043import com.unboundid.ldap.sdk.unboundidds.controls. 044 AssuredReplicationRemoteLevel; 045import com.unboundid.util.NotExtensible; 046import com.unboundid.util.NotNull; 047import com.unboundid.util.Nullable; 048import com.unboundid.util.ThreadSafety; 049import com.unboundid.util.ThreadSafetyLevel; 050 051 052 053/** 054 * This class provides a data structure that holds information about a modify DN 055 * operation result access log message. 056 * <BR> 057 * <BLOCKQUOTE> 058 * <B>NOTE:</B> This class, and other classes within the 059 * {@code com.unboundid.ldap.sdk.unboundidds} package structure, are only 060 * supported for use against Ping Identity, UnboundID, and 061 * Nokia/Alcatel-Lucent 8661 server products. These classes provide support 062 * for proprietary functionality or for external specifications that are not 063 * considered stable or mature enough to be guaranteed to work in an 064 * interoperable way with other types of LDAP servers. 065 * </BLOCKQUOTE> 066 */ 067@NotExtensible() 068@ThreadSafety(level=ThreadSafetyLevel.INTERFACE_THREADSAFE) 069public interface ModifyDNResultAccessLogMessage 070 extends OperationResultAccessLogMessage, 071 ModifyDNForwardAccessLogMessage 072{ 073 /** 074 * Retrieves the alternate authorization DN for the operation. 075 * 076 * @return The alternate authorization DN for the operation, or {@code null} 077 * if it is not included in the log message. 078 */ 079 @Nullable() 080 String getAlternateAuthorizationDN(); 081 082 083 084 /** 085 * Retrieves the replication change ID for the operation, if available. 086 * 087 * @return The replication change ID for the operation, or {@code null} if it 088 * is not included in the log message. 089 */ 090 @Nullable() 091 String getReplicationChangeID(); 092 093 094 095 /** 096 * Retrieves the local level that will be used for assured replication 097 * processing, if available. 098 * 099 * @return The local level that will be used for assured replication 100 * processing, or {@code null} if this is not included in the log 101 * message (e.g., because assured replication will not be performed 102 * for the operation). 103 */ 104 @Nullable() 105 AssuredReplicationLocalLevel getAssuredReplicationLocalLevel(); 106 107 108 109 /** 110 * Retrieves the remote level that will be used for assured replication 111 * processing, if available. 112 * 113 * @return The remote level that will be used for assured replication 114 * processing, or {@code null} if this is not included in the log 115 * message (e.g., because assured replication will not be performed 116 * for the operation). 117 */ 118 @Nullable() 119 AssuredReplicationRemoteLevel getAssuredReplicationRemoteLevel(); 120 121 122 123 /** 124 * Retrieves the maximum length of time in milliseconds that the server will 125 * delay the response to the client while waiting for the replication 126 * assurance requirement to be satisfied. 127 * 128 * @return The maximum length of time in milliseconds that the server will 129 * delay the response to the client while waiting for the replication 130 * assurance requirement to be satisfied, or {@code null} if this is 131 * not included in the log message (e.g., because assured replication 132 * will not be performed for the operation). 133 */ 134 @Nullable() 135 Long getAssuredReplicationTimeoutMillis(); 136 137 138 139 /** 140 * Indicates whether the operation response to the client will be delayed 141 * until replication assurance has been satisfied or the timeout has occurred. 142 * 143 * @return {@code true} if the operation response to the client will be 144 * delayed until replication assurance has been satisfied, 145 * {@code false} if the response will not be delayed by assurance 146 * processing, or {@code null} if this was not included in the 147 * log message (e.g., because assured replication will not be 148 * performed for the operation) 149 */ 150 @Nullable() 151 Boolean getResponseDelayedByAssurance(); 152 153 154 155 /** 156 * Retrieves the names of any indexes for which one or more keys near 157 * (typically, within 80% of) the index entry limit were accessed while 158 * processing the operation. 159 * 160 * @return The names of any indexes for which one or more keys near the index 161 * entry limit were accessed while processing the operation, or an 162 * empty list if no such index keys were accessed, or if this is not 163 * included in the log message. 164 */ 165 @NotNull() 166 Set<String> getIndexesWithKeysAccessedNearEntryLimit(); 167 168 169 170 /** 171 * Retrieves the names of any indexes for which one or more keys over the 172 * index entry limit were accessed while processing the operation. 173 * 174 * @return The names of any indexes for which one or more keys over the index 175 * entry limit were accessed while processing the operation, or an 176 * empty list if no such index keys were accessed, or if this is not 177 * included in the log message. 178 */ 179 @NotNull() 180 Set<String> getIndexesWithKeysAccessedExceedingEntryLimit(); 181}