org.gridbus.broker.services.application
Class ApplicationService

java.lang.Object
  extended by org.gridbus.broker.common.Service
      extended by org.gridbus.broker.services.application.ApplicationService

public class ApplicationService
extends Service

Author:
Krishna

Constructor Summary
ApplicationService()
           
 
Method Summary
protected  boolean discoverProperties(UserCredential uc)
          Discover properties should be implemented by all subclasses.
 java.util.Map getAccessPoints()
           
 java.lang.String getNamespace()
           
 java.lang.String getServiceName()
           
 int getServiceType()
           
 java.lang.String getUrl()
           
 int queryJobStatus(Job job)
           
 void setAccessPoints(java.util.Map accessPoints)
           
 void setNamespace(java.lang.String namespace)
           
 void setServiceName(java.lang.String serviceName)
           
 void setUrl(java.lang.String url)
           
 
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

ApplicationService

public ApplicationService()
Method Detail

getUrl

public java.lang.String getUrl()
Returns:
Returns the url.

setUrl

public void setUrl(java.lang.String url)
Parameters:
url - The url to set.

getServiceType

public int getServiceType()
Specified by:
getServiceType in class Service
Returns:
Returns the type of the service (One of the contants in ServiceType class).
See Also:
Service.getServiceType()

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

getNamespace

public java.lang.String getNamespace()
Returns:
Returns the namespace.

setNamespace

public void setNamespace(java.lang.String namespace)
Parameters:
namespace - The namespace to set.

queryJobStatus

public int queryJobStatus(Job job)
                   throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
ComputeServer.queryJobStatus(org.gridbus.broker.common.Job)

getServiceName

public java.lang.String getServiceName()
Returns:
service name

setServiceName

public void setServiceName(java.lang.String serviceName)
Parameters:
serviceName -

getAccessPoints

public java.util.Map getAccessPoints()
Returns:
the accessPoints

setAccessPoints

public void setAccessPoints(java.util.Map accessPoints)
Parameters:
accessPoints - the accessPoints to set

Copyright © The University of Melbourne. 2006