/
PreconditionMessage.java
64 lines (60 loc) · 3.67 KB
/
PreconditionMessage.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Licensed to the University of California, Berkeley under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package tachyon.exception;
/**
* Precondition messages used across Tachyon.
*
* Note: To minimize merge conflicts, please sort alphabetically in this section.
*/
public class PreconditionMessage {
public static final String CANNOT_READ_FOLDER = "Cannot read from a folder";
public static final String CLIENT_CONTEXT_NOT_INITIALIZED = "Client Context not initialized";
public static final String COMMAND_LINE_LINEAGE_ONLY =
"Only command line jobs are supported by createLineage";
public static final String ERR_BLOCK_INDEX = "Current block index exceeds max index";
public static final String ERR_BLOCK_REMAINING =
"The current block still has space left, no need to get new block";
public static final String ERR_BUFFER_STATE = "Buffer length: %s, offset: %s, len: %s";
public static final String ERR_CLOSED_BLOCK_IN_STREAM =
"Cannot do operations on a closed BlockInStream";
public static final String ERR_CLOSED_BLOCK_OUT_STREAM =
"Cannot do operations on a closed BlockOutStream";
public static final String ERR_END_OF_BLOCK = "Cannot write past end of block";
public static final String ERR_READ_BUFFER_NULL = "Read buffer cannot be null";
public static final String ERR_SEEK_NEGATIVE = "Seek position is negative: %s";
public static final String ERR_SEEK_PAST_END_OF_BLOCK = "Seek position past end of block: %s";
public static final String ERR_SEEK_PAST_END_OF_FILE = "Seek position past end of file: %s";
public static final String ERR_WRITE_BUFFER_NULL = "Cannot write a null input buffer";
public static final String RAW_TABLE_METADATA_NULL = "Raw table metadata cannot be null";
public static final String INODE_TREE_UNINITIALIZED_IS_ROOT_ID =
"Cannot call isRootId() before initializeRoot()";
public static final String LINEAGE_DOES_NOT_EXIST = "Lineage id %s does not exist";
public static final String LINEAGE_NO_OUTPUT_FILE =
"The output file %s is not associated with any lineage";
public static final String MUST_SET_PINNED = "The pinned flag must be set";
public static final String MUST_SET_TTL = "The TTL value must be set";
public static final String MUST_SET_PERSISTED = "The persisted value must be set";
public static final String REMOTE_CLIENT_BUT_LOCAL_HOSTNAME =
"Acquire Remote Worker Client cannot not be called with local hostname";
public static final String TTL_ONLY_FOR_FILE = "TTL can only be set for files";
public static final String PERSIST_ONLY_FOR_FILE = "Only files can be persisted";
public static final String FILE_TO_PERSIST_MUST_BE_COMPLETE =
"File being persisted must be complete";
public static final String ERR_SET_STATE_UNPERSIST =
"Cannot set the state of a file to not-persisted";
public static final String URI_HOST_NULL = "URI hostname must not be null";
public static final String URI_PORT_NULL = "URI port must not be null";
private PreconditionMessage() {} // to prevent initialization
}