Socket Product Sender

« Back to sending

The socket product sender makes a socket connection to a PDL server and pushes the product contents directly to the server using a custom PDL protocol. The server will report to the client if the send was successful or not.

binaryFormat
Boolean flag if product should be transmitted in binary (.bin) format
Default: false
connectTimeout
The connection timeout (in milliseconds) when establishing a connection to the server
Default: 15000
deflateLevel
Integer value indicating how much product should be compressed before being sent. Requires enabledDefault = true
Default: 1
enableDeflate
Boolean flag if product should be compressed before being sent
Default: true
enablePdlProtocol
Ensures the client follows the custom PDL protocol when sending products
Default: true
host
The host or IP address of the PDL server to which products are sent
port
The port number on which to send products to the host
Default: 11235
readTimeout
The read timeout (in milliseconds) when reading a response from the server
Default: 15000
writeTimeout
The write timeout (in milliseconds) when sending data to the server
Default: -1 (wait forever)

Example configuration

1
2
3
4
5
6
7
8
senders = sender_socket

privateKey = ./product-key
signatureVersion = v2

[sender_socket]
type = gov.usgs.earthquake.distribution.SocketProductSender
host = prod01-pdl01.cr.usgs.gov



Last modified: Tue Sep 3 18:12:07 UTC 2024