*/
final class MsgNative {
-
final static native
void selectContextFactory(String name) throws NativeException;
/******************************************************************
* The natively implemented methods connected to the MSG Process *
******************************************************************/
-
/**
* The natively implemented method to create an MSG process.
*
*
* @param process The valid (binded with a native process) java process to suspend.
*
- * @exception NativeException if the SimGrid native code failed.
- *
* @see Process.pause()
*/
- final static native void processSuspend(Process process) throws NativeException;
+ final static native void processSuspend(Process process);
/**
* The natively implemented method to kill a MSG process.
*
* @return The method returns the host where the process is running.
*
- * @exception NativeException if the SimGrid native code failed.
+ * @exception HostNotFoundException if the SimGrid native code failed (initialization error?).
*
* @see Process.getHost()
*/
- final static native Host processGetHost(Process process) throws NativeException;
+ final static native Host processGetHost(Process process);
/**
* The natively implemented method to get a MSG process from his PID.
*
* @return The PID of the specified process.
*
- * @exception NativeException if the SimGrid native code failed.
- *
* @see Process.getPID()
*/
- final static native int processGetPID(Process process) throws NativeException;
+ final static native int processGetPID(Process process);
/**
* The natively implemented method to get the PPID of a MSG process.
*
* @return The PPID of the specified process.
*
- * @exception NativeException if the SimGrid native code failed.
- *
* @see Process.getPPID()
*/
- final static native int processGetPPID(Process process) throws NativeException;
+ final static native int processGetPPID(Process process);
/**
* The natively implemented method to get the current running process.
*
* @return The current process.
*
- * @exception NativeException if the SimGrid native code failed.
-
* @see Process.currentProcess()
*/
- final static native Process processSelf() throws NativeException;
+ final static native Process processSelf();
/**
* The natively implemented method to migrate a process from his currnet host to a new host.
*/
final static native void taskExecute(Task task) throws NativeException;
-
-
/* ****************************************************************
* Communication methods thru mailboxes *
**************************************************************** */
- final static native void taskSend(String alias, Task task, double timeout) throws NativeException,TransferFailureException,HostFailureException,TimeoutFailureException;
+ final static native void taskSend(String alias, Task task, double timeout) throws NativeException,TransferFailureException,HostFailureException,TimeoutException;
final static native Task taskReceive(String alias, double timeout, Host host) throws NativeException;
final static native int taskListenFrom(String alias) throws NativeException;
final static native boolean taskListen(String alias);
*/
final static native void taskSendBounded(String alias, Task task, double maxrate) throws NativeException;
-}
+}
\ No newline at end of file