org.gridbus.broker.farming.common.services
Class Service

java.lang.Object
  extended by org.gridbus.broker.farming.common.services.Service
Direct Known Subclasses:
MarketService, NetworkStatusService, ReplicaCatalog, SrbMCAT

public abstract class Service
extends java.lang.Object

Author:
krishna The abstract class Service defines a template for Services which are available on the grid. Such as application services, information services (catalogs, directories etc...)

Field Summary
static int MARKET
           
static int NETWORK
           
static int PERSISTENCE
           
static int REPLICA_CATALOG
           
static int SRB_MCAT
           
 
Constructor Summary
Service()
           
 
Method Summary
 float getCost()
           
 int getType()
           
 java.lang.String getUrl()
           
 UserCredential getUserCredential()
           
 void setCost(float cost)
           
 void setType(int type)
           
 void setUrl(java.lang.String url)
           
 void setUserCredential(UserCredential userCredential)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKET

public static final int MARKET
See Also:
Constant Field Values

REPLICA_CATALOG

public static final int REPLICA_CATALOG
See Also:
Constant Field Values

SRB_MCAT

public static final int SRB_MCAT
See Also:
Constant Field Values

PERSISTENCE

public static final int PERSISTENCE
See Also:
Constant Field Values

NETWORK

public static final int NETWORK
See Also:
Constant Field Values
Constructor Detail

Service

public Service()
Method Detail

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getUrl

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

setUrl

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

getCost

public float getCost()
Returns:
Returns the cost.

setCost

public void setCost(float cost)
Parameters:
cost - The cost to set.

getUserCredential

public UserCredential getUserCredential()
Returns:
Returns the userCredential.

setUserCredential

public void setUserCredential(UserCredential userCredential)
Parameters:
userCredential - The userCredential to set.