/
Log.java
50 lines (41 loc) · 2.06 KB
/
Log.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.backend.elasticsearch.aws.logging.impl;
import org.hibernate.search.util.common.SearchException;
import org.hibernate.search.util.common.logging.impl.MessageConstants;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.ValidIdRange;
import org.jboss.logging.annotations.ValidIdRanges;
@MessageLogger(projectCode = MessageConstants.PROJECT_CODE)
@ValidIdRanges({
@ValidIdRange(min = MessageConstants.BACKEND_ES_AWS_ID_RANGE_MIN,
max = MessageConstants.BACKEND_ES_AWS_ID_RANGE_MAX)
})
public interface Log extends BasicLogger {
int ID_OFFSET = MessageConstants.BACKEND_ES_AWS_ID_RANGE_MIN;
@Message(id = ID_OFFSET + 0,
value = "AWS request signing is enabled, but mandatory property '%1$s' is not set"
)
SearchException missingPropertyForSigning(String propertyKey);
@Message(id = ID_OFFSET + 1,
value = "AWS request signing is enabled with credentials of type '%1$s', but mandatory property '%2$s' is not set"
)
SearchException missingPropertyForSigningWithCredentialsType(String credentialsType, String propertyKey);
@Message(id = ID_OFFSET + 2,
value = "Invalid credentials configuration for AWS request signing."
+ " The configuration properties '%1$s' and ' '%2$s' are now obsolete."
+ " In order to specify static credentials, set '%3$s' to '%4$s',"
+ " then set the access key ID using property '%5$s'"
+ " and the secret access key using property '%6$s'."
)
SearchException obsoleteAccessKeyIdOrSecretAccessKeyForSigning(String legacyAccessKeyIdPropertyKey,
String legacySecretAccessKeyPropertyKey,
String credentialsTypePropertyKey, String credentialsTypePropertyValueStatic,
String accessKeyIdPropertyKey, String secretAccessKeyPropertyKey);
}