@@ -21,12 +21,12 @@ public class IndexQueueMessageParser {
21
21
private final static String HEADER_ID = "id" ;
22
22
//The header name in the message to store the index type
23
23
private final static String HEADER_INDEX_TYPE = "index_type" ;
24
- //The header name in the message to store the path of the object
25
- private final static String HEADER_PATH = "path " ;
24
+ //The header name in the message to store the docid of the object
25
+ private final static String HEADER_DOCID = "doc_id " ;
26
26
private Identifier identifier = null ;
27
27
private String indexType = null ;
28
28
private int priority = 1 ;
29
- private String objectPath ;
29
+ private String docId = null ;
30
30
31
31
private static Log logger = LogFactory .getLog (IndexQueueMessageParser .class );
32
32
@@ -72,12 +72,12 @@ public void parse(AMQP.BasicProperties properties, byte[] body) throws InvalidRe
72
72
"The index type cannot be null or blank in the index queue message for " + pid );
73
73
}
74
74
logger .debug ("The index type in the message is " + indexType + " for " + pid );
75
- Object pathObject = headers .get (HEADER_PATH );
76
- if (pathObject != null ) {
77
- objectPath = ((LongString )pathObject ).toString ();
75
+ Object docIdObject = headers .get (HEADER_DOCID );
76
+ if (docIdObject != null ) {
77
+ docId = ((LongString )docIdObject ).toString ();
78
78
}
79
79
logger .debug (
80
- "The file path of the object which will be indexed in the message is " + objectPath +
80
+ "The docId of the object which will be indexed in the message is " + docId +
81
81
" for " + pid );
82
82
83
83
try {
@@ -118,13 +118,13 @@ public int getPriority() {
118
118
}
119
119
120
120
/**
121
- * Get the file path of the object, which will be indexed,
121
+ * Get the docId of the object, which will be indexed,
122
122
* after calling the parse method to parse the index queue message.
123
- * @return the file path of the object. It can be null or blank , which
124
- * means we don't have the object in the system.
123
+ * @return the docId of the object. DocId is an iternal id of Metacat , which is a file name in
124
+ * the system. It can be null or blank, which means we don't have the object in the system.
125
125
*/
126
- public String getObjectPath () {
127
- return objectPath ;
126
+ public String getDocId () {
127
+ return docId ;
128
128
}
129
129
130
130
}
0 commit comments