Class DiscovererSLP

java.lang.Object
org.sblim.cimclient.internal.discovery.slp.DiscovererSLP
All Implemented Interfaces:
Discoverer

public class DiscovererSLP extends java.lang.Object implements Discoverer
Class DiscovererSLP is the SLP specific implementation of the Discoverer interface.
Since:
2.0.2
  • Constructor Summary

    Constructors
    Constructor
    Description
    DiscovererSLP(java.util.Locale pLocale)
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String[]
    Finds directory services.
    findWbemServices(java.lang.String[] pDirectoryUrls)
    Finds WBEM services using a given list of directory servers
    java.util.Locale
    Returns locale
    java.util.Vector<java.lang.String>
    Returns scopes
    void
    setLocale(java.util.Locale pLocale)
    Sets locale
    void
    setScopes(java.util.Vector<java.lang.String> pScopes)
    Sets scopes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiscovererSLP

      public DiscovererSLP(java.util.Locale pLocale)
      Ctor.
      Parameters:
      pLocale - The locale setting to use for the Locator
  • Method Details

    • getLocale

      public java.util.Locale getLocale()
      Returns locale
      Returns:
      The value of locale.
    • setLocale

      public void setLocale(java.util.Locale pLocale)
      Sets locale
      Parameters:
      pLocale - The new value of locale.
    • getScopes

      public java.util.Vector<java.lang.String> getScopes()
      Returns scopes
      Returns:
      The value of scopes.
    • setScopes

      public void setScopes(java.util.Vector<java.lang.String> pScopes)
      Sets scopes
      Parameters:
      pScopes - The new value of scopes.
    • findWbemServices

      public WBEMServiceAdvertisement[] findWbemServices(java.lang.String[] pDirectoryUrls)
      Description copied from interface: Discoverer
      Finds WBEM services using a given list of directory servers
      Specified by:
      findWbemServices in interface Discoverer
      Parameters:
      pDirectoryUrls - An array of directory servers. For SLP this would be a list of DA URLs.
      Returns:
      The array of WBEM service advertisements found
    • findDirectoryServices

      public java.lang.String[] findDirectoryServices()
      Description copied from interface: Discoverer
      Finds directory services. The semantics of this method might be protocol specific. E.g. for SLP this sends a multicast into the local subnet looking first for directory agent, second for service agents.
      Specified by:
      findDirectoryServices in interface Discoverer
      Returns:
      A String[] containing the URLs of the directories