org.gridbus.broker.services.info
Class NetworkWeatherService
java.lang.Object
org.gridbus.broker.common.Service
org.gridbus.broker.common.InformationService
org.gridbus.broker.services.info.NetworkWeatherService
- All Implemented Interfaces:
- ServiceFinder
public class NetworkWeatherService
- extends InformationService
- Author:
- krishna
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkWeatherService
public NetworkWeatherService()
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)