Class SdcRequiredTypesAndScopes

java.lang.Object
org.somda.sdc.glue.provider.plugin.SdcRequiredTypesAndScopes
All Implemented Interfaces:
MdibAccessObserver, ScopesDecorator, SdcDevicePlugin

public class SdcRequiredTypesAndScopes extends Object implements SdcDevicePlugin, MdibAccessObserver, ScopesDecorator
Maps all WS-Discovery Types and Scopes required by SDC and sends Hellos respectively.

In order to append custom scopes please consider using the ScopesDecorator.

  • Method Details

    • beforeStartUp

      public void beforeStartUp(SdcDeviceContext context)
      Description copied from interface: SdcDevicePlugin
      Called before the device starts up.
      Specified by:
      beforeStartUp in interface SdcDevicePlugin
      Parameters:
      context - all accessible SdcDevice data.
    • afterShutDown

      public void afterShutDown(SdcDeviceContext context)
      Description copied from interface: SdcDevicePlugin
      Called after the device was shut down.

      This callback is triggered only if the device was running before, i.e., AbstractIdleService.isRunning() returned true.

      Specified by:
      afterShutDown in interface SdcDevicePlugin
      Parameters:
      context - all accessible SdcDevice data.
    • init

      public void init(SdcDeviceContext context, Set<String> scopes)
      Description copied from interface: ScopesDecorator
      Call this function to initialize the scopes decorator.

      Not doing so can cause unknown side-effects depending on the decorated implementation.

      Specified by:
      init in interface ScopesDecorator
      Parameters:
      context - the context data possibly needed by the decorator to work.
      scopes - initial set of scopes visible to the decorator.
    • appendScopesAndSendHello

      public void appendScopesAndSendHello(Set<String> scopes)
      Description copied from interface: ScopesDecorator
      Gives the order to append the given set of scopes and send a Hello if changes ensued.

      Call this function after a context or description modification message has been processed.

      Specified by:
      appendScopesAndSendHello in interface ScopesDecorator
      Parameters:
      scopes - the scopes to update.