*** This interface provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.discovery
Interface DiscoveryAdminInterface
- All Superinterfaces:
Remote
- All Known Subinterfaces:
DiscoveryServiceInterface,LocalDiscoveryServiceInterface,RemoteDiscoveryServiceInterface
- All Known Implementing Classes:
ActivatableDiscoveryService,DiscoveryService,RemoteDiscoveryServiceProxy
@SASScope("ALL")
@BinaryCompatibilityOnly
public interface DiscoveryAdminInterface
extends Remote
Interfaces used to manage the addition/removal of services to/from
a discovery service and discovery delegates used to
locate services.
Discovery delegates must implement
com.sas.services.discovery.FindServiceInterface.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiscoveryDelegate(FindServiceInterface findServiceIf) Adds a discovery delegate that will be used to lookup services.voidaddService(RemoteServiceInterface service) Adds a service.Iterator<FindServiceInterface> Gets an iterator of the discovery delegates that are used to locate services.Iterator<RemoteServiceInterface> Gets an iterator of locally available services.Iterator<RemoteServiceInterface> Gets an iterator of remotely available services.voidremoveDiscoveryDelegate(FindServiceInterface findServiceIf) Removes a discovery delegate formerly used to locate services.voidremoveService(RemoteServiceInterface service) Removes a services.
-
Method Details
-
addDiscoveryDelegate
Adds a discovery delegate that will be used to lookup services.- Parameters:
findServiceIf- Discovery delegate to be used to lookup services.- Throws:
RemoteException- if a network anomaly is encountered.
-
removeDiscoveryDelegate
Removes a discovery delegate formerly used to locate services.- Parameters:
findServiceIf- Discovery delegate to remove.- Throws:
RemoteException- if a network anomaly is encountered.
-
getDiscoverers
Gets an iterator of the discovery delegates that are used to locate services.- Returns:
- Iterator of discovery delegates.
- Throws:
RemoteException- if a network anomaly is encountered.
-
addService
Adds a service.- Parameters:
service- Service that can be discovered via a service template comprised of its service types and optionally service attributes.- Throws:
ServiceException- if unable to cache the service.RemoteException- if a network anomaly is encountered.
-
removeService
Removes a services.- Parameters:
service- Service that is to be removed.- Throws:
RemoteException- if a network anomaly is encountered.
-
getLocalServices
Gets an iterator of locally available services.- Returns:
- Iterator of locally available services that
implement
RemoteServiceInterface. - Throws:
RemoteException- if a network anomaly is encountered.
-
getRemoteServices
Gets an iterator of remotely available services.- Returns:
- Iterator of remotely available services that
implement
RemoteServiceInterface. - Throws:
RemoteException- if a network anomaly is encountered.
-