Class SdcRequiredTypesAndScopes

  • All Implemented Interfaces:
    org.somda.sdc.biceps.common.access.MdibAccessObserver , org.somda.sdc.glue.provider.SdcDevicePlugin , org.somda.sdc.glue.provider.plugin.ScopesDecorator

    
    public class SdcRequiredTypesAndScopes
     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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void beforeStartUp(SdcDeviceContext context) Called before the device starts up.
      void afterShutDown(SdcDeviceContext context) Called after the device was shut down.
      void init(SdcDeviceContext context, Set<String> scopes) Call this function to initialize the scopes decorator.
      void appendScopesAndSendHello(Set<String> scopes) Gives the order to append the given set of scopes and send a Hello if changes ensued.
      • Methods inherited from class org.somda.sdc.glue.provider.SdcDevicePlugin

        afterStartUp, beforeShutDown
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • afterShutDown

         void afterShutDown(SdcDeviceContext context)

        Called after the device was shut down.

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

        Parameters:
        context - all accessible SdcDevice data.
      • init

         void init(SdcDeviceContext context, Set<String> scopes)

        Call this function to initialize the scopes decorator.

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

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

         void appendScopesAndSendHello(Set<String> scopes)

        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.

        Parameters:
        scopes - the scopes to update.