org.gridbus.broker.services.info
Class NetworkWeatherService

java.lang.Object
  extended by org.gridbus.broker.common.Service
      extended by org.gridbus.broker.common.InformationService
          extended by org.gridbus.broker.services.info.NetworkWeatherService
All Implemented Interfaces:
ServiceFinder

public class NetworkWeatherService
extends InformationService

Author:
krishna

Constructor Summary
NetworkWeatherService()
           
 
Method Summary
protected  boolean discoverProperties(UserCredential uc)
          Discover properties should be implemented by all subclasses.
static NetworkLink getDefaultLink(java.lang.String dataHostname, java.lang.String serverHostname)
           
 int getInformationServiceType()
           
 java.lang.String getNameServer()
           
 java.lang.String getPort()
           
 NetworkLink queryLink(java.lang.String dataHostname, java.lang.String serverHostname)
          Queries the link between the given hosts and returns a NetworkLink object
 void setNameServer(java.lang.String nameServer)
           
 void setPort(java.lang.String port)
           
 
Methods inherited from class org.gridbus.broker.common.InformationService
findServices, getServiceType
 
Methods inherited from class org.gridbus.broker.common.Service
getApplicationID, getId, getMappingID, getName, isAvailable, setApplicationID, setAvailable, setMappingID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkWeatherService

public NetworkWeatherService()
Method Detail

getNameServer

public java.lang.String getNameServer()
Returns:
Returns the nameServer.

setNameServer

public void setNameServer(java.lang.String nameServer)
Parameters:
nameServer - The nameServer to set.

getPort

public java.lang.String getPort()
Returns:

setPort

public void setPort(java.lang.String port)
Parameters:
port - The port to set.

getInformationServiceType

public int getInformationServiceType()
Specified by:
getInformationServiceType in class InformationService
Returns:
Returns the informationServiceType.
See Also:
org.gridbus.broker.services.common.InformationService#getInformationServiceType()

discoverProperties

protected boolean discoverProperties(UserCredential uc)
                              throws GridBrokerException
Description copied from class: Service
Discover properties should be implemented by all subclasses. At the very least, this should inform the caller about the availability of the (remote) service, and also set the "available" field of the service object.

Specified by:
discoverProperties in class Service
Parameters:
uc - (credentials used to connect to the service, if any)
Returns:
true if the service is available, false otherwise.
Throws:
GridBrokerException

queryLink

public NetworkLink queryLink(java.lang.String dataHostname,
                             java.lang.String serverHostname)
Queries the link between the given hosts and returns a NetworkLink object

Parameters:
dataHostname -
serverHostname -
Returns:

getDefaultLink

public static NetworkLink getDefaultLink(java.lang.String dataHostname,
                                         java.lang.String serverHostname)

Copyright © The University of Melbourne. 2006