org.gridbus.broker.services.info
Class ReplicaCatalog
java.lang.Object
org.gridbus.broker.common.Service
org.gridbus.broker.common.InformationService
org.gridbus.broker.services.info.ReplicaCatalog
- All Implemented Interfaces:
- ServiceFinder
public class ReplicaCatalog
- extends InformationService
- Author:
- krishna
Represents a replica catalog
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicaCatalog
public ReplicaCatalog()
- Default constructor
getReplicaHost
public java.lang.String getReplicaHost()
- Returns:
- Returns the replicaHost.
setReplicaHost
public void setReplicaHost(java.lang.String replicaHost)
- Parameters:
replicaHost - The replicaHost to set.
getReplicaTop
public java.lang.String getReplicaTop()
- Returns:
- Returns the replicaTop.
setReplicaTop
public void setReplicaTop(java.lang.String replicaTop)
- Parameters:
replicaTop - The replicaTop to set.
getInformationServiceType
public int getInformationServiceType()
- Specified by:
getInformationServiceType in class InformationService
- Returns:
- information service type
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
queryDataFiles
public java.util.Collection queryDataFiles(java.lang.String filter,
UserCredential uc)
throws java.lang.Exception
- Throws:
java.lang.Exception
queryDataHosts
public java.util.Collection queryDataHosts(UserCredential uc,
DataFile df)
throws java.lang.Exception
- Throws:
java.lang.Exception