org.gridbus.broker.services.data
Class GridFTPDataHost
java.lang.Object
org.gridbus.broker.common.Service
org.gridbus.broker.common.DataHost
org.gridbus.broker.services.data.GridFTPDataHost
public class GridFTPDataHost
- extends DataHost
This class represents a GridFTPDataHost and its attributes
- Version:
- 1.0, Mar 20, 2003
- Author:
- Srikumar Venugopal (srikumar@cs.mu.oz.au)
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridFTPDataHost
public GridFTPDataHost(java.lang.String hostname)
- Parameters:
hostname -
getPort
public int getPort()
- Returns:
- Returns the port.
setPort
public void setPort(int port)
- Parameters:
port - The port to set.
getDataHostType
public int getDataHostType()
- Specified by:
getDataHostType in class DataHost
- See Also:
org.gridbus.broker.farming.common.DataHost#getDataHostType()
getFullFilePath
public java.lang.String getFullFilePath(java.lang.String filename)
- Returns the full path of the file (including the filename) on this host specified by the filename
- Specified by:
getFullFilePath in class DataHost
- Parameters:
filename -
- Returns:
- string filename
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
clone
public java.lang.Object clone()
- Overrides:
clone in class java.lang.Object