Class ConnectConfiguration

java.lang.Object
org.somda.sdc.glue.consumer.ConnectConfiguration

public class ConnectConfiguration extends Object
Container to provide connection options for remote SDC device connections.
See Also:
  • Field Details

    • PORT_TYPES

      public static final Collection<QName> PORT_TYPES
      List of all port types shipped with SDC.
    • EPISODIC_REPORTS

      public static final Collection<String> EPISODIC_REPORTS
      List of all episodic report actions.
    • PERIODIC_REPORTS

      public static final Collection<String> PERIODIC_REPORTS
      List of all periodic report actions.
    • STREAMING_REPORTS

      public static final Collection<String> STREAMING_REPORTS
      List of all streaming actions.
    • ALL_EPISODIC_AND_WAVEFORM_REPORTS

      public static final Collection<String> ALL_EPISODIC_AND_WAVEFORM_REPORTS
      Commonly used episodic actions for remote SDC device synchronization.

      Comprises all episodic reports plus waveforms.

      See Also:
    • DESCRIPTION_AND_CONTEXTS

      public static final Collection<String> DESCRIPTION_AND_CONTEXTS
      Commonly used actions if only updates on description and contexts are desired.

      This can be used in order to watch remote devices without receiving all of their data. Note that this setup includes operation invoked reports by default.

    • ALL_PERIODIC_AND_WAVEFORM_REPORTS

      public static final Collection<String> ALL_PERIODIC_AND_WAVEFORM_REPORTS
      Commonly used periodic actions for remote SDC device synchronization.

      Comprises all periodic reports plus waveforms.

      See Also:
  • Method Details

    • create

      public static ConnectConfiguration create()
      Creates a configuration that subscribes nothing.

      The configuration automatically requires the get service to be existing.

      Returns:
      the new connect configuration.
    • create

      public static ConnectConfiguration create(Collection<String> actions)
      Creates a configuration with predefined actions.

      The configuration automatically requires all port types required by the given actions plus the get service.

      Parameters:
      actions - the action URIs to be subscribed.
      Returns:
      the new connect configuration.
    • create

      public static ConnectConfiguration create(Collection<String> actions, Collection<QName> requiredPortTypes)
      Creates a configuration with predefined actions.
      Parameters:
      actions - the action URIs to be subscribed.
      requiredPortTypes - the required service interfaces used to establish a connection. The get service QName will be added to the required port types collection as minimum requirement. The port type collection will be appended automatically by the port types required to subscribe the given actions.
      Returns:
      the new connect configuration.
    • getActions

      public Collection<String> getActions()
    • getRequiredPortTypes

      public Collection<QName> getRequiredPortTypes()