KNOX-1105 - Provide indication that topologies were generated from simple descriptors...
[knox.git] / gateway-spi / src / main / java / org / apache / hadoop / gateway / i18n / GatewaySpiMessages.java
1 /**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 package org.apache.hadoop.gateway.i18n;
19
20 import org.apache.hadoop.gateway.i18n.messages.Message;
21 import org.apache.hadoop.gateway.i18n.messages.MessageLevel;
22 import org.apache.hadoop.gateway.i18n.messages.Messages;
23 import org.apache.hadoop.gateway.i18n.messages.StackTrace;
24
25 @Messages(logger="org.apache.hadoop.gateway")
26 public interface GatewaySpiMessages {
27
28 @Message( level = MessageLevel.ERROR, text = "Failed to load the internal principal mapping table: {0}" )
29 void failedToLoadPrincipalMappingTable( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
30
31 @Message( level = MessageLevel.ERROR, text = "Failed to execute filter: {0}" )
32 void failedToExecuteFilter( @StackTrace( level = MessageLevel.DEBUG ) Throwable t );
33
34 @Message( level = MessageLevel.ERROR, text = "Failed to encrypt passphrase: {0}" )
35 void failedToEncryptPassphrase( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
36
37 @Message( level = MessageLevel.ERROR, text = "Failed to generate secret key from password: {0}" )
38 void failedToGenerateKeyFromPassword( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
39
40 @Message( level = MessageLevel.ERROR, text = "Failed to create keystore [filename={0}, type={1}]: {2}" )
41 void failedToCreateKeystore( String fileName, String keyStoreType, @StackTrace( level = MessageLevel.DEBUG ) Exception e );
42
43 @Message( level = MessageLevel.ERROR, text = "Failed to load keystore [filename={0}, type={1}]: {2}" )
44 void failedToLoadKeystore( String fileName, String keyStoreType, @StackTrace( level = MessageLevel.DEBUG ) Exception e );
45
46 @Message( level = MessageLevel.ERROR, text = "Failed to add credential: {1}" )
47 void failedToAddCredential( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
48
49 @Message(level = MessageLevel.ERROR, text = "Failed to remove credential: {1}")
50 void failedToRemoveCredential(@StackTrace(level = MessageLevel.DEBUG) Exception e);
51
52 @Message( level = MessageLevel.ERROR, text = "Failed to get credential: {1}" )
53 void failedToGetCredential(@StackTrace( level = MessageLevel.DEBUG ) Exception e);
54
55 @Message( level = MessageLevel.ERROR, text = "Failed to persist master secret: {0}" )
56 void failedToPersistMasterSecret( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
57
58 @Message( level = MessageLevel.ERROR, text = "Failed to encrypt master secret: {0}" )
59 void failedToEncryptMasterSecret( @StackTrace( level = MessageLevel.DEBUG ) Exception e );
60
61 @Message( level = MessageLevel.ERROR, text = "Failed to initialize master service from persistent master {0}: {1}" )
62 void failedToInitializeFromPersistentMaster( String masterFileName, @StackTrace( level = MessageLevel.DEBUG ) Exception e );
63
64 @Message( level = MessageLevel.ERROR, text = "Failed to add self signed certificate for Gateway {0}: {1}" )
65 void failedToAddSeflSignedCertForGateway( String alias, @StackTrace( level = MessageLevel.DEBUG ) Exception e );
66
67 @Message( level = MessageLevel.ERROR, text = "Failed to get key {0}: {1}" )
68 void failedToGetKey(String alias, @StackTrace( level = MessageLevel.DEBUG ) Exception e);
69
70 @Message( level = MessageLevel.DEBUG, text = "Loading from persistent master: {0}" )
71 void loadingFromPersistentMaster( String tag );
72
73 @Message( level = MessageLevel.DEBUG, text = "ALIAS: {0}" )
74 void printClusterAlias( String alias );
75
76 @Message( level = MessageLevel.DEBUG, text = "MASTER SERVICE == NULL: {0}" )
77 void printMasterServiceIsNull( boolean masterServiceIsNull );
78
79 @Message( level = MessageLevel.ERROR, text = "Gateway has failed to start. Unable to prompt user for master secret setup. Please consider using knoxcli.sh create-master" )
80 void unableToPromptForMasterUseKnoxCLI();
81
82 @Message( level = MessageLevel.ERROR, text = "Error in generating certificate: {0}" )
83 void failedToGenerateCertificate( @StackTrace( level = MessageLevel.ERROR ) Exception e );
84
85 @Message(level = MessageLevel.ERROR, text = "Failed to read configuration: {0}")
86 void failedToReadConfigurationFile(final String filePath, @StackTrace(level = MessageLevel.DEBUG) Exception e );
87
88 @Message(level = MessageLevel.ERROR, text = "Invalid resource URI {0} : {1}")
89 void invalidResourceURI(final String uri, final String reason, @StackTrace(level = MessageLevel.DEBUG) Exception e );
90
91 @Message( level = MessageLevel.ERROR, text = "Topology {0} cannot be manually overwritten because it was generated from a simple descriptor." )
92 void disallowedOverwritingGeneratedTopology(final String topologyName);
93
94 }