Static Package Functions

simgrid::msg::MsgNative Class Reference

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

Detailed Description

Contains all the native methods related to Process, Host and Task.


Member Function Documentation

static final native void simgrid::msg::MsgNative::processCreate ( Process  process,
Host  host 
) [static, package]

The natively implemented method to create an MSG process.

Parameters:
process The java process object to bind with the MSG native process.
host A valid (binded) host where create the process.
See also:
Process constructors.
static final native int simgrid::msg::MsgNative::processKillAll ( int  resetPID  )  [static, package]

The natively implemented method to kill all the process of the simulation.

Parameters:
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.
Returns:
The function returns the PID of the next created process.
static final native void simgrid::msg::MsgNative::processSuspend ( Process  process  )  [static, package]

The natively implemented method to suspend an MSG process.

Parameters:
process The valid (binded with a native process) java process to suspend.
See also:
Process.pause()
static final native void simgrid::msg::MsgNative::processKill ( Process  process  )  [static, package]

The natively implemented method to kill a MSG process.

Parameters:
process The valid (binded with a native process) java process to kill.
See also:
Process.kill()
static final native void simgrid::msg::MsgNative::processResume ( Process  process  )  [static, package]

The natively implemented method to resume a suspended MSG process.

Parameters:
process The valid (binded with a native process) java process to resume.
See also:
Process.restart()
static final native boolean simgrid::msg::MsgNative::processIsSuspended ( Process  process  )  [static, package]

The natively implemented method to test if MSG process is suspended.

Parameters:
process The valid (binded with a native process) java process to test.
Returns:
If the process is suspended the method retuns true. Otherwise the method returns false.
See also:
Process.isSuspended()
static final native Host simgrid::msg::MsgNative::processGetHost ( Process  process  )  [static, package]

The natively implemented method to get the host of a MSG process.

Parameters:
process The valid (binded with a native process) java process to get the host.
Returns:
The method returns the host where the process is running.
Exceptions:
HostNotFoundException if the SimGrid native code failed (initialization error?).
See also:
Process.getHost()
static final native Process simgrid::msg::MsgNative::processFromPID ( int  PID  )  [static, package]

The natively implemented method to get a MSG process from his PID.

Parameters:
PID The PID of the process to get.
Returns:
The process with the specified PID.
See also:
Process.getFromPID()
static final native int simgrid::msg::MsgNative::processGetPID ( Process  process  )  [static, package]

The natively implemented method to get the PID of a MSG process.

Parameters:
process The valid (binded with a native process) java process to get the PID.
Returns:
The PID of the specified process.
See also:
Process.getPID()
static final native int simgrid::msg::MsgNative::processGetPPID ( Process  process  )  [static, package]

The natively implemented method to get the PPID of a MSG process.

Parameters:
process The valid (binded with a native process) java process to get the PID.
Returns:
The PPID of the specified process.
See also:
Process.getPPID()
static final native Process simgrid::msg::MsgNative::processSelf (  )  [static, package]

The natively implemented method to get the current running process.

Returns:
The current process.
See also:
Process.currentProcess()
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.

Parameters:
process The (valid) process to migrate.
host A (valid) host where move the process.
See also:
Process.migrate()
Host.getByName()
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.

Parameters:
seconds The time the current process must sleep.
Exceptions:
HostFailureException if the SimGrid native code failed.
See also:
Process.waitFor()
static final native void simgrid::msg::MsgNative::processExit ( Process  process  )  [static, package]

The natively implemented native method to exit a process.

See also:
Process.exit()
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.

Parameters:
name The name of the host to get.
Returns:
The host having the specified name.
Exceptions:
HostNotFoundException if there is no such host
See also:
Host.getByName()
static final native String simgrid::msg::MsgNative::hostGetName ( Host  host  )  [static, package]

The natively implemented method to get the name of an MSG host.

Parameters:
host The host (valid) to get the name.
Returns:
The name of the specified host.
See also:
Host.getName()
static final native int simgrid::msg::MsgNative::hostGetCount (  )  [static, package]

The natively implemented method to get the number of hosts of the simulation.

Returns:
The number of hosts of the simulation.
See also:
Host.getNumber()
static final native Host simgrid::msg::MsgNative::hostSelf (  )  [static, package]

The natively implemented method to get the host of the current runing process.

Returns:
The host of the current running process.
See also:
Host.currentHost()
static final native double simgrid::msg::MsgNative::hostGetSpeed ( Host  host  )  [static, package]

The natively implemented method to get the speed of a MSG host.

Parameters:
host The host to get the host.
Returns:
The speed of the specified host.
See also:
Host.getSpeed()
static final native boolean simgrid::msg::MsgNative::hostIsAvail ( Host  host  )  [static, package]

The natively implemented native method to test if an host is avail.

Parameters:
host The host to test.
Returns:
If the host is avail the method returns true. Otherwise the method returns false.
See also:
Host.isAvail()
static final native Host [] simgrid::msg::MsgNative::allHosts (  )  [static, package]

The natively implemented native method to get all the hosts of the simulation.

Returns:
A array which contains all the hosts of 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.

Parameters:
The host concerned by the operation.
Returns:
The number of running tasks.
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.

Parameters:
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.
Exceptions:
IllegalArgumentException if compute duration <0 or message size <0
See also:
Task.create()
static final native Process simgrid::msg::MsgNative::taskGetSender ( Task  task  )  [static, package]

The natively implemented method to get the sender of a task.

Parameters:
task The task (valid) to get the sender.
Returns:
The sender of the task.
See also:
Task.getSender()
static final native Host simgrid::msg::MsgNative::taskGetSource ( Task  task  )  [static, package]

The natively implementd method to get the source of a task.

Parameters:
task The task to get the source.
Returns:
The source of the task.
See also:
Task.getSource()
static final native String simgrid::msg::MsgNative::taskGetName ( Task  task  )  [static, package]

The natively implemented method to get the name of the task.

Parameters:
task The task to get the name.
Returns:
The name of the specified task.
See also:
Task.getName()
static final native void simgrid::msg::MsgNative::taskCancel ( Task  task  )  [static, package]

The natively implemented method to cancel a task.

Parameters:
task The task to cancel.
See also:
Task.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.

Parameters:
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
See also:
ParallelTask.create()
static final native double simgrid::msg::MsgNative::taskGetComputeDuration ( Task  task  )  [static, package]

The natively implemented method to get the computing amount of the task.

Parameters:
task The task to get the computing amount.
Returns:
The computing amount of the specified task.
See also:
Task.getComputeDuration()
static final native double simgrid::msg::MsgNative::taskGetRemainingDuration ( Task  task  )  [static, package]

The natively implemented method to get the remaining computation

Parameters:
task The task to get the remaining computation.
Returns:
The remaining computation of the specified task.
See also:
Task.getRemainingDuration()
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.

Parameters:
task The task to set the priority
priority The new priority of the specified task.
See also:
Task.setPriority()
static final native void simgrid::msg::MsgNative::taskDestroy ( Task  task  )  [static, package]

The natively implemented method to destroy a MSG task.

Parameters:
The task to destroy.
See also:
Task.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.

Parameters:
task The task to execute.
Exceptions:
HostFailureException,TaskCancelledException on error in the C world
See also:
Task.execute()
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.

Parameters:
alias The alias of the mailbox.
task The task to put.
max_rate The bounded transmition rate.
Exceptions:
NativeException on error in the C world

The documentation for this class was generated from the following file:


Back to the main Simgrid Documentation page Generated for SimGridAPI by doxygen