incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r819886 - /incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java
Date Tue, 29 Sep 2009 11:07:10 GMT
Author: spoole
Date: Tue Sep 29 11:07:10 2009
New Revision: 819886

URL: http://svn.apache.org/viewvc?rev=819886&view=rev
Log:
updated dump trigger to support  process id retrieval 

Modified:
    incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java

Modified: incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java?rev=819886&r1=819885&r2=819886&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.common/src/main/java/org/apache/kato/common/DumpTrigger.java
Tue Sep 29 11:07:10 2009
@@ -2,7 +2,20 @@
 
 public class DumpTrigger {
 
+	private static DumpTrigger trigger=new DumpTrigger();
 	
-	public native boolean triggerDump();
+	
+	public  static boolean triggerDump() {
+		int pid=getProcessID();
+		return trigger.sendDumpSignal(pid);
+	}
+
+	public static int getProcessID() {
+		
+		return trigger.getNativeProcessID();
+	}
+
+	private native int getNativeProcessID();
+	private native boolean sendDumpSignal(int procid);
 	
 }



Mime
View raw message