Static Package Functions | |
static final native void | processCreate (Process process, Host host) |
static final native int | processKillAll (int resetPID) |
static final native void | processSuspend (Process process) |
static final native void | processKill (Process process) |
static final native void | processResume (Process process) |
static final native boolean | processIsSuspended (Process process) |
static final native Host | processGetHost (Process process) |
static final native Process | processFromPID (int PID) |
static final native int | processGetPID (Process process) |
static final native int | processGetPPID (Process process) |
static final native Process | processSelf () |
static final native void | processChangeHost (Process process, Host host) |
static final native void | processWaitFor (double seconds) throws HostFailureException |
static final native void | processExit (Process process) |
static final native Host | hostGetByName (String name) throws HostNotFoundException |
static final native String | hostGetName (Host host) |
static final native int | hostGetCount () |
static final native Host | hostSelf () |
static final native double | hostGetSpeed (Host host) |
static final native boolean | hostIsAvail (Host host) |
static final native Host[] | allHosts () |
static final native int | hostGetLoad (Host host) |
static final native void | taskCreate (Task task, String name, double computeDuration, double messageSize) throws IllegalArgumentException |
static final native Process | taskGetSender (Task task) |
static final native Host | taskGetSource (Task task) |
static final native String | taskGetName (Task task) |
static final native void | taskCancel (Task task) |
static final native void | parallelTaskCreate (Task pTask, String name, Host[]hosts, double[]computeDurations, double[]messageSizes) throws NullPointerException, IllegalArgumentException |
static final native double | taskGetComputeDuration (Task task) |
static final native double | taskGetRemainingDuration (Task task) |
static final native void | taskSetPriority (Task task, double priority) |
static final native void | taskDestroy (Task task) |
static final native void | taskExecute (Task task) throws HostFailureException,TaskCancelledException |
static final native void | taskSendBounded (String alias, Task task, double maxrate) throws TransferFailureException,HostFailureException,TimeoutException |
Contains all the native methods related to Process, Host and Task.
static final native void simgrid::msg::MsgNative::processCreate | ( | Process | process, | |
Host | host | |||
) | [static, package] |
The natively implemented method to create an MSG process.
process | The java process object to bind with the MSG native process. | |
host | A valid (binded) host where create the process. |
static final native int simgrid::msg::MsgNative::processKillAll | ( | int | resetPID | ) | [static, package] |
The natively implemented method to kill all the process of the simulation.
resetPID | Should we reset the PID numbers. A negative number means no reset and a positive number will be used to set the PID of the next newly created process. |
static final native void simgrid::msg::MsgNative::processSuspend | ( | Process | process | ) | [static, package] |
The natively implemented method to suspend an MSG process.
process | The valid (binded with a native process) java process to suspend. |
static final native void simgrid::msg::MsgNative::processKill | ( | Process | process | ) | [static, package] |
The natively implemented method to kill a MSG process.
process | The valid (binded with a native process) java process to kill. |
static final native void simgrid::msg::MsgNative::processResume | ( | Process | process | ) | [static, package] |
The natively implemented method to resume a suspended MSG process.
process | The valid (binded with a native process) java process to resume. |
static final native boolean simgrid::msg::MsgNative::processIsSuspended | ( | Process | process | ) | [static, package] |
The natively implemented method to test if MSG process is suspended.
process | The valid (binded with a native process) java process to test. |
static final native Host simgrid::msg::MsgNative::processGetHost | ( | Process | process | ) | [static, package] |
The natively implemented method to get the host of a MSG process.
process | The valid (binded with a native process) java process to get the host. |
HostNotFoundException | if the SimGrid native code failed (initialization error?). |
static final native Process simgrid::msg::MsgNative::processFromPID | ( | int | PID | ) | [static, package] |
The natively implemented method to get a MSG process from his PID.
PID | The PID of the process to get. |
static final native int simgrid::msg::MsgNative::processGetPID | ( | Process | process | ) | [static, package] |
The natively implemented method to get the PID of a MSG process.
process | The valid (binded with a native process) java process to get the PID. |
static final native int simgrid::msg::MsgNative::processGetPPID | ( | Process | process | ) | [static, package] |
The natively implemented method to get the PPID of a MSG process.
process | The valid (binded with a native process) java process to get the PID. |
static final native Process simgrid::msg::MsgNative::processSelf | ( | ) | [static, package] |
The natively implemented method to get the current running process.
static final native void simgrid::msg::MsgNative::processChangeHost | ( | Process | process, | |
Host | host | |||
) | [static, package] |
The natively implemented method to migrate a process from his currnet host to a new host.
process | The (valid) process to migrate. | |
host | A (valid) host where move the process. |
static final native void simgrid::msg::MsgNative::processWaitFor | ( | double | seconds | ) | throws HostFailureException [static, package] |
The natively implemented native to request the current process to sleep until time seconds have elapsed.
seconds | The time the current process must sleep. |
HostFailureException | if the SimGrid native code failed. |
static final native void simgrid::msg::MsgNative::processExit | ( | Process | process | ) | [static, package] |
The natively implemented native method to exit a process.
static final native Host simgrid::msg::MsgNative::hostGetByName | ( | String | name | ) | throws HostNotFoundException [static, package] |
The natively implemented method to get an host from his name.
name | The name of the host to get. |
HostNotFoundException | if there is no such host |
static final native String simgrid::msg::MsgNative::hostGetName | ( | Host | host | ) | [static, package] |
The natively implemented method to get the name of an MSG host.
host | The host (valid) to get the name. |
static final native int simgrid::msg::MsgNative::hostGetCount | ( | ) | [static, package] |
The natively implemented method to get the number of hosts of the simulation.
static final native Host simgrid::msg::MsgNative::hostSelf | ( | ) | [static, package] |
The natively implemented method to get the host of the current runing process.
static final native double simgrid::msg::MsgNative::hostGetSpeed | ( | Host | host | ) | [static, package] |
The natively implemented method to get the speed of a MSG host.
host | The host to get the host. |
static final native boolean simgrid::msg::MsgNative::hostIsAvail | ( | Host | host | ) | [static, package] |
The natively implemented native method to test if an host is avail.
host | The host to test. |
static final native Host [] simgrid::msg::MsgNative::allHosts | ( | ) | [static, package] |
The natively implemented native method to get all the hosts of the simulation.
static final native int simgrid::msg::MsgNative::hostGetLoad | ( | Host | host | ) | [static, package] |
The natively implemented native method to get the number of running tasks on a host.
The | host concerned by the operation. |
static final native void simgrid::msg::MsgNative::taskCreate | ( | Task | task, | |
String | name, | |||
double | computeDuration, | |||
double | messageSize | |||
) | throws IllegalArgumentException [static, package] |
The natively implemented method to create a MSG task.
name | The name of th task. | |
computeDuration | A value of the processing amount (in flop) needed to process the task. If 0, then it cannot be executed with the execute() method. This value has to be >= 0. | |
messageSize | A value of amount of data (in bytes) needed to transfert this task. If 0, then it cannot be transfered this task. If 0, then it cannot be transfered with the get() and put() methods. This value has to be >= 0. | |
task | The java task object to bind with the native task to create. |
IllegalArgumentException | if compute duration <0 or message size <0 |
The natively implemented method to get the sender of a task.
task | The task (valid) to get the sender. |
The natively implementd method to get the source of a task.
task | The task to get the source. |
static final native String simgrid::msg::MsgNative::taskGetName | ( | Task | task | ) | [static, package] |
The natively implemented method to get the name of the task.
task | The task to get the name. |
static final native void simgrid::msg::MsgNative::taskCancel | ( | Task | task | ) | [static, package] |
The natively implemented method to cancel a task.
task | The task to cancel. |
static final native void simgrid::msg::MsgNative::parallelTaskCreate | ( | Task | pTask, | |
String | name, | |||
Host[] | hosts, | |||
double[] | computeDurations, | |||
double[] | messageSizes | |||
) | throws NullPointerException, IllegalArgumentException [static, package] |
The natively implemented method to create a MSG parallel task.
name | The name of the parallel task. | |
hosts | The list of hosts implied by the parallel task. | |
computeDurations | The total number of operations that have to be performed on the hosts. | |
messageSizes | An array of doubles |
static final native double simgrid::msg::MsgNative::taskGetComputeDuration | ( | Task | task | ) | [static, package] |
The natively implemented method to get the computing amount of the task.
task | The task to get the computing amount. |
static final native double simgrid::msg::MsgNative::taskGetRemainingDuration | ( | Task | task | ) | [static, package] |
The natively implemented method to get the remaining computation
task | The task to get the remaining computation. |
static final native void simgrid::msg::MsgNative::taskSetPriority | ( | Task | task, | |
double | priority | |||
) | [static, package] |
The natively implemented method to set the priority of a task.
task | The task to set the priority | |
priority | The new priority of the specified task. |
static final native void simgrid::msg::MsgNative::taskDestroy | ( | Task | task | ) | [static, package] |
The natively implemented method to destroy a MSG task.
The | task to destroy. |
static final native void simgrid::msg::MsgNative::taskExecute | ( | Task | task | ) | throws HostFailureException,TaskCancelledException [static, package] |
The natively implemented method to execute a MSG task.
task | The task to execute. |
HostFailureException,TaskCancelledException | on error in the C world |
static final native void simgrid::msg::MsgNative::taskSendBounded | ( | String | alias, | |
Task | task, | |||
double | maxrate | |||
) | throws TransferFailureException,HostFailureException,TimeoutException [static, package] |
The natively implemented method to send a task in a mailbox associated with an alias, with a bounded transmition rate.
alias | The alias of the mailbox. | |
task | The task to put. | |
max_rate | The bounded transmition rate. |
NativeException | on error in the C world |
Back to the main Simgrid Documentation page |
Generated for SimGridAPI by
![]() |