org.gridbus.broker.services.info
Class ReplicaCatalog

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

public class ReplicaCatalog
extends InformationService

Author:
krishna Represents a replica catalog

Constructor Summary
ReplicaCatalog()
          Default constructor
 
Method Summary
protected  boolean discoverProperties(UserCredential uc)
          Discover properties should be implemented by all subclasses.
 int getInformationServiceType()
           
 java.lang.String getReplicaHost()
           
 java.lang.String getReplicaTop()
           
 java.util.Collection queryDataFiles(java.lang.String filter, UserCredential uc)
           
 java.util.Collection queryDataHosts(UserCredential uc, DataFile df)
           
 void setReplicaHost(java.lang.String replicaHost)
           
 void setReplicaTop(java.lang.String replicaTop)
           
 
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

ReplicaCatalog

public ReplicaCatalog()
Default constructor

Method Detail

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

Copyright © The University of Melbourne. 2006