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 an add 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 AddResultAccessLogMessage 070 extends OperationResultAccessLogMessage, 071 AddForwardAccessLogMessage 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 DN of the soft-deleted entry from which the contents of the 097 * added entry were obtained, if it was an undelete rather than a normal add. 098 * 099 * @return The DN of the soft-deleted entry from which the contents of the 100 * added entry were obtained, or {@code null} if it is not included 101 * in the log message (e.g., because the operation was a normal add 102 * rather than an undelete). 103 */ 104 @Nullable() 105 String getUndeleteFromDN(); 106 107 108 109 /** 110 * Retrieves the local level that will be used for assured replication 111 * processing, if available. 112 * 113 * @return The local 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 AssuredReplicationLocalLevel getAssuredReplicationLocalLevel(); 120 121 122 123 /** 124 * Retrieves the remote level that will be used for assured replication 125 * processing, if available. 126 * 127 * @return The remote level that will be used for assured replication 128 * processing, or {@code null} if this is not included in the log 129 * message (e.g., because assured replication will not be performed 130 * for the operation). 131 */ 132 @Nullable() 133 AssuredReplicationRemoteLevel getAssuredReplicationRemoteLevel(); 134 135 136 137 /** 138 * Retrieves the maximum length of time in milliseconds that the server will 139 * delay the response to the client while waiting for the replication 140 * assurance requirement to be satisfied. 141 * 142 * @return The maximum length of time in milliseconds that the server will 143 * delay the response to the client while waiting for the replication 144 * assurance requirement to be satisfied, or {@code null} if this is 145 * not included in the log message (e.g., because assured replication 146 * will not be performed for the operation). 147 */ 148 @Nullable() 149 Long getAssuredReplicationTimeoutMillis(); 150 151 152 153 /** 154 * Indicates whether the operation response to the client will be delayed 155 * until replication assurance has been satisfied or the timeout has occurred. 156 * 157 * @return {@code true} if the operation response to the client will be 158 * delayed until replication assurance has been satisfied, 159 * {@code false} if the response will not be delayed by assurance 160 * processing, or {@code null} if this was not included in the 161 * log message (e.g., because assured replication will not be 162 * performed for the operation) 163 */ 164 @Nullable() 165 Boolean getResponseDelayedByAssurance(); 166 167 168 169 /** 170 * Retrieves the names of any indexes for which one or more keys near 171 * (typically, within 80% of) the index entry limit were accessed while 172 * processing the operation. 173 * 174 * @return The names of any indexes for which one or more keys near 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> getIndexesWithKeysAccessedNearEntryLimit(); 181 182 183 184 /** 185 * Retrieves the names of any indexes for which one or more keys over the 186 * index entry limit were accessed while processing the operation. 187 * 188 * @return The names of any indexes for which one or more keys over the index 189 * entry limit were accessed while processing the operation, or an 190 * empty list if no such index keys were accessed, or if this is not 191 * included in the log message. 192 */ 193 @NotNull() 194 Set<String> getIndexesWithKeysAccessedExceedingEntryLimit(); 195}