org.gridbus.broker.util.nws
Class NwsExtract
java.lang.Object
org.gridbus.broker.util.nws.NwsExtract
public class NwsExtract
- extends java.lang.Object
This class contains methods to access the network weather service
- Author:
- Ding Choon Hoong (chd@students.cs.mu.oz.au)
|
Method Summary |
NwsResult |
executeCommand(java.lang.String type,
java.lang.String nameserver,
java.lang.String nameserverPort,
java.lang.String source,
java.lang.String destination)
Executes a command against the Network weather service and returns a
NwsResult |
NwsResult |
extractValue()
The result from the NWS command is parsed as returned as a NwsResult
object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NwsExtract
public NwsExtract()
executeCommand
public NwsResult executeCommand(java.lang.String type,
java.lang.String nameserver,
java.lang.String nameserverPort,
java.lang.String source,
java.lang.String destination)
throws java.lang.Exception
- Executes a command against the Network weather service and returns a
NwsResult
- Parameters:
type - nameserver - nameserverPort - source - destination -
- Returns:
- NwsResult
- Throws:
java.lang.Exception
extractValue
public NwsResult extractValue()
throws java.lang.Exception
- The result from the NWS command is parsed as returned as a NwsResult
object
- Returns:
- NwsResult
- Throws:
java.lang.Exception