Click or drag to resize
OnPremConnectorGetOrCreate Method
Overload List
  NameDescription
Public methodStatic memberGetOrCreate(String)

Creates a connector, unless already created, provided a cluster URI. A new connector will be created if a connector for the URI already exists but created by calling GetOrCreate(uri, false). Connector created by this method will use System.Threading.ThreadPool for health checks of unavailable servers in the cluster.

The URI should be on the following format: esales://host1[:port1][;host2[:port2][;...]][?parameter1=value1[&parameter2=value2[&...]]] Example: esales://node1.apptus.com;node2.apptus.com:35811?query_timeout=3500&notification_timeout=3500 Unspecified ports defaults to 35810. The available parameters are: connection_timeout - the connection timeout in milliseconds, default 2000. query_timeout - the query timeout in milliseconds, default 3000. export_timeout - the export timeout in milliseconds, default 60000. import_timeout - the import timeout in milliseconds, default 600000. notification_timeout - the notification timeout in milliseconds, default 3000. report_timeout - The report timeout in milliseconds, default 120000 (2 minutes). compression_mode - what compression should be used when sending imports. Available settings: none - No compression. gzip - Compress with GZIP. This is the default. pre_compressed_gzip - Send headers to indicate the import is compressed with GZIP, but don't do any compression. Use this if the file or InputStream you supply is already compressed. Note that files with names that end with ".gz" or ".gzip" will behave as if compression_mode= pre_compressed_gzip, regardless of what compression_mode is actually set to. Parameter values must be URL encoded in order to avoid ambiguity.
Public methodStatic memberGetOrCreate(String, Boolean)

Creates a connector, unless already created, provided a cluster URI. A new connector will be created if a connector for the URI already exists but created with a different asyncHealthCheck flag value. System.Threading.ThreadPool will be used if asyncHealthCheck flag is true.

The URI should be on the following format: esales://host1[:port1][;host2[:port2][;...]][?parameter1=value1[&parameter2=value2[&...]]] Example: esales://node1.apptus.com;node2.apptus.com:35811?query_timeout=3500&notification_timeout=3500 Unspecified ports defaults to 35810. The available parameters are: connection_timeout - the connection timeout in milliseconds, default 2000. query_timeout - the query timeout in milliseconds, default 3000. export_timeout - the export timeout in milliseconds, default 60000. import_timeout - the import timeout in milliseconds, default 600000. notification_timeout - the notification timeout in milliseconds, default 3000. report_timeout - The report timeout in milliseconds, default 120000 (2 minutes). compression_mode - what compression should be used when sending imports. Available settings: none - No compression. gzip - Compress with GZIP. This is the default. pre_compressed_gzip - Send headers to indicate the import is compressed with GZIP, but don't do any compression. Use this if the file or InputStream you supply is already compressed. Note that files with names that end with ".gz" or ".gzip" will behave as if compression_mode= pre_compressed_gzip, regardless of what compression_mode is actually set to. Parameter values must be URL encoded in order to avoid ambiguity.
Top
See Also