You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2013/04/23 15:53:36 UTC

svn commit: r1470960 - /uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java

Author: degenaro
Date: Tue Apr 23 13:53:36 2013
New Revision: 1470960

URL: http://svn.apache.org/r1470960
Log: (empty)

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java?rev=1470960&r1=1470959&r2=1470960&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/ProcessAccounting.java Tue Apr 23 13:53:36 2013
@@ -174,6 +174,25 @@ public class ProcessAccounting {
 		return retVal;
 	}
 	
+	public void copyInventorySwapUsage(IDuccWork dw, IDuccProcess inventoryProcess, IDuccProcess process) {
+		String methodName = "copyInventorySwapUsage";
+		logger.trace(methodName, null, messages.fetch("enter"));
+		process.setSwapUsage(inventoryProcess.getSwapUsage());
+		if(process.getSwapUsageMax() < process.getSwapUsage()) {
+			process.setSwapUsageMax(process.getSwapUsage());
+		}
+		logger.trace(methodName, null, messages.fetch("exit"));
+		return;
+	}
+	
+	public void copyInventoryMajorFaults(IDuccWork dw, IDuccProcess inventoryProcess, IDuccProcess process) {
+		String methodName = "copyInventoryMajorFaults";
+		logger.trace(methodName, null, messages.fetch("enter"));
+		process.setMajorFaults(inventoryProcess.getMajorFaults());
+		logger.trace(methodName, null, messages.fetch("exit"));
+		return;
+	}
+	
 	public void copyTimeInit(IDuccProcess inventoryProcess, IDuccProcess process) {
 		String methodName = "copyTimeInit";
 		logger.trace(methodName, null, messages.fetch("enter"));
@@ -456,6 +475,10 @@ public class ProcessAccounting {
 							}
 							// Process Pipeline Components State
 							copyUimaPipelineComponentsState(job, inventoryProcess, process);
+							// Process Swap Usage
+							copyInventorySwapUsage(job, inventoryProcess, process);
+							// Process Major Faults
+							copyInventoryMajorFaults(job, inventoryProcess, process);
 						}
 						else {
 							logger.warn(methodName, jobId, processId, messages.fetch("process not found job's process table"));