SPL File DpsGetTTLWithReconnect.spl

Streams DPS Toolkit > com.ibm.streamsx.dps 4.1.8 > com.ibm.streamsx.store.distributed > DpsGetTTLWithReconnect.spl

Content

Operators
  • DpsGetTTLWithReconnect: DpsGetTTLWithReconnect Uses the dpsGetTTL function to read key-value pairs from DPS (of any type).

Composites

composite DpsGetTTLWithReconnect(output Out; input In)

DpsGetTTLWithReconnect Uses the dpsGetTTL function to read key-value pairs from DPS (of any type). The purpose of this composite is to provide extensive error handling, a reconnection policy, and a complete set of informative metrics.

By default, keys and values are not encoded in order to provide maximum ease of access via non-Streams methods. If non-String types are provided for either the key or value, they will automatically be encoded. Use the Base64 encoding options to save space.

Note: The following metrics are only valid once we have established an initial connection to the DPS server. Before that connection, we will throw exceptions (without failure) and the isConnected metric will be valid. All other metrics will be unusable until first-connection is established.

Longterm and Current Metrics:
  • isConnected Maintains a metric of if we think we are connected to Redis or not.
  • totalGets Maintains a metric of the number of total gets done since startup--includes gets where the key was not in the data store.
  • totalKeyDidNotExistReturns Maintains a metric of the number of gets since operator startup that returned a 108 code indicating that the key was not in the store.
  • totalFailedGets Maintains a metric of the number of failed gets since startup--does not include gets where the key did not exist.
  • totalReconnections Maintains a metric of the number of reconnections to the DPS Server since startup.

Interval Metrics:

  • numGets Maintains a metric of the number inserts completed in the last interval of time.
  • numFailedGets Maintains a metric of the number of failed inserts done.
  • numKeyDidNotExistReturns Maintains a metric of the number of gets over the last interval of time that returned a 108 code indicating that the key was not in the store.
  • reconnectionAttptsSinceDisconnect Maintains a metric of the number of reconnection attempts in the last interval of time.

Parameters

Input Ports

Output Ports