Package org.somda.sdc.glue.consumer
Class ConnectConfiguration
java.lang.Object
org.somda.sdc.glue.consumer.ConnectConfiguration
Container to provide connection options for remote SDC device connections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<String>Commonly used episodic actions for remote SDC device synchronization.static final Collection<String>Commonly used periodic actions for remote SDC device synchronization.static final Collection<String>Commonly used actions if only updates on description and contexts are desired.static final Collection<String>List of all episodic report actions.static final Collection<String>List of all periodic report actions.static final Collection<QName>List of all port types shipped with SDC.static final Collection<String>List of all streaming actions. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectConfigurationcreate()Creates a configuration that subscribes nothing.static ConnectConfigurationcreate(Collection<String> actions) Creates a configuration with predefined actions.static ConnectConfigurationcreate(Collection<String> actions, Collection<QName> requiredPortTypes) Creates a configuration with predefined actions.
-
Field Details
-
PORT_TYPES
List of all port types shipped with SDC. -
EPISODIC_REPORTS
List of all episodic report actions. -
PERIODIC_REPORTS
List of all periodic report actions. -
STREAMING_REPORTS
List of all streaming actions. -
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
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
Commonly used periodic actions for remote SDC device synchronization.Comprises all periodic reports plus waveforms.
- See Also:
-
-
Method Details
-
create
Creates a configuration that subscribes nothing.The configuration automatically requires the get service to be existing.
- Returns:
- the new connect configuration.
-
create
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
-
getRequiredPortTypes
-