org.gridbus.broker.services.info
Class SrbMCAT
java.lang.Object
org.gridbus.broker.common.Service
org.gridbus.broker.common.InformationService
org.gridbus.broker.services.info.SrbMCAT
- All Implemented Interfaces:
- ServiceFinder
public class SrbMCAT
- extends InformationService
- Author:
- krishna
|
Constructor Summary |
SrbMCAT()
Default Constructor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SrbMCAT
public SrbMCAT()
- Default Constructor
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.