org.glite.rgma.discovery
Class ServiceDetailsImpl

java.lang.Object
  extended by org.glite.rgma.discovery.ServiceImpl
      extended by org.glite.rgma.discovery.ServiceDetailsImpl
All Implemented Interfaces:
org.glite.discovery.Service, org.glite.discovery.ServiceDetails

public class ServiceDetailsImpl
extends ServiceImpl
implements org.glite.discovery.ServiceDetails

A detailed description of a Service, including information about VOs, service data and associated services.


Constructor Summary
ServiceDetailsImpl()
          Creates an empty ServiceDetails object.
ServiceDetailsImpl(org.glite.discovery.Service service)
          Creates a new ServiceDetails object based on the given Service.
ServiceDetailsImpl(org.glite.discovery.Service service, java.lang.String site, java.lang.String administration, java.lang.String[] vo, java.lang.String wsdl, org.glite.discovery.Service[] associatedServices, org.glite.discovery.ServiceData[] data)
          Creates a new ServiceDetails object with the given service, site, administration, VOs, WSDL, associated services and service data.
ServiceDetailsImpl(java.lang.String name, java.lang.String type, java.lang.String endpoint, java.lang.String version, java.lang.String site, java.lang.String administration, java.lang.String[] vo, java.lang.String wsdl, org.glite.discovery.Service[] associatedServices, org.glite.discovery.ServiceData[] data)
          Creates a new ServiceDetails object with the given name, type, endpoint, version, status, site, administration, VOs, WSDL, associated services and service data.
 
Method Summary
 java.lang.String getAdministration()
          Gets the admin contact for the service.
 org.glite.discovery.Service[] getAssociatedServices()
          Gets the associated services for the service.
 org.glite.discovery.ServiceData[] getData()
          Gets the service data (key/value pairs) for the service.
 java.lang.String getSite()
          Gets the site where the service is deployed.
 java.lang.String[] getVOs()
          Gets the list of VOs under which the service operates.
 java.lang.String getWSDL()
          Gets the URL for the WSDL of the service.
 void setAdministration(java.lang.String administration)
          Sets the admin contact for the service.
 void setAssociatedServices(org.glite.discovery.Service[] associatedServices)
          Sets the associated services for the service.
 void setData(org.glite.discovery.ServiceData[] data)
          Sets the service data (key/value pairs) for the service.
 void setSite(java.lang.String site)
          Sets the site where the service is deployed.
 void setVOs(java.lang.String[] vos)
          Sets the list of VOs under which the service operates.
 void setWSDL(java.lang.String wsdl)
          Sets the URL for the WSDL of the service.
 java.lang.String toString()
          Returns a string representation of this ServiceDetails object.
 
Methods inherited from class org.glite.rgma.discovery.ServiceImpl
getEndpoint, getName, getStatus, getStatusMessage, getType, getVersion, setEndpoint, setName, setStatus, setStatusMessage, setType, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glite.discovery.Service
getEndpoint, getName, getStatus, getStatusMessage, getType, getVersion
 

Constructor Detail

ServiceDetailsImpl

public ServiceDetailsImpl()
Creates an empty ServiceDetails object.


ServiceDetailsImpl

public ServiceDetailsImpl(java.lang.String name,
                          java.lang.String type,
                          java.lang.String endpoint,
                          java.lang.String version,
                          java.lang.String site,
                          java.lang.String administration,
                          java.lang.String[] vo,
                          java.lang.String wsdl,
                          org.glite.discovery.Service[] associatedServices,
                          org.glite.discovery.ServiceData[] data)
Creates a new ServiceDetails object with the given name, type, endpoint, version, status, site, administration, VOs, WSDL, associated services and service data.

Parameters:
name - The unique service ID.
type - The service type.
endpoint - The service endpoint.
version - A string identifying the version of the current service.
status - The status code for this service (0 is 'available').
statusMessage - The service's status.
site - The site hosting the service.
administration - A string giving contact information for admin purposes.
vo - The list of VOs the service is serving.
wsdl - A URL to the service WSDL.
associatedServices - A list of associated services.
data - A list of parameters describing the service.

ServiceDetailsImpl

public ServiceDetailsImpl(org.glite.discovery.Service service)
Creates a new ServiceDetails object based on the given Service.

Parameters:
service - A Service object.

ServiceDetailsImpl

public ServiceDetailsImpl(org.glite.discovery.Service service,
                          java.lang.String site,
                          java.lang.String administration,
                          java.lang.String[] vo,
                          java.lang.String wsdl,
                          org.glite.discovery.Service[] associatedServices,
                          org.glite.discovery.ServiceData[] data)
Creates a new ServiceDetails object with the given service, site, administration, VOs, WSDL, associated services and service data.

Parameters:
service - A Service object.
site - The site hosting the service.
administration - A string giving contact information for admin purposes.
vo - The list of VOs the service is serving.
wsdl - A URL to the service WSDL.
associatedServices - A list of associated services.
data - A list of parameters describing the service.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this ServiceDetails object.

Overrides:
toString in class ServiceImpl
Returns:
A String.

getAdministration

public java.lang.String getAdministration()
Gets the admin contact for the service.

Specified by:
getAdministration in interface org.glite.discovery.ServiceDetails
Returns:
The admin contact for the service.

setAdministration

public void setAdministration(java.lang.String administration)
Sets the admin contact for the service.

Parameters:
administration - The admin contact for the service.

getAssociatedServices

public org.glite.discovery.Service[] getAssociatedServices()
Gets the associated services for the service.

Specified by:
getAssociatedServices in interface org.glite.discovery.ServiceDetails
Returns:
An array of Service objects.

setAssociatedServices

public void setAssociatedServices(org.glite.discovery.Service[] associatedServices)
Sets the associated services for the service.

Parameters:
associatedServices - An array of Service objects.

getData

public org.glite.discovery.ServiceData[] getData()
Gets the service data (key/value pairs) for the service.

Specified by:
getData in interface org.glite.discovery.ServiceDetails
Returns:
An array of ServiceData objects.

setData

public void setData(org.glite.discovery.ServiceData[] data)
Sets the service data (key/value pairs) for the service.

Parameters:
data - An array of ServiceData objects.

getSite

public java.lang.String getSite()
Gets the site where the service is deployed.

Specified by:
getSite in interface org.glite.discovery.ServiceDetails
Returns:
Name of the deployment site.

setSite

public void setSite(java.lang.String site)
Sets the site where the service is deployed.

Parameters:
site - Name of the deployment site.

getVOs

public java.lang.String[] getVOs()
Gets the list of VOs under which the service operates.

Specified by:
getVOs in interface org.glite.discovery.ServiceDetails
Returns:
An array of VO names.

setVOs

public void setVOs(java.lang.String[] vos)
Sets the list of VOs under which the service operates.

Parameters:
vos - An array of VO names.

getWSDL

public java.lang.String getWSDL()
Gets the URL for the WSDL of the service.

Specified by:
getWSDL in interface org.glite.discovery.ServiceDetails
Returns:
URL pointing to the WSDL.

setWSDL

public void setWSDL(java.lang.String wsdl)
Sets the URL for the WSDL of the service.

Parameters:
wsdl - URL pointing to the WSDL.