Package org.sblim.cimclient.discovery
Class DiscovererFactory
java.lang.Object
org.sblim.cimclient.discovery.DiscovererFactory
public class DiscovererFactory
extends java.lang.Object
Class DiscovererFactory is responsible for creating concrete instances of the
Discoverer interface.
- Since:
- 2.0.2
- Threading considerations:
- This class is thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final java.lang.String
The Service Location Protocol (SLP) -
Method Summary
Modifier and TypeMethodDescriptionstatic Discoverer
getDiscoverer
(java.lang.String pProtocol) Returns the concrete Discoverer for a given discovery protocol.static java.lang.String[]
Return an array of all supported discovery protocolsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SLP
public static final java.lang.String SLPThe Service Location Protocol (SLP)- See Also:
-
-
Method Details
-
getDiscoverer
public static Discoverer getDiscoverer(java.lang.String pProtocol) throws java.lang.IllegalArgumentException Returns the concrete Discoverer for a given discovery protocol.- Parameters:
pProtocol
- The discovery protocol, e.g. "SLP"- Returns:
- The corresponding discoverer
- Throws:
java.lang.IllegalArgumentException
- On unsupported protocols- Related patterns or idioms:
- Factory Method
-
getSupportedProtocols
public static java.lang.String[] getSupportedProtocols()Return an array of all supported discovery protocols- Returns:
- The supported protocols
-