|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.tomp2p.simgrid.SimGridTomP2P
public class SimGridTomP2P
This the bridge for TomP2P to SimGrid. To make it start, one has to call:
SimGridTomP2P.checkArgs(args); SimGridTomP2P.setSimulation(new Simulation(...)); SimGridTomP2P.main(args);
| Constructor Summary | |
|---|---|
SimGridTomP2P()
|
|
| Method Summary | |
|---|---|
static void |
addQueue(net.tomp2p.peers.Number160 senderID,
SendingMessage sendingMessage)
|
static void |
checkArgs(java.lang.String[] args)
|
static net.tomp2p.peers.PeerAddress |
createPeer(java.lang.String peerID)
Sometimes we need to create a PeerAddress. |
static net.tomp2p.futures.FutureResponse |
getAndRemoveFuture(net.tomp2p.message.MessageID messageID)
|
static net.tomp2p.p2p.Peer |
getPeer(net.tomp2p.peers.Number160 peerID)
Returns the static peers created here. |
static SendingMessage |
getPendingMessag(net.tomp2p.peers.Number160 senderID)
|
static Simulation |
getSimulation()
|
static void |
main(java.lang.String[] args)
Initialize the simulation. |
static void |
notify(net.tomp2p.peers.Number160 host)
|
static void |
send(java.lang.String type,
net.tomp2p.message.Message message,
net.tomp2p.futures.FutureResponse futureResponse)
SimGrid style of sending a message |
static void |
setSimulation(Simulation simulation2)
|
static void |
wait(net.tomp2p.peers.Number160 host,
org.simgrid.msg.Process process)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimGridTomP2P()
| Method Detail |
|---|
public static net.tomp2p.p2p.Peer getPeer(net.tomp2p.peers.Number160 peerID)
peerID - The peerID
public static net.tomp2p.peers.PeerAddress createPeer(java.lang.String peerID)
peerID - The peerID
public static void send(java.lang.String type,
net.tomp2p.message.Message message,
net.tomp2p.futures.FutureResponse futureResponse)
throws org.simgrid.msg.NativeException,
org.simgrid.msg.TransferFailureException,
org.simgrid.msg.HostFailureException,
org.simgrid.msg.TimeoutException
type - The message typemessage - The TomP2P messagefutureResponse -
org.simgrid.msg.NativeException
org.simgrid.msg.TimeoutException
org.simgrid.msg.HostFailureException
org.simgrid.msg.TransferFailureExceptionpublic static net.tomp2p.futures.FutureResponse getAndRemoveFuture(net.tomp2p.message.MessageID messageID)
public static void addQueue(net.tomp2p.peers.Number160 senderID,
SendingMessage sendingMessage)
public static SendingMessage getPendingMessag(net.tomp2p.peers.Number160 senderID)
throws java.lang.InterruptedException
java.lang.InterruptedException
public static void wait(net.tomp2p.peers.Number160 host,
org.simgrid.msg.Process process)
public static void notify(net.tomp2p.peers.Number160 host)
public static void setSimulation(Simulation simulation2)
public static Simulation getSimulation()
public static void checkArgs(java.lang.String[] args)
public static void main(java.lang.String[] args)
throws java.io.IOException
args - Two arguments are required: the platform file and the deployment file
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||