|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
simnet.Application
simnet.Ping
An application which implements Ping.
| Field Summary | |
(package private) BPF |
bpf
|
| Fields inherited from class simnet.Application |
appid, appstart, frame, initialized, node, NODE_ID, pid, random, sim, win |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Ping()
|
|
| Method Summary | |
void |
inBPF(int bpf_id,
IP_Packet ip_packet)
So ping can get responses. |
void |
ping(int dest)
Pings the specified node. |
void |
ping(java.lang.Integer dest)
Pings the specified node. |
void |
ping(java.lang.String dest)
Pings the specified node. |
boolean |
prePlugout(java.lang.Object replacement)
Ping can be removed by getting rid of the bpf rule, or replaced by transferring the BPF rule. |
| Methods inherited from class simnet.Application |
closeWindow, customInit, finalize, getTitleString, initialize, plugoutNotification, printout, printout, processWindowCommand, rawOut, run, window |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
BPF bpf
| Constructor Detail |
public Ping()
| Method Detail |
public void ping(int dest)
dest - the ID of destination nodepublic void ping(java.lang.String dest)
dest - the ID of destination nodepublic void ping(java.lang.Integer dest)
dest - the ID of destination node
public void inBPF(int bpf_id,
IP_Packet ip_packet)
inBPF in interface BPFConsumerbpf_id - the ID of the BPF rule that the ip_packet matchedip_packet - incoming ip_packet from BPFpublic boolean prePlugout(java.lang.Object replacement)
prePlugout in interface Pluggable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||