org.gridbus.broker.services.data
Class GridFTPDataHost

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

Constructor Summary
GridFTPDataHost(java.lang.String hostname)
           
 
Method Summary
 java.lang.Object clone()
           
protected  boolean discoverProperties(UserCredential uc)
          Discover properties should be implemented by all subclasses.
 int getDataHostType()
           
 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
 int getPort()
           
 void setPort(int port)
           
 
Methods inherited from class org.gridbus.broker.common.DataHost
addFilePath, clearFilePaths, equals, getDataAccessMode, getFileTable, getHostname, getServiceType, isFilePresent, setDataAccessMode
 
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
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridFTPDataHost

public GridFTPDataHost(java.lang.String hostname)
Parameters:
hostname -
Method Detail

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

Copyright © The University of Melbourne. 2006