edu.columbia.irt.mobiledyswis
Class PGPing
java.lang.Object
edu.columbia.irt.mobiledyswis.PGPing
- All Implemented Interfaces:
- java.lang.Runnable
public class PGPing
- extends java.lang.Object
- implements java.lang.Runnable
Ping testing module class
- Author:
- Jin Hyung Park (jp2150)
Constructor Summary |
PGPing(java.lang.String uniqueId,
WebView appView)
|
Method Summary |
java.lang.String |
getId()
Getter for PGPing's Unique ID |
void |
onMessage(java.lang.String msg)
|
void |
run()
|
void |
send(java.lang.String hostName)
PING send function |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PGPing
public PGPing(java.lang.String uniqueId,
WebView appView)
getId
public java.lang.String getId()
- Getter for PGPing's Unique ID
- Returns:
- This PGPing's unique ID
onMessage
public final void onMessage(java.lang.String msg)
send
public void send(java.lang.String hostName)
- PING send function
- Parameters:
hostName
- The hostname to check the ping
run
public void run()
- Specified by:
run
in interface java.lang.Runnable