org.gridbus.broker.services.info
Class SrbMCAT

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

public class SrbMCAT
extends InformationService

Author:
krishna

Constructor Summary
SrbMCAT()
          Default Constructor
 
Method Summary
protected  boolean discoverProperties(UserCredential uc)
          Discover properties should be implemented by all subclasses.
 java.lang.String getAuthScheme()
           
 java.lang.String getDefaultResource()
           
 java.lang.String getHomeDirectory()
           
 int getInformationServiceType()
           
 java.lang.String getMdasDomain()
           
 java.lang.String getServerDN()
           
 java.lang.String getSrbHost()
           
 int getSrbPort()
           
 java.util.Collection queryDataFiles(java.lang.String filter, UserCredential uc)
          Queries the MCAT and returns a list of DataFile objects
 java.util.Collection queryDataHosts(UserCredential uc, DataFile df)
          Queries the MCAT and returns a map of DataHost objects
 void setAuthScheme(java.lang.String authScheme)
           
 void setDefaultResource(java.lang.String defaultResource)
           
 void setHomeDirectory(java.lang.String homeDirectory)
           
 void setMdasDomain(java.lang.String domain)
           
 void setServerDN(java.lang.String serverDN)
           
 void setSrbHost(java.lang.String srbHost)
           
 void setSrbPort(int srbPort)
           
 
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

SrbMCAT

public SrbMCAT()
Default Constructor

Method Detail

getDefaultResource

public java.lang.String getDefaultResource()
Returns:
Returns the defaultResource.

setDefaultResource

public void setDefaultResource(java.lang.String defaultResource)
Parameters:
defaultResource - The defaultResource to set.

getHomeDirectory

public java.lang.String getHomeDirectory()
Returns:
Returns the homeDirectory.

setHomeDirectory

public void setHomeDirectory(java.lang.String homeDirectory)
Parameters:
homeDirectory - The homeDirectory to set.

getMdasDomain

public java.lang.String getMdasDomain()
Returns:
Returns the mDASDomain.

setMdasDomain

public void setMdasDomain(java.lang.String domain)
Parameters:
domain - The mDASDomain to set.

getSrbHost

public java.lang.String getSrbHost()
Returns:
Returns the srbHost.

setSrbHost

public void setSrbHost(java.lang.String srbHost)
Parameters:
srbHost - The srbHost to set.

getSrbPort

public int getSrbPort()
Returns:
Returns the srbPort.

setSrbPort

public void setSrbPort(int srbPort)
Parameters:
srbPort - The srbPort 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()

getAuthScheme

public java.lang.String getAuthScheme()
Returns:
Returns the authScheme.

setAuthScheme

public void setAuthScheme(java.lang.String authScheme)
Parameters:
authScheme - The authScheme to set.

queryDataFiles

public java.util.Collection queryDataFiles(java.lang.String filter,
                                           UserCredential uc)
                                    throws java.lang.Exception
Queries the MCAT and returns a list of DataFile objects

Parameters:
filter -
uc -
Returns:
Throws:
java.lang.Exception

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

queryDataHosts

public java.util.Collection queryDataHosts(UserCredential uc,
                                           DataFile df)
                                    throws java.lang.Exception
Queries the MCAT and returns a map of DataHost objects

Parameters:
uc -
df -
Returns:
Throws:
java.lang.Exception

getServerDN

public java.lang.String getServerDN()
Returns:
Returns the serverDN.

setServerDN

public void setServerDN(java.lang.String serverDN)
Parameters:
serverDN - The serverDN to set.

Copyright © The University of Melbourne. 2006