Project

General

Profile

« Previous | Next » 

Revision 6274

use monitor() return value when processing response

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
242 242
                    // there are various parts to monitoring
243 243
                    if (httpVerb == GET) {
244 244
                    	// health monitoring calls
245
                        monitor();
245
                        status = monitor();
246 246
                    }
247
                    status = true;
248 247
                } else if (resource.equals(RESOURCE_REPLICATE)) {
249 248
                	if (httpVerb == POST) {
250 249
	                    logMetacat.debug("processing replicate request");
......
382 381
            
383 382
            // TODO: implement in MNCore
384 383
            //ObjectStatistics objectStats = MNodeService.getInstance().getObjectStatistics(format, pid);
384
            return false;
385 385
            
386 386
        } else if (pathInfo.toLowerCase().equals("event")) {
387 387
            logMetacat.debug("processing event request");
......
418 418
            
419 419
            serializeServiceType(MonitorList.class, monitorList, out);
420 420
            
421
            return true;
422
            
421 423
        }
422 424
        
423
        return true;
425
        return false;
424 426
    }
425 427
    
426 428
    /**

Also available in: Unified diff