Interface WsDiscoveryClient
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.soap.interception.Interceptor
public interface WsDiscoveryClient implements Interceptor
WS-Discovery Client interface.
-
-
Method Summary
Modifier and Type Method Description abstract ListenableFuture<ProbeMatchesType>sendDirectedProbe(RequestResponseClient rrClient, List<QName> types, List<String> scopes, @Nullable() MatchBy matchBy)Sends a directed probe to a device. abstract ListenableFuture<Integer>sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, @Nullable() MatchBy matchBy)Sends a probe message using the given parameters. abstract ListenableFuture<Integer>sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, @Nullable() MatchBy matchBy, Integer maxResults)Sends a probe message using the given parameters with a limited number of results until future finishes. abstract ListenableFuture<ResolveMatchesType>sendResolve(EndpointReferenceType epr)Sends a resolve message for a given endpoint reference. abstract voidregisterHelloByeAndProbeMatchesObserver(HelloByeAndProbeMatchesObserver observer)Register an observer to handle Hello, Bye and ProbeMatches messages. abstract voidunregisterHelloByeAndProbeMatchesObserver(HelloByeAndProbeMatchesObserver observer)Unregister an observer handling Hello, Bye and ProbeMatches messages. -
-
Method Detail
-
sendDirectedProbe
abstract ListenableFuture<ProbeMatchesType> sendDirectedProbe(RequestResponseClient rrClient, List<QName> types, List<String> scopes, @Nullable() MatchBy matchBy)
Sends a directed probe to a device.
- Parameters:
rrClient- to send request ontypes- to probe forscopes- to probe formatchBy- the scopes matching rule, or null to use the defaulthttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/rfc3986.- Returns:
future providing probe matches response
-
sendProbe
abstract ListenableFuture<Integer> sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, @Nullable() MatchBy matchBy)
Sends a probe message using the given parameters.
ProbeMatches messages are handled by the observers.
- Parameters:
probeId- of the probetypes- to probe forscopes- to probe formatchBy- the scopes matching rule, or null to use the defaulthttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/rfc3986.- Returns:
Future containing the number of matches within the given timeout.
-
sendProbe
abstract ListenableFuture<Integer> sendProbe(String probeId, Collection<QName> types, Collection<String> scopes, @Nullable() MatchBy matchBy, Integer maxResults)
Sends a probe message using the given parameters with a limited number of results until future finishes.
ProbeMatches messages are handled by the observers.
- Parameters:
probeId- of the probetypes- to probe forscopes- to probe formatchBy- the scopes matching rule, or null to use the defaulthttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/rfc3986.maxResults- number of results to wait for at most- Returns:
Future containing the number of matches within the given timeout.
-
sendResolve
abstract ListenableFuture<ResolveMatchesType> sendResolve(EndpointReferenceType epr)
Sends a resolve message for a given endpoint reference.
- Parameters:
epr- to resolve for- Returns:
future providing resolve matches response
-
registerHelloByeAndProbeMatchesObserver
abstract void registerHelloByeAndProbeMatchesObserver(HelloByeAndProbeMatchesObserver observer)
Register an observer to handle Hello, Bye and ProbeMatches messages.
- Parameters:
observer- to listen on
-
unregisterHelloByeAndProbeMatchesObserver
abstract void unregisterHelloByeAndProbeMatchesObserver(HelloByeAndProbeMatchesObserver observer)
Unregister an observer handling Hello, Bye and ProbeMatches messages.
- Parameters:
observer- to unregister
-
-
-
-