Interface EventHandlingConnector
- All Known Subinterfaces:
Connector<O,I, CO, CI>
- All Known Implementing Classes:
AbstractChannelConnector,AbstractConnector,AbstractThreadedConnector
public interface EventHandlingConnector
Basic connector interface providing access to event-relevant functionality.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionvoidenablePolling(boolean enablePolling) Enable/disable polling (does not influence the polling timer).getName()Returns a descriptive name of the connector/the connected protocol.getStorageValue(String key) Returns intermediate information that may be useful while transforming the results by configured transformation functions.voidsetDataTimeDifference(int difference) Adjusts the simulated data time difference.voidsetStorageValue(String key, Object value) Sets intermediate information that can be read out by while transforming results by configured transformation functions.voidtrigger()Trigger the ingestion of a next data item.voidtrigger(ConnectorTriggerQuery query) Trigger the ingestion of a next data item.
-
Method Details
-
getName
String getName()Returns a descriptive name of the connector/the connected protocol.- Returns:
- a descriptive name of the connected protocol
-
enablePolling
void enablePolling(boolean enablePolling) Enable/disable polling (does not influence the polling timer).- Parameters:
enablePolling- whether polling shall enabled- See Also:
-
trigger
void trigger()Trigger the ingestion of a next data item. -
trigger
Trigger the ingestion of a next data item.- Parameters:
query- specification what to ingest; capabilities depend on connector
-
setStorageValue
Sets intermediate information that can be read out by while transforming results by configured transformation functions.- Parameters:
key- the key of the value to setvalue- the actual value
-
getStorageValue
Returns intermediate information that may be useful while transforming the results by configured transformation functions.- Parameters:
key- the key of the value to set- Returns:
- the value, may be null
-
setDataTimeDifference
void setDataTimeDifference(int difference) Adjusts the simulated data time difference.- Parameters:
difference- the difference, negative for configured fixed default, 0 for none (handle with care)
-