|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.discovery.ServicesCache
public class ServicesCache
Cache used to store foundation services.
ServiceTemplate
,
Services
,
Serialized FormConstructor Summary | |
---|---|
ServicesCache()
|
Method Summary | |
---|---|
void |
add(RemoteServiceInterface service)
Adds a service to the the cache. |
void |
add(Services services)
Adds a collection of services to the cache. |
java.util.Iterator |
getLocalServices()
Gets an iterator of services that are available within the local JVM process. |
java.util.Iterator |
getRemoteServices()
Gets an iterator of remotely available services. |
Services |
getServices(ServiceTemplate serviceTemplate,
int maxNumMatches,
Services services,
boolean isLocal)
Gets a collection of services that satisfy the specified service capabilities. |
void |
remove(RemoteServiceInterface service)
Removes the service from the cache. |
Constructor Detail |
---|
public ServicesCache()
Method Detail |
---|
public final Services getServices(ServiceTemplate serviceTemplate, int maxNumMatches, Services services, boolean isLocal)
serviceTemplate
- Desired service capabilities.maxNumMatches
- Maximum number of services to find.services
- Collection of discovered services.isLocal
- Whether local true
or remote
false
services are desired.
public final void add(Services services)
services
- Collection of services.public final void add(RemoteServiceInterface service) throws ServiceException
If a proxy is defined for the service then the service's proxy will be cached instead of the service.
A service will be cached as a remote service if it is a remote object or if the service's proxy is a remote object.
service
- Service to be added to the cache.
ServiceException
- if unable to cache the service.public final void remove(RemoteServiceInterface service)
service
- The service to remove.public final java.util.Iterator getLocalServices()
RemoteServiceInterface
.public final java.util.Iterator getRemoteServices()
RemoteServiceInterface
.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |