# Uses of Class
com.sas.services.discovery.ServiceTemplate

Packages that use ServiceTemplate
Package
Description
com.sas.services.deployment
This subsystem provides utilities to deploy and lookup SAS Foundation Services.
com.sas.services.discovery
Discover a service based upon its service capabilities and optionally service attributes.

- ## Uses of ServiceTemplate in com.sas.services.deployment

  Methods in com.sas.services.deployment with parameters of type ServiceTemplate
  Modifier and Type
  Method
  Description
  `static final RemoteServiceInterface`
  PlatformServices.`findService(ServiceTemplate serviceTemplate)`
  Finds a service satisfying the specified service template.
  `static final Services`
  PlatformServices.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services services)`
  Finds all services satisfying the specified service template up to the specified maximum.

- ## Uses of ServiceTemplate in com.sas.services.discovery

  Methods in com.sas.services.discovery that return ServiceTemplate
  Modifier and Type
  Method
  Description
  `final ServiceTemplate`
  ServiceNotAvailableException.`getServiceTemplate()`
  Gets the service capabilities that were sought, but not available.
  Methods in com.sas.services.discovery with parameters of type ServiceTemplate
  Modifier and Type
  Method
  Description
  `RemoteServiceInterface`
  AbstractDiscoveryService.`findService(ServiceTemplate serviceTemplate)`
  Finds a service using a discovery mechanism.
  `RemoteServiceInterface`
  ActivatableDiscoveryService.`findService(ServiceTemplate serviceTemplate)`
  Finds a service using a discovery mechanism.
  `RemoteServiceInterface`
  FindServiceInterface.`findService(ServiceTemplate serviceTemplate)`
  Finds a service using a discovery mechanism.
  `RemoteServiceInterface`
  RegistryDiscoveryService.`findService(ServiceTemplate serviceTemplate)`
  Finds a service using a discovery mechanism.
  `final RemoteServiceInterface`
  RemoteDiscoveryServiceProxy.`findService(ServiceTemplate serviceTemplate)`
  Finds a service using a discovery mechanism.
  `abstract Services`
  AbstractDiscoveryService.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services discoveredServices)`
  Finds a collection of services via a discovery mechanism.
  `Services`
  ActivatableDiscoveryService.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services discoveredServices)`
  Finds a collection of objects via a discovery mechanism.
  `final Services`
  DiscoveryService.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services discoveredServices)`
  Finds a collection of objects via a discovery mechanism.
  `final Services`
  DiscoveryService.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services discoveredServices, String serviceRequestId, int attemptNumber)`
  Finds a collection of objects via a discovery mechanism.
  `Services`
  FindServiceInterface.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services services)`
  Finds a collection of services via a discovery mechanism.
  `Services`
  RegistryDiscoveryService.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services services)`
  Finds a collection of services via a discovery mechanism.
  `final Services`
  RemoteDiscoveryServiceProxy.`findServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services discoveredServices)`
  Finds a collection of objects via a discovery mechanism.
  `final Services`
  ServicesCache.`getServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services services, boolean isLocal)`
  Gets a collection of services that satisfy the specified service capabilities.
  `static final boolean`
  DiscoveryService.`isOkToProcessRequest(String discoveryServiceId, ServiceTemplate serviceTemplate)`
  Determines whether or not it is OK to for the specified discovery service to process the requested service template.
  Constructors in com.sas.services.discovery with parameters of type ServiceTemplate
  Modifier
  Constructor
  Description
  ``
  `ServiceNotAvailableException(ServiceTemplate serviceTemplate)`
  Constructs an instance using the service template for which a service was not available.
  ``
  `ServiceNotAvailableException(ServiceTemplate serviceTemplate, Throwable throwable)`
  Constructs an instance by specifying a message and `Throwable`.
  ``
  `ServiceNotAvailableException(String message, ServiceTemplate serviceTemplate)`
  Constructs an instance using the specified message and service template for which a service was not available.
  ``
  `ServiceNotAvailableException(String message, Throwable throwable, ServiceTemplate serviceTemplate)`
  Constructs an instance by specifying a message, `Throwable`, and service template for which a service was not available.