Package org.somda.sdc.glue.consumer
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.
-
-
Field Summary
Fields Modifier and Type Field Description static Collection<String>ALL_EPISODIC_AND_WAVEFORM_REPORTSCommonly used episodic actions for remote SDC device synchronization.static Collection<String>ALL_PERIODIC_AND_WAVEFORM_REPORTSCommonly used periodic actions for remote SDC device synchronization.static Collection<String>DESCRIPTION_AND_CONTEXTSCommonly used actions if only updates on description and contexts are desired.static Collection<String>EPISODIC_REPORTSList of all episodic report actions.static Collection<String>PERIODIC_REPORTSList of all periodic report actions.static Collection<QName>PORT_TYPESList of all port types shipped with SDC.static Collection<String>STREAMING_REPORTSList of all streaming actions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.Collection<String>getActions()Collection<QName>getRequiredPortTypes()
-
-
-
Field Detail
-
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:
EPISODIC_REPORTS
-
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:
PERIODIC_REPORTS
-
-
Method Detail
-
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()
-
-