incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r880736 - in /incubator/kato/trunk/org.apache.kato: kato.common.142/ kato.common.142/src/main/java/org/kato/common142/ kato.common/src/main/java/org/apache/kato/common/ kato.native/kato.native.vmapi/tests/ kato.native/kato.native.vmapi/test...
Date Mon, 16 Nov 2009 13:11:08 GMT
Author: spoole
Date: Mon Nov 16 13:11:08 2009
New Revision: 880736

URL: http://svn.apache.org/viewvc?rev=880736&view=rev
Log:
moved dump trigger api code to new common module at 142 level so it can be used by older vms

Added:
    incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java
  (with props)
Removed:
    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.142/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java

Modified: incubator/kato/trunk/org.apache.kato/kato.common.142/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.common.142/pom.xml?rev=880736&r1=880735&r2=880736&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.common.142/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.common.142/pom.xml Mon Nov 16 13:11:08 2009
@@ -19,4 +19,16 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+  <build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.4</source>
+					<target>1.4</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 </project>
\ No newline at end of file

Added: incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java?rev=880736&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java
Mon Nov 16 13:11:08 2009
@@ -0,0 +1,21 @@
+package org.kato.common142;
+
+public class DumpTrigger {
+
+	private static DumpTrigger trigger=new DumpTrigger();
+	
+	
+	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);
+	
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.common.142/src/main/java/org/kato/common142/DumpTrigger.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml?rev=880736&r1=880735&r2=880736&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/pom.xml Mon Nov
16 13:11:08 2009
@@ -36,7 +36,7 @@
 		</dependency>
 		<dependency>
 			<groupId>org.apache.kato</groupId>
-			<artifactId>kato.common</artifactId>
+			<artifactId>kato.common.142</artifactId>
 			<version>M1-incubating</version>
 			<scope>test</scope>
 		</dependency>

Modified: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java?rev=880736&r1=880735&r2=880736&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/tests/src/test/java/test/apache/kato/vmapi/TestLibraryLoad.java
Mon Nov 16 13:11:08 2009
@@ -2,7 +2,7 @@
 
 import java.io.File;
 
-import org.apache.kato.common.DumpTrigger;
+import org.kato.common142.DumpTrigger;
 
 import junit.framework.TestCase;
 



Mime
View raw message