Revision 4173
Added by daigle over 15 years ago
MetacatReplication.java | ||
---|---|---|
73 | 73 |
public void init(ServletConfig config) throws ServletException |
74 | 74 |
{ |
75 | 75 |
//initialize db connections to handle any update requests |
76 |
//deltaT = util.getProperty("deltaT"); |
|
76 |
//deltaT = util.getProperty("replication.deltaT");
|
|
77 | 77 |
//the default deltaT can be set from metacat.properties |
78 | 78 |
//create a thread to do the delta-T check but don't execute it yet |
79 | 79 |
replicationDaemon = new Timer(true); |
... | ... | |
1280 | 1280 |
doclist.append("</docid><rev>").append(rs.getInt(2)); |
1281 | 1281 |
doclist.append("</rev>"); |
1282 | 1282 |
doclist.append("<datafile>"); |
1283 |
doclist.append(PropertyService.getProperty("datafileflag")); |
|
1283 |
doclist.append(PropertyService.getProperty("replication.datafileflag"));
|
|
1284 | 1284 |
doclist.append("</datafile>"); |
1285 | 1285 |
doclist.append("</updatedDocument>"); |
1286 | 1286 |
}//else |
... | ... | |
1427 | 1427 |
if (recordDoctype.equals("BIN")) |
1428 | 1428 |
{ |
1429 | 1429 |
revDocList.append("<datafile>"); |
1430 |
revDocList.append(PropertyService.getProperty("datafileflag")); |
|
1430 |
revDocList.append(PropertyService.getProperty("replication.datafileflag"));
|
|
1431 | 1431 |
revDocList.append("</datafile>"); |
1432 | 1432 |
} |
1433 | 1433 |
revDocList.append("</revisionDocument>"); |
... | ... | |
1891 | 1891 |
public static void replLog(String message) { |
1892 | 1892 |
try { |
1893 | 1893 |
FileOutputStream fos = |
1894 |
new FileOutputStream(PropertyService.getProperty("application.tomcatDir")
|
|
1895 |
+ "/logs/metacatreplication.log", true);
|
|
1894 |
new FileOutputStream(PropertyService.getProperty("replication.logdir")
|
|
1895 |
+ "/metacatreplication.log", true); |
|
1896 | 1896 |
PrintWriter pw = new PrintWriter(fos); |
1897 | 1897 |
SimpleDateFormat formatter = new SimpleDateFormat("yy-MM-dd HH:mm:ss"); |
1898 | 1898 |
java.util.Date localtime = new java.util.Date(); |
Also available in: Unified diff
Use qualified properties