Agent.java - example native class
Implements Java side of the native interface
static { System.loadLibrary(”Agent"); }
// Initialize shared resources for name and return handle
public static native int init (String name);
// Blocks until resource is signaled
public static native void wait (int handle);
// Copy data from shared memory into provided buffer
public static native int getData (int handle, char[] buff);