Project

General

Profile

« Previous | Next » 

Revision 4808

Added by daigle about 15 years ago

Update replication documentation and fix code so that replication log is available.

View differences:

MetacatReplication.java
96 96
           MetacatReplication.replLog("deltaT handler started with rate=" +
97 97
                   timeInterval + " mini seconds at " +firstTime.toString());
98 98
       }
99
		       
100
       String logFilePath = 
101
    	   PropertyService.getProperty("replication.logdir") + "/metacatreplicationerror.log";
102
       if (FileUtil.getFileStatus(logFilePath) == FileUtil.DOES_NOT_EXIST) {
103
    	   FileUtil.createFile(logFilePath);
104
       }
105
       
106
       if (FileUtil.getFileStatus(logFilePath) < FileUtil.EXISTS_READ_WRITABLE) {
107
    	   logMetacat.error(logFilePath + " does not exist read/writable.");
108
       }
109
       
99 110
    }
100 111
    catch (Exception e)
101 112
    {
......
155 166
      params.put(name, value);
156 167
    }
157 168

  
158
    String action = ((String[])params.get("action"))[0];
169
    String action = "";
170
    if (!params.isEmpty() && params.get("action") != null) {
171
    	action = ((String[])params.get("action"))[0];
172
    }
159 173
    String server = null;
160 174

  
161 175
    try {

Also available in: Unified diff