org.gridbus.broker.nws
Class NwsExtract

java.lang.Object
  extended by org.gridbus.broker.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)

Constructor Summary
NwsExtract()
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NwsExtract

public NwsExtract()
Method Detail

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